From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 2 Jul 2019 23:04:31 +0200 Subject: [U-Boot] [PATCH v2] video: backlight: fix pwm invertation In-Reply-To: <31882144.cceQhDUPd6@ax5200p> References: <31882144.cceQhDUPd6@ax5200p> Message-ID: <20190702230431.032ef88e@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 02 Jul 2019 22:08:33 +0200 marvin24 at posteo.de marvin24 at posteo.de wrote: > Fixes: 57e7775413 ("video: backlight: Parse PWM polarity cell") > > set_pwm will always fail with -ENOSYS if pwm_set_invert is not implemented, > leaving the backlight dark. Fix this by returning no error if > pwm_set_invert is not implemented and no polarity change is requested. > > v2: simplify logic > > Signed-off-by: Marc Dietrich Reviewed-by: Anatolij Gustschin