xilinx_hwicap: cleanup comments
authorTom Rix <trix@redhat.com>
Tue, 15 Feb 2022 19:30:54 +0000 (11:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Feb 2022 11:08:57 +0000 (12:08 +0100)
Remove the second 'the'.
Replacements:
was to what
intiate to initiate

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20220215193054.3032955-1-trix@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/xilinx_hwicap/fifo_icap.c
drivers/char/xilinx_hwicap/xilinx_hwicap.c

index 02225eb19cf6bd2e6d99085b6edea7aa4801c30b..619f3a30ec55a1c07f71e82b30156f8ec1d6e37e 100644 (file)
@@ -111,7 +111,7 @@ static inline u32 fifo_icap_fifo_read(struct hwicap_drvdata *drvdata)
 }
 
 /**
- * fifo_icap_set_read_size - Set the the size register.
+ * fifo_icap_set_read_size - Set the size register.
  * @drvdata: a pointer to the drvdata.
  * @data: the size of the following read transaction, in words.
  **/
index 067396bedf224184c976510db9921f834f8fbc71..74a4928aea1d37796359a77ab08d7ac8c82b73ee 100644 (file)
@@ -241,7 +241,7 @@ static int hwicap_command_desync(struct hwicap_drvdata *drvdata)
        buffer[index++] = XHI_NOOP_PACKET;
 
        /*
-        * Write the data to the FIFO and intiate the transfer of data present
+        * Write the data to the FIFO and initiate the transfer of data present
         * in the FIFO to the ICAP device.
         */
        return drvdata->config->set_configuration(drvdata,
@@ -297,7 +297,7 @@ static int hwicap_get_configuration_register(struct hwicap_drvdata *drvdata,
        buffer[index++] = XHI_NOOP_PACKET;
 
        /*
-        * Write the data to the FIFO and intiate the transfer of data present
+        * Write the data to the FIFO and initiate the transfer of data present
         * in the FIFO to the ICAP device.
         */
        status = drvdata->config->set_configuration(drvdata,
@@ -384,7 +384,7 @@ hwicap_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
                       drvdata->read_buffer + bytes_to_read,
                       4 - bytes_to_read);
        } else {
-               /* Get new data from the ICAP, and return was was requested. */
+               /* Get new data from the ICAP, and return what was requested. */
                kbuf = (u32 *) get_zeroed_page(GFP_KERNEL);
                if (!kbuf) {
                        status = -ENOMEM;