Skip to content

Commit edfa378

Browse files
geertubebarino
authored andcommitted
clk: Align provider-specific CLK_* bit definitions
The definition of CLK_MULTIPLIER_ROUND_CLOSEST is not aligned to the two bit definitions next to it. A deeper inspection reveals that the alignment of CLK_MULTIPLIER_ROUND_CLOSEST does match the most common alignment. Align the bit definitions for the various provider types throughout the file at 40 columns, to increase uniformity. Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/5468cd9e50cda8fc59cb6baab9413c6c0de1a974.1626257689.git.geert+renesas@glider.be Signed-off-by: Stephen Boyd <[email protected]>
1 parent e73f0f0 commit edfa378

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/linux/clk-provider.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ struct clk_fixed_rate {
342342
unsigned long flags;
343343
};
344344

345-
#define CLK_FIXED_RATE_PARENT_ACCURACY BIT(0)
345+
#define CLK_FIXED_RATE_PARENT_ACCURACY BIT(0)
346346

347347
extern const struct clk_ops clk_fixed_rate_ops;
348348
struct clk_hw *__clk_hw_register_fixed_rate(struct device *dev,
@@ -1020,8 +1020,8 @@ struct clk_fractional_divider {
10201020

10211021
#define to_clk_fd(_hw) container_of(_hw, struct clk_fractional_divider, hw)
10221022

1023-
#define CLK_FRAC_DIVIDER_ZERO_BASED BIT(0)
1024-
#define CLK_FRAC_DIVIDER_BIG_ENDIAN BIT(1)
1023+
#define CLK_FRAC_DIVIDER_ZERO_BASED BIT(0)
1024+
#define CLK_FRAC_DIVIDER_BIG_ENDIAN BIT(1)
10251025

10261026
extern const struct clk_ops clk_fractional_divider_ops;
10271027
struct clk *clk_register_fractional_divider(struct device *dev,
@@ -1069,9 +1069,9 @@ struct clk_multiplier {
10691069

10701070
#define to_clk_multiplier(_hw) container_of(_hw, struct clk_multiplier, hw)
10711071

1072-
#define CLK_MULTIPLIER_ZERO_BYPASS BIT(0)
1072+
#define CLK_MULTIPLIER_ZERO_BYPASS BIT(0)
10731073
#define CLK_MULTIPLIER_ROUND_CLOSEST BIT(1)
1074-
#define CLK_MULTIPLIER_BIG_ENDIAN BIT(2)
1074+
#define CLK_MULTIPLIER_BIG_ENDIAN BIT(2)
10751075

10761076
extern const struct clk_ops clk_multiplier_ops;
10771077

0 commit comments

Comments
 (0)