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: NRyo Kodama <ryo.kodama.vz@renesas.com> Signed-off-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Fixes: 39100cee ("pwm: Switch to the atomic API") Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
Showing
想要评论请 注册 或 登录