clk: fractional-divider: keep mwidth and nwidth internally
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Sep 2015 15:54:09 +0000 (18:54 +0300)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 2 Oct 2015 18:29:46 +0000 (11:29 -0700)
commit934e2536b1bfe663de033298f75c1b8ff9d0c9ea
treee202cb43d3677925d386debfe66fae179a49974a
parentf7f087c262771ab1d3be8b9c54266637f6136963
clk: fractional-divider: keep mwidth and nwidth internally

The patch adds mwidth and nwidth fields to the struct clk_fractional_divider
for further usage. While here, use GENMASK() instead of open coding this
functionality.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-fractional-divider.c
include/linux/clk-provider.h