summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-vt8500.c
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2017-04-21 09:19:02 -0400
committerThierry Reding <thierry.reding@gmail.com>2017-07-25 13:41:59 +0200
commit0829326ab26ecc598985b6e456c045a15bd253e4 (patch)
tree5832b72c542bf1c3c1cdae65bd512f634010bc7e /drivers/pwm/pwm-vt8500.c
parent36af66a7905699a5c8e384e8777ead7be68a3ab9 (diff)
downloadlinux-0829326ab26ecc598985b6e456c045a15bd253e4.tar.bz2
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>
Diffstat (limited to 'drivers/pwm/pwm-vt8500.c')
0 files changed, 0 insertions, 0 deletions