pwm: iqs620a: Use lowercase hexadecimal literals for consistency
authorThierry Reding <thierry.reding@gmail.com>
Mon, 15 Jun 2020 14:10:16 +0000 (16:10 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 17 Jun 2020 18:42:59 +0000 (20:42 +0200)
Other drivers use lowercase hexadecimal literals, so convert the IQS620a
driver to do the same for consistency.

Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-iqs620a.c

index b2bb27eff6239020007029f10ce1d7833a663e49..7d33e364643601e1ccce4d6f2ba399ce822cc740 100644 (file)
 #include <linux/regmap.h>
 #include <linux/slab.h>
 
-#define IQS620_PWR_SETTINGS                    0xD2
+#define IQS620_PWR_SETTINGS                    0xd2
 #define IQS620_PWR_SETTINGS_PWM_OUT            BIT(7)
 
-#define IQS620_PWM_DUTY_CYCLE                  0xD8
+#define IQS620_PWM_DUTY_CYCLE                  0xd8
 
 #define IQS620_PWM_PERIOD_NS                   1000000
 
@@ -94,7 +94,7 @@ static int iqs620_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
 
        if (state->enabled && duty_scale) {
                ret = regmap_update_bits(iqs62x->regmap, IQS620_PWR_SETTINGS,
-                                        IQS620_PWR_SETTINGS_PWM_OUT, 0xFF);
+                                        IQS620_PWR_SETTINGS_PWM_OUT, 0xff);
                if (ret)
                        goto err_mutex;
        }
@@ -160,7 +160,7 @@ static int iqs620_pwm_notifier(struct notifier_block *notifier,
 
        ret = regmap_update_bits(iqs62x->regmap, IQS620_PWR_SETTINGS,
                                 IQS620_PWR_SETTINGS_PWM_OUT,
-                                iqs620_pwm->out_en ? 0xFF : 0);
+                                iqs620_pwm->out_en ? 0xff : 0);
 
 err_mutex:
        mutex_unlock(&iqs620_pwm->lock);