]> git.karo-electronics.de Git - linux-beck.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)
commitfe5aa34d6eb9c4d34071845f70f3714b41c8a77d
tree941c6fec129aff1b1436cefab2fe3af76cab2ea0
parentef2bf4997f7da6efa8540d9cf726c44bf2b863af
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: 39100ceea79f ("pwm: Switch to the atomic API")
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/sysfs.c