Re: [PATCH 10/15] staging: fbtft: core: Introduce backlight_is_blank()

From
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date
2023-01-09 11:16:21
Also in
dri-devel, linux-arm-kernel, linux-omap, linux-staging, linuxppc-dev, lkml
Reply to
Sam Ravnborg via B4 Submission Endpoint, 2023-01-07
On Sat, Jan 07, 2023 at 07:26:24PM +0100, Sam Ravnborg via B4 Submission Endpoint wrote:
From: Sam Ravnborg <redacted>

Avoiding direct access to backlight_properties.props.

Access to the deprecated props.fb_blank replaced by backlight_is_blank().
Access to props.power is dropped - it was only used for debug.
...
quoted hunk ↗ jump to hunk
+	if (blank)
 		gpiod_set_value(par->gpio.led[0], !polarity);
+	else
+		gpiod_set_value(par->gpio.led[0], polarity);
	if (blank)
		polarity = !polarity;

	gpiod_set_value(par->gpio.led[0], polarity);

?

-- 
With Best Regards,
Andy Shevchenko

Thread (54 messages) 54 messages, 11 authors, last reply 2023-03-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help