Commit fe5aa34d authored by Ryo Kodama's avatar Ryo Kodama Committed by Thierry Reding
Browse files

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: default avatarRyo Kodama <ryo.kodama.vz@renesas.com>
Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fixes: 39100cee

 ("pwm: Switch to the atomic API")
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent ef2bf499
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment