power: supply: ds278x: fix spelling typo
authorWang Qing <wangqing@vivo.com>
Sat, 26 Sep 2020 02:41:07 +0000 (10:41 +0800)
committerSebastian Reichel <sre@kernel.org>
Tue, 29 Sep 2020 23:12:04 +0000 (01:12 +0200)
Modify the comment typo: "compliment" -> "complement".

Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ds2780_battery.c
drivers/power/supply/ds2781_battery.c

index db3a25404c9fd9642071bfa4433c4dd0abca3101..dd57a472e8785b273f3bad7e4c94e25066b818ed 100644 (file)
@@ -160,7 +160,7 @@ static int ds2780_get_voltage(struct ds2780_device_info *dev_info,
 
        /*
         * The voltage value is located in 10 bits across the voltage MSB
-        * and LSB registers in two's compliment form
+        * and LSB registers in two's complement form
         * Sign bit of the voltage value is in bit 7 of the voltage MSB register
         * Bits 9 - 3 of the voltage value are in bits 6 - 0 of the
         * voltage MSB register
@@ -188,7 +188,7 @@ static int ds2780_get_temperature(struct ds2780_device_info *dev_info,
 
        /*
         * The temperature value is located in 10 bits across the temperature
-        * MSB and LSB registers in two's compliment form
+        * MSB and LSB registers in two's complement form
         * Sign bit of the temperature value is in bit 7 of the temperature
         * MSB register
         * Bits 9 - 3 of the temperature value are in bits 6 - 0 of the
@@ -241,7 +241,7 @@ static int ds2780_get_current(struct ds2780_device_info *dev_info,
 
        /*
         * The current value is located in 16 bits across the current MSB
-        * and LSB registers in two's compliment form
+        * and LSB registers in two's complement form
         * Sign bit of the current value is in bit 7 of the current MSB register
         * Bits 14 - 8 of the current value are in bits 6 - 0 of the current
         * MSB register
index 130cbdfc14eb2020c20f555d02b32900b0fea2b7..3df3c820b38c71c662a946d36a194d09efa5f61c 100644 (file)
@@ -168,7 +168,7 @@ static int ds2781_get_voltage(struct ds2781_device_info *dev_info,
                return ret;
        /*
         * The voltage value is located in 10 bits across the voltage MSB
-        * and LSB registers in two's compliment form
+        * and LSB registers in two's complement form
         * Sign bit of the voltage value is in bit 7 of the voltage MSB register
         * Bits 9 - 3 of the voltage value are in bits 6 - 0 of the
         * voltage MSB register
@@ -197,7 +197,7 @@ static int ds2781_get_temperature(struct ds2781_device_info *dev_info,
                return ret;
        /*
         * The temperature value is located in 10 bits across the temperature
-        * MSB and LSB registers in two's compliment form
+        * MSB and LSB registers in two's complement form
         * Sign bit of the temperature value is in bit 7 of the temperature
         * MSB register
         * Bits 9 - 3 of the temperature value are in bits 6 - 0 of the
@@ -242,7 +242,7 @@ static int ds2781_get_current(struct ds2781_device_info *dev_info,
 
        /*
         * The current value is located in 16 bits across the current MSB
-        * and LSB registers in two's compliment form
+        * and LSB registers in two's complement form
         * Sign bit of the current value is in bit 7 of the current MSB register
         * Bits 14 - 8 of the current value are in bits 6 - 0 of the current
         * MSB register