Re: [PATCH] drivers: fbtft: Refactor backlight logic

2022-02-14 Thread Andy Shevchenko
On Sat, Feb 12, 2022 at 12:27:39PM +0800, qianfangui...@163.com wrote: > From: qianfan Zhao > > Control led gpios by using GPIO_ACTIVE flags, don't detect the polarity > by reading the gpio value when probe. ... > + enum gpiod_flags flags = GPIOD_OUT_HIGH; > + > + /* request and turn on

[PATCH] drivers: fbtft: Refactor backlight logic

2022-02-13 Thread qianfanguijin
From: qianfan Zhao Control led gpios by using GPIO_ACTIVE flags, don't detect the polarity by reading the gpio value when probe. Signed-off-by: qianfan Zhao --- drivers/staging/fbtft/fbtft-core.c | 54 +- drivers/staging/fbtft/fbtft.h | 1 - 2 files changed, 3