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>
This commit is contained in:
Shen Lichuan 2024-10-30 14:03:11 +00:00 committed by Greg Kroah-Hartman
parent 1530b923a5
commit b3d75e9ba0
4 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@
* *
* @dev: NVMEM device pointer * @dev: NVMEM device pointer
* @nvmem_size: Size of the whole space available for NVRAM * @nvmem_size: Size of the whole space available for NVRAM
* @data: NVRAM data copy stored to avoid poking underlaying flash controller * @data: NVRAM data copy stored to avoid poking underlying flash controller
* @data_len: NVRAM data size * @data_len: NVRAM data size
* @padding_byte: Padding value used to fill remaining space * @padding_byte: Padding value used to fill remaining space
* @cells: Array of discovered NVMEM cells * @cells: Array of discovered NVMEM cells

View File

@ -1247,7 +1247,7 @@ static void devm_nvmem_device_release(struct device *dev, void *res)
} }
/** /**
* devm_nvmem_device_put() - put alredy got nvmem device * devm_nvmem_device_put() - put already got nvmem device
* *
* @dev: Device that uses the nvmem device. * @dev: Device that uses the nvmem device.
* @nvmem: pointer to nvmem device allocated by devm_nvmem_cell_get(), * @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)
EXPORT_SYMBOL_GPL(devm_nvmem_device_put); EXPORT_SYMBOL_GPL(devm_nvmem_device_put);
/** /**
* nvmem_device_put() - put alredy got nvmem device * nvmem_device_put() - put already got nvmem device
* *
* @nvmem: pointer to nvmem device that needs to be released. * @nvmem: pointer to nvmem device that needs to be released.
*/ */

View File

@ -21,7 +21,7 @@
* LPC18xx OTP memory contains 4 banks with 4 32-bit words. Bank 0 starts * LPC18xx OTP memory contains 4 banks with 4 32-bit words. Bank 0 starts
* at offset 0 from the base. * at offset 0 from the base.
* *
* Bank 0 contains the part ID for Flashless devices and is reseverd for * Bank 0 contains the part ID for Flashless devices and is reserved for
* devices with Flash. * devices with Flash.
* Bank 1/2 is generale purpose or AES key storage for secure devices. * Bank 1/2 is generale purpose or AES key storage for secure devices.
* Bank 3 contains control data, USB ID and generale purpose words. * Bank 3 contains control data, USB ID and generale purpose words.

View File

@ -156,7 +156,7 @@ static int mchp_otpc_read(void *priv, unsigned int off, void *val,
/* /*
* We reach this point with off being multiple of stride = 4 to * We reach this point with off being multiple of stride = 4 to
* be able to cross the subsystem. Inside the driver we use continuous * be able to cross the subsystem. Inside the driver we use continuous
* unsigned integer numbers for packet id, thus devide off by 4 * unsigned integer numbers for packet id, thus divide off by 4
* before passing it to mchp_otpc_id_to_packet(). * before passing it to mchp_otpc_id_to_packet().
*/ */
packet = mchp_otpc_id_to_packet(otpc, off / 4); packet = mchp_otpc_id_to_packet(otpc, off / 4);