Re: [PATCH v1 03/22] backlight: Add get/set operations for brightness/power properties

2020-08-05 Thread daniel
On Tue, Aug 04, 2020 at 09:56:00PM +0200, Sam Ravnborg wrote: > Hi Daniel et al. > On Tue, Aug 04, 2020 at 06:43:30PM +0200, dan...@ffwll.ch wrote: > > On Sun, Aug 02, 2020 at 01:06:17PM +0200, Sam Ravnborg wrote: > > > Add get and set operations to incapsualte access to backlight properties. > > >

Re: [PATCH v1 03/22] backlight: Add get/set operations for brightness/power properties

2020-08-04 Thread Sam Ravnborg
Hi Daniel et al. On Tue, Aug 04, 2020 at 06:43:30PM +0200, dan...@ffwll.ch wrote: > On Sun, Aug 02, 2020 at 01:06:17PM +0200, Sam Ravnborg wrote: > > Add get and set operations to incapsualte access to backlight properties. > > > > One easy win is that the get/set operatiosn can be used when backl

Re: [PATCH v1 03/22] backlight: Add get/set operations for brightness/power properties

2020-08-04 Thread daniel
On Sun, Aug 02, 2020 at 01:06:17PM +0200, Sam Ravnborg wrote: > Add get and set operations to incapsualte access to backlight properties. > > One easy win is that the get/set operatiosn can be used when backlight > is not included in the configuration, resulting in simpler code with > less ifdef's

[PATCH v1 03/22] backlight: Add get/set operations for brightness/power properties

2020-08-02 Thread Sam Ravnborg
Add get and set operations to incapsualte access to backlight properties. One easy win is that the get/set operatiosn can be used when backlight is not included in the configuration, resulting in simpler code with less ifdef's and thus more readable code. The set/get methods hides some of the con