drivers: pwm: pwm-bcm-kona: update macros to remove braces around numbers
Subsystems (2)
PATCH 1/1 drivers: pwm: pwm-bcm-kona: update macros to remove braces around numbers
update macros to remove braces around numbers
Signed-off-by Sheetal Tigadoli <[email protected]>
--- drivers/pwm/pwm-bcm-kona.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/pwm/pwm-bcm-kona.c +8 -8
@@ -45,25 +45,25 @@* high or low depending on its state at that exact instant. */ -#define PWM_CONTROL_OFFSET (0x00000000) +#define PWM_CONTROL_OFFSET 0x00000000#define PWM_CONTROL_SMOOTH_SHIFT (chan) (24 + (chan))#define PWM_CONTROL_TYPE_SHIFT (chan) (16 + (chan))#define PWM_CONTROL_POLARITY_SHIFT (chan) (8 + (chan))#define PWM_CONTROL_TRIGGER_SHIFT (chan) (chan) -#define PRESCALE_OFFSET (0x00000004) +#define PRESCALE_OFFSET 0x00000004#define PRESCALE_SHIFT (chan) ((chan) << 2)#define PRESCALE_MASK (chan) (0x7 << PRESCALE_SHIFT(chan)) -#define PRESCALE_MIN (0x00000000) -#define PRESCALE_MAX (0x00000007) +#define PRESCALE_MIN 0x00000000 +#define PRESCALE_MAX 0x00000007#define PERIOD_COUNT_OFFSET (chan) (0x00000008 + ((chan) << 3)) -#define PERIOD_COUNT_MIN (0x00000002) -#define PERIOD_COUNT_MAX (0x00ffffff) +#define PERIOD_COUNT_MIN 0x00000002 +#define PERIOD_COUNT_MAX 0x00ffffff#define DUTY_CYCLE_HIGH_OFFSET (chan) (0x0000000c + ((chan) << 3)) -#define DUTY_CYCLE_HIGH_MIN (0x00000000) -#define DUTY_CYCLE_HIGH_MAX (0x00ffffff) +#define DUTY_CYCLE_HIGH_MIN 0x00000000 +#define DUTY_CYCLE_HIGH_MAX 0x00ffffffstruct kona_pwmc {struct pwm_chip chip;
Signature · 1 line
1.9.1
Hello,
I'm sure Thierry doesn't want "drivers:" in the Subject, but usually he just fixes up stuff like that while applying, so I expect no reason to resend.
Quoted 3 lines · Sheetal Tigadoli
update macros to remove braces around numbers
Signed-off-by Sheetal Tigadoli <[email protected]>
Acked-by Uwe Kleine-König <[email protected]>
Thanks
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |
Thierry Reding
AppliedQuoted 6 lines · Sheetal Tigadoli
update macros to remove braces around numbers
Signed-off-by Sheetal Tigadoli <[email protected]>--- drivers/pwm/pwm-bcm-kona.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
Applied, thanks.
I dropped the "drivers: " prefix and shortened pwm-bcm-kona to bcm-kona because PWM is already implied by the "pwm: " prefix. I've also replaced the commit message with a real rationale rather than repeating the subject.
Please keep this in mind for future patches.
Thierry