]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: sysfs: Get return value from pwm_apply_state()
authorRyo Kodama <ryo.kodama.vz@renesas.com>
Wed, 8 Jun 2016 01:58:23 +0000 (10:58 +0900)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 10 Jun 2016 12:24:40 +0000 (14:24 +0200)
commitc79478a40d53a6c049617b07b2faae72ce9ad9e9
tree941c6fec129aff1b1436cefab2fe3af76cab2ea0
parentb438525bcebc88e47947e9e5d452d2d1921867b9
pwm: sysfs: Get return value from pwm_apply_state()

This patch adds to check the return value from pwm_apply_state()
used in enable_store(). The error of enable_store() doesn't work
if the return value doesn't received.

Signed-off-by: Ryo Kodama <ryo.kodama.vz@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fixes: ca05cc630421 ("pwm: Switch to the atomic API")
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/sysfs.c