diff options
author | Sheetal Tigadoli <sheetal.tigadoli@broadcom.com> | 2019-01-16 14:41:22 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-03-04 06:52:49 -0500 |
commit | 6571d13e449d2d577ff88471b7b8a83dfe17c12c (patch) | |
tree | 43be78c40179ebb36c18f357dc56cdcd6f6010cf | |
parent | 519ef9b5f23c16dcb3a3a8a890baf7c084974730 (diff) |
pwm: bcm-kona: Update macros to remove braces around numbers
Parentheses are not needed around integer literals in macros. Remove
them.
Signed-off-by: Sheetal Tigadoli <sheetal.tigadoli@broadcom.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/pwm-bcm-kona.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/pwm/pwm-bcm-kona.c b/drivers/pwm/pwm-bcm-kona.c index 09a95aeb3a70..81da91df2529 100644 --- a/drivers/pwm/pwm-bcm-kona.c +++ b/drivers/pwm/pwm-bcm-kona.c | |||
@@ -45,25 +45,25 @@ | |||
45 | * high or low depending on its state at that exact instant. | 45 | * high or low depending on its state at that exact instant. |
46 | */ | 46 | */ |
47 | 47 | ||
48 | #define PWM_CONTROL_OFFSET (0x00000000) | 48 | #define PWM_CONTROL_OFFSET 0x00000000 |
49 | #define PWM_CONTROL_SMOOTH_SHIFT(chan) (24 + (chan)) | 49 | #define PWM_CONTROL_SMOOTH_SHIFT(chan) (24 + (chan)) |
50 | #define PWM_CONTROL_TYPE_SHIFT(chan) (16 + (chan)) | 50 | #define PWM_CONTROL_TYPE_SHIFT(chan) (16 + (chan)) |
51 | #define PWM_CONTROL_POLARITY_SHIFT(chan) (8 + (chan)) | 51 | #define PWM_CONTROL_POLARITY_SHIFT(chan) (8 + (chan)) |
52 | #define PWM_CONTROL_TRIGGER_SHIFT(chan) (chan) | 52 | #define PWM_CONTROL_TRIGGER_SHIFT(chan) (chan) |
53 | 53 | ||
54 | #define PRESCALE_OFFSET (0x00000004) | 54 | #define PRESCALE_OFFSET 0x00000004 |
55 | #define PRESCALE_SHIFT(chan) ((chan) << 2) | 55 | #define PRESCALE_SHIFT(chan) ((chan) << 2) |
56 | #define PRESCALE_MASK(chan) (0x7 << PRESCALE_SHIFT(chan)) | 56 | #define PRESCALE_MASK(chan) (0x7 << PRESCALE_SHIFT(chan)) |
57 | #define PRESCALE_MIN (0x00000000) | 57 | #define PRESCALE_MIN 0x00000000 |
58 | #define PRESCALE_MAX (0x00000007) | 58 | #define PRESCALE_MAX 0x00000007 |
59 | 59 | ||
60 | #define PERIOD_COUNT_OFFSET(chan) (0x00000008 + ((chan) << 3)) | 60 | #define PERIOD_COUNT_OFFSET(chan) (0x00000008 + ((chan) << 3)) |
61 | #define PERIOD_COUNT_MIN (0x00000002) | 61 | #define PERIOD_COUNT_MIN 0x00000002 |
62 | #define PERIOD_COUNT_MAX (0x00ffffff) | 62 | #define PERIOD_COUNT_MAX 0x00ffffff |
63 | 63 | ||
64 | #define DUTY_CYCLE_HIGH_OFFSET(chan) (0x0000000c + ((chan) << 3)) | 64 | #define DUTY_CYCLE_HIGH_OFFSET(chan) (0x0000000c + ((chan) << 3)) |
65 | #define DUTY_CYCLE_HIGH_MIN (0x00000000) | 65 | #define DUTY_CYCLE_HIGH_MIN 0x00000000 |
66 | #define DUTY_CYCLE_HIGH_MAX (0x00ffffff) | 66 | #define DUTY_CYCLE_HIGH_MAX 0x00ffffff |
67 | 67 | ||
68 | struct kona_pwmc { | 68 | struct kona_pwmc { |
69 | struct pwm_chip chip; | 69 | struct pwm_chip chip; |