Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <shenlichuan@vivo.com>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20241030140315.40562-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Shen Lichuan and committed by
Greg Kroah-Hartman
b3d75e9b 1530b923

+5 -5
+1 -1
drivers/nvmem/brcm_nvram.c
··· 22 22 * 23 23 * @dev: NVMEM device pointer 24 24 * @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 26 26 * @data_len: NVRAM data size 27 27 * @padding_byte: Padding value used to fill remaining space 28 28 * @cells: Array of discovered NVMEM cells
+2 -2
drivers/nvmem/core.c
··· 1247 1247 } 1248 1248 1249 1249 /** 1250 - * devm_nvmem_device_put() - put alredy got nvmem device 1250 + * devm_nvmem_device_put() - put already got nvmem device 1251 1251 * 1252 1252 * @dev: Device that uses the nvmem device. 1253 1253 * @nvmem: pointer to nvmem device allocated by devm_nvmem_cell_get(), ··· 1265 1265 EXPORT_SYMBOL_GPL(devm_nvmem_device_put); 1266 1266 1267 1267 /** 1268 - * nvmem_device_put() - put alredy got nvmem device 1268 + * nvmem_device_put() - put already got nvmem device 1269 1269 * 1270 1270 * @nvmem: pointer to nvmem device that needs to be released. 1271 1271 */
+1 -1
drivers/nvmem/lpc18xx_otp.c
··· 21 21 * LPC18xx OTP memory contains 4 banks with 4 32-bit words. Bank 0 starts 22 22 * at offset 0 from the base. 23 23 * 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 25 25 * devices with Flash. 26 26 * Bank 1/2 is generale purpose or AES key storage for secure devices. 27 27 * Bank 3 contains control data, USB ID and generale purpose words.
+1 -1
drivers/nvmem/microchip-otpc.c
··· 156 156 /* 157 157 * We reach this point with off being multiple of stride = 4 to 158 158 * 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 160 160 * before passing it to mchp_otpc_id_to_packet(). 161 161 */ 162 162 packet = mchp_otpc_id_to_packet(otpc, off / 4);