]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
nvmem: Correct some typos in comments
authorShen Lichuan <shenlichuan@vivo.com>
Wed, 30 Oct 2024 14:03:11 +0000 (14:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2024 04:33:47 +0000 (05:33 +0100)
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>
drivers/nvmem/brcm_nvram.c
drivers/nvmem/core.c
drivers/nvmem/lpc18xx_otp.c
drivers/nvmem/microchip-otpc.c

index 3d8c87835f4d6cb05d6e7ddf38582ed4f86739c8..b810df727b446b1762a1851750f743e0de6e8788 100644 (file)
@@ -22,7 +22,7 @@
  *
  * @dev:               NVMEM device pointer
  * @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
  * @padding_byte:      Padding value used to fill remaining space
  * @cells:             Array of discovered NVMEM cells
index 33ffa2aa4c1152398ec66b8dd7b30384c5346a6e..66eec1960801e8f501193e3c706bfbe534b28b65 100644 (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.
  * @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);
 
 /**
- * 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.
  */
index adc9948e7b2ec9ca62e0dfa829c3e3c69b0c73d3..c41a0c58bec765deb2f05786af530dc41855d998 100644 (file)
@@ -21,7 +21,7 @@
  * LPC18xx OTP memory contains 4 banks with 4 32-bit words. Bank 0 starts
  * 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.
  * Bank 1/2 is generale purpose or AES key storage for secure devices.
  * Bank 3 contains control data, USB ID and generale purpose words.
index 7cf81738a3e0a50500a3460ae57002c61d94ba07..df979e8549fdb43b5185fbc425d3e02451b76479 100644 (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
         * 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().
         */
        packet = mchp_otpc_id_to_packet(otpc, off / 4);