Skip to content

Commit b8fb642

Browse files
committed
pwm: iqs620a: Use lowercase hexadecimal literals for consistency
Other drivers use lowercase hexadecimal literals, so convert the IQS620a driver to do the same for consistency. Signed-off-by: Thierry Reding <[email protected]>
1 parent a9d887d commit b8fb642

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/pwm/pwm-iqs620a.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
#include <linux/regmap.h>
2626
#include <linux/slab.h>
2727

28-
#define IQS620_PWR_SETTINGS 0xD2
28+
#define IQS620_PWR_SETTINGS 0xd2
2929
#define IQS620_PWR_SETTINGS_PWM_OUT BIT(7)
3030

31-
#define IQS620_PWM_DUTY_CYCLE 0xD8
31+
#define IQS620_PWM_DUTY_CYCLE 0xd8
3232

3333
#define IQS620_PWM_PERIOD_NS 1000000
3434

@@ -94,7 +94,7 @@ static int iqs620_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
9494

9595
if (state->enabled && duty_scale) {
9696
ret = regmap_update_bits(iqs62x->regmap, IQS620_PWR_SETTINGS,
97-
IQS620_PWR_SETTINGS_PWM_OUT, 0xFF);
97+
IQS620_PWR_SETTINGS_PWM_OUT, 0xff);
9898
if (ret)
9999
goto err_mutex;
100100
}
@@ -160,7 +160,7 @@ static int iqs620_pwm_notifier(struct notifier_block *notifier,
160160

161161
ret = regmap_update_bits(iqs62x->regmap, IQS620_PWR_SETTINGS,
162162
IQS620_PWR_SETTINGS_PWM_OUT,
163-
iqs620_pwm->out_en ? 0xFF : 0);
163+
iqs620_pwm->out_en ? 0xff : 0);
164164

165165
err_mutex:
166166
mutex_unlock(&iqs620_pwm->lock);

0 commit comments

Comments
 (0)