i2c: designware: Fix spelling typos in the comments
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Mar 2020 15:30:12 +0000 (17:30 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 21 Mar 2020 18:53:08 +0000 (19:53 +0100)
Fix spelling typos in the comments with help of `codespell`.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-baytrail.c
drivers/i2c/busses/i2c-designware-common.c
drivers/i2c/busses/i2c-designware-master.c
drivers/i2c/busses/i2c-designware-pcidrv.c
drivers/i2c/busses/i2c-designware-slave.c

index 33da07d..c6a7a00 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * Intel BayTrail PMIC I2C bus semaphore implementaion
+ * Intel BayTrail PMIC I2C bus semaphore implementation
  * Copyright (c) 2014, Intel Corporation.
  */
 #include <linux/device.h>
index 72e93c1..c70c6fc 100644 (file)
@@ -102,7 +102,7 @@ int i2c_dw_set_reg_access(struct dw_i2c_dev *dev)
        i2c_dw_release_lock(dev);
 
        if (reg == swab32(DW_IC_COMP_TYPE_VALUE)) {
-               /* Configure register endianess access */
+               /* Configure register endianness access */
                dev->flags |= ACCESS_SWAP;
        } else if (reg == (DW_IC_COMP_TYPE_VALUE & 0x0000ffff)) {
                /* Configure register access mode 16bit */
@@ -190,10 +190,10 @@ int i2c_dw_set_sda_hold(struct dw_i2c_dev *dev)
 
                /*
                 * Workaround for avoiding TX arbitration lost in case I2C
-                * slave pulls SDA down "too quickly" after falling egde of
+                * slave pulls SDA down "too quickly" after falling edge of
                 * SCL by enabling non-zero SDA RX hold. Specification says it
                 * extends incoming SDA low to high transition while SCL is
-                * high but it apprears to help also above issue.
+                * high but it appears to help also above issue.
                 */
                if (!(dev->sda_hold_time & DW_IC_SDA_HOLD_RX_MASK))
                        dev->sda_hold_time |= 1 << DW_IC_SDA_HOLD_RX_SHIFT;
@@ -378,7 +378,7 @@ void i2c_dw_disable(struct dw_i2c_dev *dev)
        /* Disable controller */
        __i2c_dw_disable(dev);
 
-       /* Disable all interupts */
+       /* Disable all interrupts */
        dw_writel(dev, 0, DW_IC_INTR_MASK);
        dw_readl(dev, DW_IC_CLR_INTR);
 }
index 05da900..3a58eef 100644 (file)
@@ -521,7 +521,7 @@ static u32 i2c_dw_read_clear_intrbits(struct dw_i2c_dev *dev)
 
        /*
         * The IC_INTR_STAT register just indicates "enabled" interrupts.
-        * Ths unmasked raw version of interrupt status bits are available
+        * The unmasked raw version of interrupt status bits is available
         * in the IC_RAW_INTR_STAT register.
         *
         * That is,
index 050adda..656206c 100644 (file)
@@ -109,7 +109,7 @@ static int mfld_setup(struct pci_dev *pdev, struct dw_pci_controller *c)
 static int mrfld_setup(struct pci_dev *pdev, struct dw_pci_controller *c)
 {
        /*
-        * On Intel Merrifield the user visible i2c busses are enumerated
+        * On Intel Merrifield the user visible i2c buses are enumerated
         * [1..7]. So, we add 1 to shift the default range. Besides that the
         * first PCI slot provides 4 functions, that's why we have to add 0 to
         * the first slot and 4 to the next one.
index 0fc3aa3..f5ecf76 100644 (file)
@@ -107,7 +107,7 @@ static u32 i2c_dw_read_clear_intrbits_slave(struct dw_i2c_dev *dev)
 
        /*
         * The IC_INTR_STAT register just indicates "enabled" interrupts.
-        * Ths unmasked raw version of interrupt status bits are available
+        * The unmasked raw version of interrupt status bits is available
         * in the IC_RAW_INTR_STAT register.
         *
         * That is,