forked from luck/tmp_suning_uos_patched
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 <thierry.reding@gmail.com>
This commit is contained in:
parent
a9d887dc1c
commit
b8fb642afa
|
@ -25,10 +25,10 @@
|
|||
#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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user