[PATCH v4 0/6] clk: replace div_mask() by GENMASK()
From: Andy Shevchenko
Date: Thu Jul 09 2015 - 12:45:22 EST
This series replaces div_mask() macros in many clock providers by GENMASK()
generic helper.
Since there are a lot of patterns like GENMASK(n - 1, 0) I have locally, means
not part of the series, a patch to add GENMASK0(n) and GENMASK0_ULL(n) as
equalent to the longer code line. It's still discussible if we need that one
(not only CLK framework uses such idiom).
Changelog v4:
- use GENMASK() instead of div_mask() by Stephen Boyd's comment
Changelog v3:
- fix clk_div_mask() prototype: seems tired like on Friday evening!
Changelog v2:
- fix patches 5,6,7 where parameter of the macro was d instead of d->width
Andy Shevchenko (6):
clk: divider: switch to GENMASK()
clk: mmp: switch to GENMASK()
clk: socfpga: switch to GENMASK()
clk: ti: divider: switch to GENMASK()
clk: tegra: switch to GENMASK()
ARM: imx: switch to GENMASK()
arch/arm/mach-imx/clk-fixup-div.c | 7 +++----
drivers/clk/clk-divider.c | 18 ++++++++----------
drivers/clk/mmp/clk-mix.c | 2 +-
drivers/clk/socfpga/clk-gate.c | 2 +-
drivers/clk/socfpga/clk-periph.c | 2 +-
drivers/clk/socfpga/clk.h | 1 -
drivers/clk/tegra/clk-divider.c | 7 +++----
drivers/clk/ti/divider.c | 18 ++++++++----------
8 files changed, 25 insertions(+), 32 deletions(-)
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/