Skip to content
Commit cad0f296 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Thierry Reding
Browse files

pwm: rockchip: Simplify rockchip_pwm_get_state()



The way state->enabled is computed is rather convoluted and hard to
read - both branches of the if() actually do the exact same thing. So
remove the if(), and further simplify "<boolean condition> ? true :
false" to "<boolean condition>".

Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent ca162ce9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment