Skip to content

Commit 2f9060b

Browse files
bjorn-helgaastsbogend
authored andcommitted
MIPS: Fix typos
Fix typos, most reported by "codespell arch/mips". Only touches comments, no code changes. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: linux-mips@vger.kernel.org Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 8e18039 commit 2f9060b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+80
-80
lines changed

arch/mips/bcm47xx/buttons.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,21 +147,21 @@ static const struct gpio_keys_button
147147
bcm47xx_buttons_buffalo_whr_g125[] __initconst = {
148148
BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON),
149149
BCM47XX_GPIO_KEY(4, KEY_RESTART),
150-
BCM47XX_GPIO_KEY(5, BTN_0), /* Router / AP mode swtich */
150+
BCM47XX_GPIO_KEY(5, BTN_0), /* Router / AP mode switch */
151151
};
152152

153153
static const struct gpio_keys_button
154154
bcm47xx_buttons_buffalo_whr_g54s[] __initconst = {
155155
BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON),
156156
BCM47XX_GPIO_KEY_H(4, KEY_RESTART),
157-
BCM47XX_GPIO_KEY(5, BTN_0), /* Router / AP mode swtich */
157+
BCM47XX_GPIO_KEY(5, BTN_0), /* Router / AP mode switch */
158158
};
159159

160160
static const struct gpio_keys_button
161161
bcm47xx_buttons_buffalo_whr_hp_g54[] __initconst = {
162162
BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON),
163163
BCM47XX_GPIO_KEY(4, KEY_RESTART),
164-
BCM47XX_GPIO_KEY(5, BTN_0), /* Router / AP mode swtich */
164+
BCM47XX_GPIO_KEY(5, BTN_0), /* Router / AP mode switch */
165165
};
166166

167167
static const struct gpio_keys_button

arch/mips/bcm63xx/clk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static void enetsw_set(struct clk *clk, int enable)
174174
}
175175

176176
if (enable) {
177-
/* reset switch core afer clock change */
177+
/* reset switch core after clock change */
178178
bcm63xx_core_set_reset(BCM63XX_RESET_ENETSW, 1);
179179
msleep(10);
180180
bcm63xx_core_set_reset(BCM63XX_RESET_ENETSW, 0);
@@ -304,7 +304,7 @@ static void xtm_set(struct clk *clk, int enable)
304304
bcm_hwclock_set(CKCTL_6368_SAR_EN, enable);
305305

306306
if (enable) {
307-
/* reset sar core afer clock change */
307+
/* reset sar core after clock change */
308308
bcm63xx_core_set_reset(BCM63XX_RESET_SAR, 1);
309309
mdelay(1);
310310
bcm63xx_core_set_reset(BCM63XX_RESET_SAR, 0);

arch/mips/boot/compressed/dbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* MIPS-specific debug support for pre-boot environment
44
*
55
* NOTE: putc() is board specific, if your board have a 16550 compatible uart,
6-
* please select SYS_SUPPORTS_ZBOOT_UART16550 for your machine. othewise, you
6+
* please select SYS_SUPPORTS_ZBOOT_UART16550 for your machine. otherwise, you
77
* need to implement your own putc().
88
*/
99
#include <linux/compiler.h>

arch/mips/boot/elf2ecoff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ int main(int argc, char *argv[])
443443
efh.f_symptr = 0;
444444
efh.f_nsyms = 0;
445445
efh.f_opthdr = sizeof eah;
446-
efh.f_flags = 0x100f; /* Stripped, not sharable. */
446+
efh.f_flags = 0x100f; /* Stripped, not shareable. */
447447

448448
memset(esecs, 0, sizeof esecs);
449449
strcpy(esecs[0].s_name, ".text");

arch/mips/cavium-octeon/csrc-octeon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static struct clocksource clocksource_mips = {
113113

114114
unsigned long long notrace sched_clock(void)
115115
{
116-
/* 64-bit arithmatic can overflow, so use 128-bit. */
116+
/* 64-bit arithmetic can overflow, so use 128-bit. */
117117
u64 t1, t2, t3;
118118
unsigned long long rv;
119119
u64 mult = clocksource_mips.mult;

arch/mips/cavium-octeon/executive/cvmx-boot-vector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static void cvmx_boot_vector_init(void *mem)
143143
uint64_t v = _cvmx_bootvector_data[i];
144144

145145
if (OCTEON_IS_OCTEON1PLUS() && (i == 0 || i == 7))
146-
v &= 0xffffffff00000000ull; /* KScratch not availble. */
146+
v &= 0xffffffff00000000ull; /* KScratch not available */
147147
cvmx_write_csr(CVMX_MIO_BOOT_LOC_ADR, i * 8);
148148
cvmx_write_csr(CVMX_MIO_BOOT_LOC_DAT, v);
149149
}

arch/mips/cavium-octeon/executive/cvmx-bootmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min,
264264
* Convert !0 address_min and 0 address_max to special case of
265265
* range that specifies an exact memory block to allocate. Do
266266
* this before other checks and adjustments so that this
267-
* tranformation will be validated.
267+
* transformation will be validated.
268268
*/
269269
if (address_min && !address_max)
270270
address_max = address_min + req_size;

arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ cvmx_cmd_queue_result_t cvmx_cmd_queue_initialize(cvmx_cmd_queue_id_t queue_id,
192192
}
193193

194194
/*
195-
* Shutdown a queue a free it's command buffers to the FPA. The
195+
* Shutdown a queue and free its command buffers to the FPA. The
196196
* hardware connected to the queue must be stopped before this
197197
* function is called.
198198
*
@@ -285,7 +285,7 @@ int cvmx_cmd_queue_length(cvmx_cmd_queue_id_t queue_id)
285285

286286
/*
287287
* Return the command buffer to be written to. The purpose of this
288-
* function is to allow CVMX routine access t othe low level buffer
288+
* function is to allow CVMX routine access to the low level buffer
289289
* for initial hardware setup. User applications should not call this
290290
* function directly.
291291
*

arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ uint32_t cvmx_helper_qlm_jtag_shift(int qlm, int bits, uint32_t data)
103103
/**
104104
* Shift long sequences of zeros into the QLM JTAG chain. It is
105105
* common to need to shift more than 32 bits of zeros into the
106-
* chain. This function is a convience wrapper around
106+
* chain. This function is a convenience wrapper around
107107
* cvmx_helper_qlm_jtag_shift() to shift more than 32 bits of
108108
* zeros at a time.
109109
*

arch/mips/cavium-octeon/executive/cvmx-pko.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ int cvmx_pko_rate_limit_bits(int port, uint64_t bits_s, int burst)
615615
/*
616616
* Each packet has a 12 bytes of interframe gap, an 8 byte
617617
* preamble, and a 4 byte CRC. These are not included in the
618-
* per word count. Multiply by 8 to covert to bits and divide
618+
* per word count. Multiply by 8 to convert to bits and divide
619619
* by 256 for limit granularity.
620620
*/
621621
pko_mem_port_rate0.s.rate_pkt = (12 + 8 + 4) * 8 * tokens_per_bit / 256;

0 commit comments

Comments
 (0)