Andy Shevchenko 684309e504 pwm: lpss: Avoid potential overflow of base_unit
The resolution of base_unit is derived from base_unit_bits and thus must be
equal to (2^base_unit_bits - 1). Otherwise frequency and therefore base_unit
might potentially overflow.

Prevent the above by substracting 1 in all cases where base_unit_bits or
derivative is used.

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2017-01-30 08:13:19 +01:00
..
2017-01-19 00:38:17 +01:00
2017-01-19 00:38:17 +01:00
2016-12-15 11:45:13 -08:00
2015-07-20 09:46:06 +02:00
2017-01-19 00:38:17 +01:00
2016-09-08 10:55:05 +02:00
2017-01-19 00:38:17 +01:00
2016-11-29 16:43:24 +01:00