Skip to content

Commit b3d75e9

Browse files
Shen Lichuangregkh
authored andcommitted
nvmem: Correct some typos in comments
Fixed some confusing typos that were currently identified with codespell, the details are as follows: -in the code comments: drivers/nvmem/brcm_nvram.c:25: underlaying ==> underlying drivers/nvmem/core.c:1250: alredy ==> already drivers/nvmem/core.c:1268: alredy ==> already drivers/nvmem/lpc18xx_otp.c:24: reseverd ==> reserved drivers/nvmem/microchip-otpc.c:159: devide ==> divide Signed-off-by: Shen Lichuan <[email protected]> Acked-by: Vladimir Zapolskiy <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1530b92 commit b3d75e9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

drivers/nvmem/brcm_nvram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @dev: NVMEM device pointer
2424
* @nvmem_size: Size of the whole space available for NVRAM
25-
* @data: NVRAM data copy stored to avoid poking underlaying flash controller
25+
* @data: NVRAM data copy stored to avoid poking underlying flash controller
2626
* @data_len: NVRAM data size
2727
* @padding_byte: Padding value used to fill remaining space
2828
* @cells: Array of discovered NVMEM cells

drivers/nvmem/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ static void devm_nvmem_device_release(struct device *dev, void *res)
12471247
}
12481248

12491249
/**
1250-
* devm_nvmem_device_put() - put alredy got nvmem device
1250+
* devm_nvmem_device_put() - put already got nvmem device
12511251
*
12521252
* @dev: Device that uses the nvmem device.
12531253
* @nvmem: pointer to nvmem device allocated by devm_nvmem_cell_get(),
@@ -1265,7 +1265,7 @@ void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem)
12651265
EXPORT_SYMBOL_GPL(devm_nvmem_device_put);
12661266

12671267
/**
1268-
* nvmem_device_put() - put alredy got nvmem device
1268+
* nvmem_device_put() - put already got nvmem device
12691269
*
12701270
* @nvmem: pointer to nvmem device that needs to be released.
12711271
*/

drivers/nvmem/lpc18xx_otp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* LPC18xx OTP memory contains 4 banks with 4 32-bit words. Bank 0 starts
2222
* at offset 0 from the base.
2323
*
24-
* Bank 0 contains the part ID for Flashless devices and is reseverd for
24+
* Bank 0 contains the part ID for Flashless devices and is reserved for
2525
* devices with Flash.
2626
* Bank 1/2 is generale purpose or AES key storage for secure devices.
2727
* Bank 3 contains control data, USB ID and generale purpose words.

drivers/nvmem/microchip-otpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static int mchp_otpc_read(void *priv, unsigned int off, void *val,
156156
/*
157157
* We reach this point with off being multiple of stride = 4 to
158158
* be able to cross the subsystem. Inside the driver we use continuous
159-
* unsigned integer numbers for packet id, thus devide off by 4
159+
* unsigned integer numbers for packet id, thus divide off by 4
160160
* before passing it to mchp_otpc_id_to_packet().
161161
*/
162162
packet = mchp_otpc_id_to_packet(otpc, off / 4);

0 commit comments

Comments
 (0)