video: backlight: Parse PWM polarity cell
authorStefan Mavrodiev <stefan@olimex.com>
Fri, 12 Apr 2019 05:56:27 +0000 (08:56 +0300)
committerAnatolij Gustschin <agust@denx.de>
Sun, 14 Apr 2019 12:17:36 +0000 (14:17 +0200)
commit57e7775413cfd4ada728c4e60df64895dfa37e4e
tree758c983d5b8c46ae9738c401f86010b50525f7fa
parentcf5eebeb18f7790d5030eb94f51fca0ebcd6e406
video: backlight: Parse PWM polarity cell

This patch enables the reading of the polarity cell from a PWM
phandle and calls pwm_set_invert().

Not all platforms have polarity cell, so skip if it's not pressent.

Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
drivers/video/pwm_backlight.c