pwm: pca9685: clarify pca9685_set_sleep_mode() interface.
authorSven Van Asbroeck <thesven73@gmail.com>
Fri, 21 Apr 2017 13:19:02 +0000 (09:19 -0400)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 25 Jul 2017 11:41:59 +0000 (13:41 +0200)
commit0829326ab26ecc598985b6e456c045a15bd253e4
tree5832b72c542bf1c3c1cdae65bd512f634010bc7e
parent36af66a7905699a5c8e384e8777ead7be68a3ab9
pwm: pca9685: clarify pca9685_set_sleep_mode() interface.

The function
static void pca9685_set_sleep_mode(struct pca9685 *pca, int sleep)
takes the chip in and out of sleep mode, depending on the value of
sleep, which is interpreted as a boolean.

To clarify that 'int sleep' is a boolean and not a sleep delay,
change the function interface to:
static void pca9685_set_sleep_mode(struct pca9685 *pca, bool enable)

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sven Van Asbroeck <thesven73@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-pca9685.c