]> Git Repo - linux.git/commitdiff
pwm: bcm-kona: Update macros to remove braces around numbers
authorSheetal Tigadoli <[email protected]>
Wed, 16 Jan 2019 19:41:22 +0000 (01:11 +0530)
committerThierry Reding <[email protected]>
Mon, 4 Mar 2019 11:52:49 +0000 (12:52 +0100)
Parentheses are not needed around integer literals in macros. Remove
them.

Signed-off-by: Sheetal Tigadoli <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
drivers/pwm/pwm-bcm-kona.c

index 09a95aeb3a70ff79bb11819126ac5874f2d4a909..81da91df2529ab0b8801620b4eb26490cfc5f0c6 100644 (file)
  *    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                    0x00ffffff
 
 struct kona_pwmc {
        struct pwm_chip chip;
This page took 0.057818 seconds and 4 git commands to generate.