coding-style simplification, per Thierry
Cc: "Kim, Milo" <Milo.Kim@ti.com>
Cc: Bryan Wu <bryan.wu@canonical.com>
Cc: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
}
pwm_config(lp->pwm, duty, period);
- duty == 0 ? pwm_disable(lp->pwm) : pwm_enable(lp->pwm);
+ if (duty)
+ pwm_enable(lp->pwm);
+ else
+ pwm_disable(lp->pwm);
}
static int lp855x_bl_update_status(struct backlight_device *bl)