realtek: clock: restyle RTCL_ROUND_SET()
authorSander Vanheule <sander@svanheule.net>
Wed, 9 Nov 2022 21:34:58 +0000 (22:34 +0100)
committerSander Vanheule <sander@svanheule.net>
Mon, 26 Dec 2022 19:29:36 +0000 (20:29 +0100)
target/linux/realtek/files-5.10/drivers/clk/realtek/clk-rtl83xx.c

index 32e5ae5c242417023e72205f9689cd03ed1e5846..edf082a656c12ae9dc3aafbf2124b4e93647d4a1 100644 (file)
@@ -187,12 +187,7 @@ static const struct rtcl_rtab_set rtcl_rtab_set[RTCL_SOCCNT][CLK_COUNT] = {
        }
 };
 
-#define RTCL_ROUND_SET(_min, _max, _step)      \
-       {                                       \
-               .min = _min,                    \
-               .max = _max,                    \
-               .step = _step,                  \
-       }
+#define RTCL_ROUND_SET(_min, _max, _s) { .min = _min, .max = _max, .step = _s }
 
 struct rtcl_round_set {
        unsigned long min;
@@ -202,13 +197,13 @@ struct rtcl_round_set {
 
 static const struct rtcl_round_set rtcl_round_set[RTCL_SOCCNT][CLK_COUNT] = {
        {
-               RTCL_ROUND_SET(300000000, 625000000, 25000000),
-               RTCL_ROUND_SET(200000000, 375000000, 25000000),
-               RTCL_ROUND_SET(100000000, 200000000, 25000000)
+               RTCL_ROUND_SET(300000000,       625000000,      25000000),
+               RTCL_ROUND_SET(200000000,       375000000,      25000000),
+               RTCL_ROUND_SET(100000000,       200000000,      25000000)
        }, {
-               RTCL_ROUND_SET(400000000, 850000000, 25000000),
-               RTCL_ROUND_SET(100000000, 400000000, 25000000),
-               RTCL_ROUND_SET(50000000, 200000000, 50000000)
+               RTCL_ROUND_SET(400000000,       850000000,      25000000),
+               RTCL_ROUND_SET(100000000,       400000000,      25000000),
+               RTCL_ROUND_SET(50000000,        200000000,      50000000)
        }
 };