Skip to content

Commit

Permalink
everywhere: replace the the with the
Browse files Browse the repository at this point in the history
Treewide search and replace on `the the` with `the`, using "whole word"
match to ensure terms like "the thermistor" are not caught up.

Signed-off-by: Jordan Yates <jordan@embeint.com>
  • Loading branch information
JordanYates committed Jun 21, 2024
1 parent 5e295ac commit bd4fe5e
Show file tree
Hide file tree
Showing 60 changed files with 68 additions and 68 deletions.
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 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/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/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/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
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_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/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/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
6 changes: 3 additions & 3 deletions include/zephyr/bluetooth/audio/mcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ int bt_mcc_read_current_track_obj_id(struct bt_conn *conn);
/**
* @brief Set Current Track Object ID
*
* Set the Current Track to the the track given by the @p id parameter
* Set the Current Track to the track given by the @p id parameter
*
* @param conn Connection to the peer device
* @param id Object Transfer Service ID (UINT48) of the track to set as the current track
Expand All @@ -747,7 +747,7 @@ int bt_mcc_read_next_track_obj_id(struct bt_conn *conn);
/**
* @brief Set Next Track Object ID
*
* Set the Next Track to the the track given by the @p id parameter
* Set the Next Track to the track given by the @p id parameter
*
* @param conn Connection to the peer device
* @param id Object Transfer Service ID (UINT48) of the track to set as the next track
Expand All @@ -768,7 +768,7 @@ int bt_mcc_read_current_group_obj_id(struct bt_conn *conn);
/**
* @brief Set Current Group Object ID
*
* Set the Current Group to the the group given by the @p id parameter
* Set the Current Group to the group given by the @p id parameter
*
* @param conn Connection to the peer device
* @param id Object Transfer Service ID (UINT48) of the group to set as the current group
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/bluetooth/audio/media_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ int media_proxy_ctrl_get_commands_supported(struct media_player *player);
* May result in up to three callbacks
* - one for the actual sending of the search to the player
* - one for the result code for the search from the player
* - if the search is successful, one for the the search results object ID in the OTs
* - if the search is successful, one for the search results object ID in the OTs
*
* Requires Object Transfer Service
*
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/bluetooth/audio/vcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ struct bt_vcp_vol_ctlr_cb {
* Called when the value is remotely read as the Volume Controller.
* Called if the value is changed by the Volume Renderer.
*
* A non-zero value indicates the the volume has been changed on the
* A non-zero value indicates the volume has been changed on the
* Volume Renderer since it was booted.
*
* @param vol_ctlr Volume Controller instance pointer.
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/bluetooth/conn.h
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ int bt_conn_le_create_synced(const struct bt_le_ext_adv *adv,
* This uses the Auto Connection Establishment procedure.
* The procedure will continue until a single connection is established or the
* procedure is stopped through @ref bt_conn_create_auto_stop.
* To establish connections to all devices in the the filter accept list the
* To establish connections to all devices in the filter accept list the
* procedure should be started again in the connected callback after a
* new connection has been established.
*
Expand Down
4 changes: 2 additions & 2 deletions include/zephyr/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static ALWAYS_INLINE int sys_cache_instr_flush_and_invd_range(void *addr, size_t

/**
*
* @brief Get the the d-cache line size.
* @brief Get the d-cache line size.
*
* The API is provided to get the data cache line.
*
Expand All @@ -417,7 +417,7 @@ static ALWAYS_INLINE size_t sys_cache_data_line_size_get(void)

/**
*
* @brief Get the the i-cache line size.
* @brief Get the i-cache line size.
*
* The API is provided to get the instruction cache line.
*
Expand Down
4 changes: 2 additions & 2 deletions include/zephyr/devicetree.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
* DT_PROP(DT_INST(1, vnd_soc_serial), current_speed)
*
* // 9600, because there is only one disabled node, and
* // disabled nodes are "at the the end" of the instance
* // disabled nodes are "at the end" of the instance
* // number "list".
* DT_PROP(DT_INST(2, vnd_soc_serial), current_speed)
* @endcode
Expand Down Expand Up @@ -788,7 +788,7 @@
* - for type phandle, idx must be 0 and the expansion is a node
* identifier (this treats phandle like a phandles of length 1)
*
* - for type string, idx must be 0 and the expansion is the the
* - for type string, idx must be 0 and the expansion is the
* entire string (this treats string like string-array of length 1)
*
* These properties are handled as special cases:
Expand Down
6 changes: 3 additions & 3 deletions include/zephyr/drivers/i3c.h
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ struct i3c_driver_data {
* @param dev_list Pointer to the device list struct.
* @param id Pointer to I3C device ID struct.
*
* @return Pointer the the I3C target device descriptor, or
* @return Pointer the I3C target device descriptor, or
* NULL if none is found.
*/
struct i3c_device_desc *i3c_dev_list_find(const struct i3c_dev_list *dev_list,
Expand All @@ -1270,7 +1270,7 @@ struct i3c_device_desc *i3c_dev_list_find(const struct i3c_dev_list *dev_list,
* @param dev_list Pointer to the device list struct.
* @param addr Dynamic address to be matched.
*
* @return Pointer the the I3C target device descriptor, or
* @return Pointer the I3C target device descriptor, or
* NULL if none is found.
*/
struct i3c_device_desc *i3c_dev_list_i3c_addr_find(struct i3c_dev_attached_list *dev_list,
Expand All @@ -1285,7 +1285,7 @@ struct i3c_device_desc *i3c_dev_list_i3c_addr_find(struct i3c_dev_attached_list
* @param dev_list Pointer to the device list struct.
* @param addr Address to be matched.
*
* @return Pointer the the I2C target device descriptor, or
* @return Pointer the I2C target device descriptor, or
* NULL if none is found.
*/
struct i3c_i2c_device_desc *i3c_dev_list_i2c_addr_find(struct i3c_dev_attached_list *dev_list,
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/drivers/led.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ static inline int z_impl_led_set_channel(const struct device *dev,
* @param led LED number
* @param num_colors Number of colors in the array.
* @param color Array of colors. It must be ordered following the color
* mapping of the LED controller. See the the color_mapping member
* mapping of the LED controller. See the color_mapping member
* in struct led_info.
* @return 0 on success, negative on error
*/
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/drivers/timer/system_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
*
* 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. Note that spurious calls
* from the current time have elapsed. Note that spurious calls
* to sys_clock_announce() are allowed (i.e. it's legal to announce
* every tick and implement this function as a noop), the requirement
* is that one tick announcement should occur within one tick BEFORE
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -3457,7 +3457,7 @@ void k_work_queue_init(struct k_work_q *queue);
*
* @param stack pointer to the work thread stack area.
*
* @param stack_size size of the the work thread stack area, in bytes.
* @param stack_size size of the work thread stack area, in bytes.
*
* @param prio initial thread priority
*
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/mgmt/ec_host_cmd/simulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @brief Install callback for when this device would sends data to host
*
* When this host command simulator device should send data to the host, it
* will call the the callback parameter provided by this function. Note that
* will call the callback parameter provided by this function. Note that
* only one callback may be installed at a time. Calling this a second time
* will override the first callback installation.
*
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/net/net_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -2596,7 +2596,7 @@ struct net_if *net_if_select_src_iface(const struct sockaddr *dst);
* @typedef net_if_link_callback_t
* @brief Define callback that is called after a network packet
* has been sent.
* @param iface A pointer to a struct net_if to which the the net_pkt was sent to.
* @param iface A pointer to a struct net_if to which the net_pkt was sent to.
* @param dst Link layer address of the destination where the network packet was sent.
* @param status Send status, 0 is ok, < 0 error.
*/
Expand Down
4 changes: 2 additions & 2 deletions include/zephyr/sys/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ static inline void bytecpy(void *dst, const void *src, size_t size)
* Swap @a size bytes between memory regions @a a and @a b. This is
* guaranteed to be done byte by byte.
*
* @param a Pointer to the the first memory region.
* @param b Pointer to the the second memory region.
* @param a Pointer to the first memory region.
* @param b Pointer to the second memory region.
* @param size The number of bytes to swap.
*/
static inline void byteswp(void *a, void *b, size_t size)
Expand Down
2 changes: 1 addition & 1 deletion kernel/userspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ uint8_t *z_priv_stack_find(k_thread_stack_t *stack)
/*
* Note that dyn_obj->data is where the kernel object resides
* so it is the one that actually needs to be aligned.
* Due to the need to get the the fields inside struct dyn_obj
* Due to the need to get the fields inside struct dyn_obj
* from kernel object pointers (i.e. from data[]), the offset
* from data[] needs to be fixed at build time. Therefore,
* data[] is declared with __aligned(), such that when dyn_obj
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ char *utf8_trunc(char *utf8_str)
}
bytes_truncated++; /* include the starting byte */

/* Verify if the the last character actually need to be truncated
/* Verify if the last character actually need to be truncated
* Handles the case where the number of bytes in the last UTF8-char
* matches the number of bytes we searched for the starting byte
*/
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/check_init_priorities.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def _parse_args(argv):
parser.add_argument("-i", "--initlevels", action="store_true",
help="print the initlevel functions instead of checking the device dependencies")
parser.add_argument("--edt-pickle", default=pathlib.Path("edt.pickle"),
help="name of the the pickled edtlib.EDT file",
help="name of the pickled edtlib.EDT file",
type=pathlib.Path)

return parser.parse_args(argv)
Expand Down
2 changes: 1 addition & 1 deletion scripts/native_simulator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Native Simulator (NSI) Makefile.
# It builds the simulator runner itself, and produces the final
# Linux executable by linking it to the the embedded cpu library
# Linux executable by linking it to the embedded cpu library

# By default all the build output is placed under the _build folder, but the user can override it
# setting the NSI_BUILD_PATH
Expand Down
2 changes: 1 addition & 1 deletion scripts/west_commands/runners/mdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def do_add_parser(cls, parser):
help='''choose the number of cores that target has,
e.g. --cores=1''')
parser.add_argument('--dig-device', default='',
help='''choose the the specific digilent device to
help='''choose the specific digilent device to
connect, this is useful when multiple
targets are connected''')

Expand Down
2 changes: 1 addition & 1 deletion scripts/west_commands/runners/nios2.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def do_add_parser(cls, parser):
# TODO merge quartus-flash.py script into this file.
parser.add_argument('--quartus-flash', required=True)
parser.add_argument('--cpu-sof', required=True,
help='path to the the CPU .sof data')
help='path to the CPU .sof data')
parser.add_argument('--tui', default=False, action='store_true',
help='if given, GDB uses -tui')

Expand Down
2 changes: 1 addition & 1 deletion soc/gd/gd32/gd32vf103/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SECTION_FUNC(init, __nuclei_start)
jr a0

_start0800:
/* Set the the NMI base to share with mtvec by setting CSR_MMISC_CTL */
/* Set the NMI base to share with mtvec by setting CSR_MMISC_CTL */
li t0, 0x200
csrs CSR_MMISC_CTL, t0

Expand Down
2 changes: 1 addition & 1 deletion soc/native/inf_clock/posix_board_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/*
* This file lists the functions the posix "inf_clock" soc
* expect the the board to provide
* expect the board to provide
*
* All functions listed here must be provided by the implementation of the board
*
Expand Down
2 changes: 1 addition & 1 deletion soc/neorv32/soc_irq.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GTEXT(__soc_handle_irq)
*/
SECTION_FUNC(exception.other, __soc_handle_irq)
/*
* The the MIP CSR on the NEORV32 is read-only and can thus not be used for
* The MIP CSR on the NEORV32 is read-only and can thus not be used for
* clearing a pending IRQ. Instead we disable the IRQ in the MIE CSR and
* re-enable it (if it was enabled when clearing).
*/
Expand Down
2 changes: 1 addition & 1 deletion soc/nordic/nrf53/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static void cpu_idle_prepare_monitor_begin(void)
static bool cpu_idle_prepare_monitor_end(void)
{
/* The value stored is irrelevant. If any exception took place after
* cpu_idle_prepare_monitor_begin, the the local monitor is cleared and
* cpu_idle_prepare_monitor_begin, the local monitor is cleared and
* the store fails returning 1.
* See Arm v8-M Architecture Reference Manual:
* Chapter B9.2 The local monitors
Expand Down
2 changes: 1 addition & 1 deletion soc/openisa/rv32m1/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* interrupts.
*
* Level 1 interrupts go straight to the SoC. Level 2 interrupts must
* go through one of the 8 channels in the the INTMUX
* go through one of the 8 channels in the INTMUX
* peripheral. There are 32 level 1 interrupts, including 8 INTMUX
* interrupts. Each INTMUX interrupt can mux at most
* CONFIG_MAX_IRQ_PER_AGGREGATOR (which happens to be 32) interrupts
Expand Down
2 changes: 1 addition & 1 deletion subsys/bluetooth/audio/Kconfig.mcs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ config BT_MCC_SEGMENT_NAME_MAX
default 25
range 1 255
help
Sets the the maximum number of bytes (including the null termination)
Sets the maximum number of bytes (including the null termination)
of the name of any track segment in the media player. If the name is
longer, the media control client will truncate the name when reading
it.
Expand Down
2 changes: 1 addition & 1 deletion subsys/bluetooth/audio/Kconfig.mpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ config BT_MPL_SEGMENT_NAME_MAX
default 25
range 1 255
help
Sets the the maximum number of bytes (including the null termination)
Sets the maximum number of bytes (including the null termination)
of the name of any track segment in the media player.

config BT_MPL_GROUP_TITLE_MAX
Expand Down
Loading

0 comments on commit bd4fe5e

Please sign in to comment.