Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

everywhere: replace double words #74650

Merged
merged 2 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ config SRAM_BASE_ADDRESS
hex "SRAM Base Address"
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_SRAM))
help
The SRAM base address. The default value comes from from
The SRAM base address. The default value comes from
/chosen/zephyr,sram in devicetree. The user should generally avoid
changing it via menuconfig or in configuration files.

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/cortex_a_r/isr_wrapper.S
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ _idle_state_cleared:
*
* Note that interrupts are disabled up to this point on the ARM
* architecture variants other than the Cortex-M. It is also important
* to note that that most interrupt controllers require that the nested
* to note that most interrupt controllers require that the nested
* interrupts are handled after the active interrupt is acknowledged;
* this is be done through the `get_active` interrupt controller
* interface function.
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/core/ia32/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ __csSet:
/* Don't clear BSS if the section is not present
* in memory at boot. Or else it would cause page
* faults. Zeroing BSS will be done later once the
* the paging mechanism has been initialized.
* paging mechanism has been initialized.
*/
call z_bss_zero
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/ia32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ add_bin_file_to_the_next_link(gen_idt_output irq_int_vector_map)
add_bin_file_to_the_next_link(gen_idt_output irq_vectors_alloc)

if(CONFIG_GDT_DYNAMIC)
# Use gen_gdt.py and objcopy to generate gdt.o from from the elf
# Use gen_gdt.py and objcopy to generate gdt.o from the elf
# file ${ZEPHYR_PREBUILT_EXECUTABLE}, creating the temp file gdt.bin along the
# way.
#
Expand Down
2 changes: 1 addition & 1 deletion boards/nuvoton/numaker_pfm_m467/numaker_pfm_m467.dts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
status = "okay";
};

/* On enabled, 'core-clock', as above, is required to to be 192MHz. */
/* On enabled, 'core-clock', as above, is required to be 192MHz. */
zephyr_udc0: &usbd {
pinctrl-0 = <&usbd_default>;
pinctrl-names = "default";
Expand Down
2 changes: 1 addition & 1 deletion boards/weact/stm32g431_core/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Hardware Configuration
+---------------+---------+-----------------------------------------------+
| SB6/SB7 | Open | Connect PB4/PB6 (UCPD1_CCx) to USB-C CCx pins |
+---------------+---------+-----------------------------------------------+
| SB3/SB5 | Open | Connect PA9/PA10 (UCPD1_DBCCx) to to PB6/PB4 |
| SB3/SB5 | Open | Connect PA9/PA10 (UCPD1_DBCCx) to PB6/PB4 |
+---------------+---------+-----------------------------------------------+
| SB4 | Open | Connect PB2 to VBUS voltage divider |
+---------------+---------+-----------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/dts.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ find_package(Dtc 1.4.6)
# - DTC_OVERLAY_FILE: list of devicetree overlay files which will be
# used to modify or extend the base devicetree.
# - EXTRA_DTC_OVERLAY_FILE: list of extra devicetree overlay files.
# This variable is is similar to DTC_OVERLAY_FILE but the files in
# This variable is similar to DTC_OVERLAY_FILE but the files in
# EXTRA_DTC_OVERLAY_FILE will be applied after DTC_OVERLAY_FILE and
# thus files specified by EXTRA_DTC_OVERLAY_FILE have higher precedence.
# - EXTRA_DTC_FLAGS: list of extra command line options to pass to
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/extensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ function(zephyr_library_compile_options item)
# library and link with it to obtain the flags.
#
# Linking with a dummy interface library will place flags later on
# the command line than the the flags from zephyr_interface because
# the command line than the flags from zephyr_interface because
# zephyr_interface will be the first interface library that flags
# are taken from.

Expand Down
2 changes: 1 addition & 1 deletion doc/connectivity/networking/api/http_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ in the reply.
Websocket resources
===================

Websocket resources register an application callback, which is is called when a
Websocket resources register an application callback, which is called when a
Websocket connection upgrade takes place. The callback is provided with a socket
descriptor corresponding to the underlying TCP/TLS connection. Once called,
the application takes full control over the socket, i. e. is responsible to
Expand Down
2 changes: 1 addition & 1 deletion doc/kernel/services/data_passing/pipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Alternatively, a pipe can be defined and initialized at compile time by
calling :c:macro:`K_PIPE_DEFINE`.

The following code has the same effect as the code segment above. Observe
that that macro defines both the pipe and its ring buffer.
that macro defines both the pipe and its ring buffer.

.. code-block:: c

Expand Down
4 changes: 2 additions & 2 deletions doc/releases/release-notes-2.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ USB
* Separate PID for DFU mode added to avoid problems caused by the host OS
caching the remaining descriptors when switching to DFU mode.
* Added timer for appDETACH state and revised descriptor handling to
to meet specification requirements.
meet specification requirements.

* USB HID class

Expand Down Expand Up @@ -1562,7 +1562,7 @@ release:
* :github:`29146` - canisotp: mimxrt1064_evk: no DT_CHOSEN_ZEPHYR_CAN_PRIMARY_LABEL defined cause tests failure
* :github:`29145` - net: frdmk64f many net related applications meet hardfault, hal driver assert
* :github:`29139` - tests/kernel/fatal/exception failed on nsim_sem_mpu_stack_guard board
* :github:`29120` - STM32: Few issues on on pinctrl generation script
* :github:`29120` - STM32: Few issues on pinctrl generation script
* :github:`29113` - Build failure with OSPD
* :github:`29111` - Atmel SAM V71 UART_0 fail
* :github:`29109` - HAL STM32 Missing ETH pin control configurations in DT files
Expand Down
2 changes: 1 addition & 1 deletion doc/releases/release-notes-3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Deprecated in this release
:c:func:`can_set_bitrate` and :c:func:`can_set_mode`.
* :c:func:`can_attach_workq` is deprecated in favor of utilizing
:c:func:`can_add_rx_filter_msgq` and :c:func:`k_work_poll_submit`.
* :c:func:`can_attach_isr` is is deprecated and replaced by
* :c:func:`can_attach_isr` is deprecated and replaced by
:c:func:`can_add_rx_filter`.
* :c:macro:`CAN_DEFINE_MSGQ` is deprecated and replaced by
:c:macro:`CAN_MSGQ_DEFINE`.
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_mcux_lpadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static void mcux_lpadc_isr(const struct device *dev)
LOG_DBG("Finished channel %d. Raw result is 0x%04x",
channel, conv_result.convValue);
/*
* For 12 or 13 bit resolution the the LSBs will be 0, so a bit shift
* For 12 or 13 bit resolution the LSBs will be 0, so a bit shift
* is needed. For differential modes, the ADC conversion to
* millivolts expects to use a shift one less than the resolution.
*
Expand Down
2 changes: 1 addition & 1 deletion drivers/bluetooth/hci/hci_ifx_cyw208xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This driver uses btstack-integration asset as hosts platform adaptation layer
* (porting layer) for CYW20829. btstack-integration layer implements/
* invokes the interfaces defined by BTSTACK to to enable communication
* invokes the interfaces defined by BTSTACK to enable communication
* with the BT controller by using IPC_BTSS (IPC Bluetooth sub-system interface).
* Zephyr CYW20829 driver implements wiced_bt_**** functions requreds for
* btstack-integration asset and Zephyr Bluetooth driver interface
Expand Down
2 changes: 1 addition & 1 deletion drivers/can/can_fake.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int fake_can_get_core_clock_delegate(const struct device *dev, uint32_t *
{
ARG_UNUSED(dev);

/* Recommended CAN clock from from CiA 601-3 */
/* Recommended CAN clock from CiA 601-3 */
*rate = MHZ(80);

return 0;
Expand Down
2 changes: 1 addition & 1 deletion drivers/can/can_loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static int can_loopback_get_core_clock(const struct device *dev, uint32_t *rate)
{
ARG_UNUSED(dev);

/* Recommended CAN clock from from CiA 601-3 */
/* Recommended CAN clock from CiA 601-3 */
*rate = MHZ(80);

return 0;
Expand Down
2 changes: 1 addition & 1 deletion drivers/clock_control/beetle_clock_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static int beetle_pll_enable(uint32_t mainclk)
/* Set PLLCTRL Register */
__BEETLE_SYSCON->pllctrl = BEETLE_PLL_CONFIGURATION;

/* Switch the the Main clock to PLL and set prescaler */
/* Switch the Main clock to PLL and set prescaler */
__BEETLE_SYSCON->mainclk = pre_mainclk;

while (!__BEETLE_SYSCON->pllstatus) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/dai/intel/dmic/Kconfig.dmic
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ config DAI_INTEL_DMIC_TPLG_PARAMS
All registers configuration is computed on the fly
based on use case and microphone datasheet parameters
and topology defined PCM format. The parameters are
easy to to customize in the topology.
easy to customize in the topology.
WORK IN PROGRESS, not enabled in the driver yet

endchoice
Expand Down
2 changes: 1 addition & 1 deletion drivers/eeprom/eeprom_at2x.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static int eeprom_at24_write(const struct device *dev, off_t offset,
bus_addr = eeprom_at24_translate_offset(dev, &offset);

/*
* Not all I2C EEPROMs support repeated start so the the
* Not all I2C EEPROMs support repeated start so the
* address (offset) and data (buf) must be provided in one
* write transaction (block).
*/
Expand Down
2 changes: 1 addition & 1 deletion drivers/flash/flash_simulator_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

/*
* Initialize the flash buffer.
* And, if the content is to be kept on disk map it to the the buffer to the file.
* And, if the content is to be kept on disk map it to the buffer to the file.
*
* Returns -1 on failure
* 0 on success
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_hogs.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct gpio_hogs {
#define GPIO_HOGS_NODE_IS_GPIO_CTLR(node_id) \
DT_PROP_OR(node_id, gpio_controller, 0)

/* Expands to to 1 if node_id is a GPIO hog, empty otherwise */
/* Expands to 1 if node_id is a GPIO hog, empty otherwise */
#define GPIO_HOGS_NODE_IS_GPIO_HOG(node_id) \
IF_ENABLED(DT_PROP_OR(node_id, gpio_hog, 0), 1)

Expand Down
2 changes: 1 addition & 1 deletion drivers/input/Kconfig.sbus
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config INPUT_SBUS_REPORT_FILTER
default 1
help
SBUS tends to be a bit noisy you can increase the threshold to
to lower the amounts of input events. Set to 0 for no filtering
lower the amounts of input events. Set to 0 for no filtering

config INPUT_SBUS_SEND_SYNC
bool "Send Sync to input subsys on each SBUS frame"
Expand Down
4 changes: 2 additions & 2 deletions drivers/led/ht16k33.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static bool ht16k33_process_keyscan_data(const struct device *dev)

err = i2c_burst_read_dt(&config->i2c, HT16K33_CMD_KEY_DATA_ADDR, keys, sizeof(keys));
if (err) {
LOG_WRN("Failed to to read HT16K33 key data (err %d)", err);
LOG_WRN("Failed to read HT16K33 key data (err %d)", err);
/* Reprocess */
return true;
}
Expand Down Expand Up @@ -380,7 +380,7 @@ static int ht16k33_init(const struct device *dev)
err = i2c_burst_read_dt(&config->i2c, HT16K33_CMD_KEY_DATA_ADDR, keys,
sizeof(keys));
if (err) {
LOG_ERR("Failed to to read HT16K33 key data");
LOG_ERR("Failed to read HT16K33 key data");
return -EIO;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/mipi_dbi/mipi_dbi_smartbond.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct mipi_dbi_smartbond_config {
lcdc_smartbond_bgcolor_cfg bgcolor_cfg;
};

/* Mark the device is is progress and so it's not allowed to enter the sleep state. */
/* Mark the device is progress and so it's not allowed to enter the sleep state. */
static inline void mipi_dbi_smartbond_pm_policy_state_lock_get(void)
{
/*
Expand Down
2 changes: 1 addition & 1 deletion drivers/mipi_dsi/dsi_mcux_2l.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int dsi_mcux_tx_color(const struct device *dev, uint8_t channel,
* Color streams are a special case for this DSI peripheral, because
* the SMARTDMA peripheral (if enabled) can be used to accelerate
* the transfer of data to the DSI. The SMARTDMA has the additional
* advantage over traditional DMA of being able to to automatically
* advantage over traditional DMA of being able to automatically
* byte swap color data. This is advantageous, as most graphical
* frameworks store RGB data in little endian format, but many
* MIPI displays expect color data in big endian format.
Expand Down
4 changes: 2 additions & 2 deletions drivers/rtc/rtc_pcf8563.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ struct pcf8563_data {
* with 8.4.2 Register Minutes.
*
* For seconds, first bit is ignored (it is used to check the clock integrity).
* The the upper digit takes the next 3 bits for the tens place and then the rest
* The upper digit takes the next 3 bits for the tens place and then the rest
* bits for the unit
* So for example, value 43 is 40 * 10 + 3, so the tens digit is 4 and unit digit is 3.
* Then we put the number 3 in the last 4 bits and the number 4 in next 3 bits
Expand Down Expand Up @@ -391,7 +391,7 @@ void gpio_callback_function(const struct device *dev, struct gpio_callback *cb,
struct pcf8563_data *data = CONTAINER_OF(cb, struct pcf8563_data, int1_callback);

LOG_DBG("PCF8563 interrupt detected");
/* By using a work we are able to to run "heavier" code */
/* By using a work we are able to run "heavier" code */
k_work_submit(&(data->callback_work));

}
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/st/lis2dh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ config LIS2DH_MEASURE_TEMPERATURE
relative temperature. For example, it is X degrees C
cooler or warmer.
Each chip has an offset. This offset must be applied
to the result. The offset can be obtained by comparing the
to the result. The offset can be obtained by comparing
the reported temperature to a reference.
This option does not apply to the LSM330DLHC.

Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_altera.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

/*
* The value ALT_AVALON_UART_FC is a value set in the device flag field to
* indicate the the device is using flow control, i.e. the driver must
* indicate the device is using flow control, i.e. the driver must
* throttle on transmit if the nCTS pin is low.
*/
#define ALT_AVALON_UART_FC 0x2
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_intel_lw.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

/*
* The value INTEL_LW_UART_FC is a value set in the device flag field to
* indicate the the device is using flow control, i.e. the driver must
* indicate the device is using flow control, i.e. the driver must
* throttle on transmit if the nCTS pin is low.
*/
#define INTEL_LW_UART_FC 0x2
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_mcux_lpuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ static int mcux_lpuart_configure_async(const struct device *dev)
mcux_lpuart_async_tx_timeout);

/* Disable the UART Receiver until the async API provides a buffer to
* to receive into with rx_enable
* receive into with rx_enable
*/
uart_config.enableRx = false;
/* Clearing the fifo of any junk received before the async rx enable was called */
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_nrfx_uarte.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ static void endrx_isr(const struct device *dev)
data->async->rx_flush_cnt = 0;

/* The 'rx_offset' can be bigger than 'rx_amount', so it the length
* of data we report back the the user may need to be clipped.
* of data we report back the user may need to be clipped.
* This can happen because the 'rx_offset' count derives from RXRDY
* events, which can occur already for the next buffer before we are
* here to handle this buffer. (The next buffer is now already active
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_mcux_flexcomm.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ static int transceive_dma(const struct device *dev,
/* at this point, last just means whether or not
* this transfer will completely cover
* the current tx/rx buffer in data->ctx
* or require additional transfers because the
* or require additional transfers because
* the two buffers are not the same size.
*
* if it covers the current ctx tx/rx buffers, then
Expand Down
2 changes: 1 addition & 1 deletion drivers/timer/native_posix_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void np_timer_isr_test_hook(const void *arg)
*
* Informs the system clock driver that the next needed call to
* sys_clock_announce() will not be until the specified number of ticks
* from the the current time have elapsed.
* from the current time have elapsed.
*
* See system_timer.h for more information
*
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/st/f4/stm32f429vX.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2018 Daniel Wagenknecht
*
* Document the usage of /delete-node/ for device tree nodes
* that are missing on on only a small subset of SoCs of a given group
* that are missing on only a small subset of SoCs of a given group
* of SoCs.
* Don't remove this file even if none of the SoCs currently
* implemented in zephyr use it.
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/espi/nuvoton,npcx-espi-vw-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ compatible: "nuvoton,npcx-espi-vw-conf"

child-binding:
description: |
Child node to to present the mapping between VW signal, its core register and input source of
Child node to present the mapping between VW signal, its core register and input source of
MIWU

properties:
Expand Down
4 changes: 2 additions & 2 deletions dts/bindings/input/futaba,sbus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: |
SBUS input driver using
This driver implements the SBUS protocol used on RC radio's
to send out analogue joystick and switches output.
SBUS is an single-wire inverted serial protocol to either you need to
to the rx-invert feature of your serial driver or use an external signal inverter.
SBUS is an single-wire inverted serial protocol so either you need to use
the rx-invert feature of your serial driver or use an external signal inverter.
The driver binds this to the Zephyr input system using INPUT_EV_CODES.

The following examples defines a a binding of 2 joysticks and a button using 5 channels.
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/st,stm32-exti.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ properties:
type: array
required: true
description: |
Description of the the input lines range for each interrupt line supported
Description of the input lines range for each interrupt line supported
by the external interrupt controller. For each line a couple of integers is
provided: the number of the first line of the range start and the length
of the range.
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/pinctrl/nxp,imx-iomuxc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ child-binding:
description: |
An array of values defining the pin mux selection, in the following format:
<mux_register, mux_val, input_reg, daisy_val, cfg_reg>
mux_register: register that will be written to to make mux selection
mux_register: register that will be written to make mux selection
mux_val: value to write to mux_register
input_reg: peripheral register that will direct peripheral signal to pin
daisy_val: value to write to input_reg
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/bluetooth/audio/csip.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ struct bt_csip_set_coordinator_set_info {
uint8_t set_size;

/**
* @brief The rank of the set on on the remote device
* @brief The rank of the set on the remote device
*
* Will be 0 if not exposed by the server.
*/
Expand Down
Loading
Loading