Re: [PATCH] leds: Allow drivers to update the core, and generate events on changes

2016-12-27 Thread Jacek Anaszewski
Hi Gabriele, Pavel, On 12/27/2016 09:07 PM, Pavel Machek wrote: > Hi! > >> Similarily to commit 325253a6b2de ("backlight: Allow drivers to update >> the core, and generate events on changes"), inform userspace about >> brightness changes and allow drivers to request updates of the >> brightness v

Re: [PATCH] leds: Allow drivers to update the core, and generate events on changes

2016-12-27 Thread Pavel Machek
Hi! > > Generating uevent for /sys changes does not make much sense, right? > > I planned to use this patch mostly for keyboard backlights, for > which some DEs provide a UI similar to the one for screen backlights. > Having uevents also for /sys changes means having the UI always in > sync with

Re: [PATCH] leds: Allow drivers to update the core, and generate events on changes

2016-12-27 Thread Gabriele Mazzotta
On 27/12/2016 21:07, Pavel Machek wrote: > Hi! > >> Similarily to commit 325253a6b2de ("backlight: Allow drivers to update >> the core, and generate events on changes"), inform userspace about >> brightness changes and allow drivers to request updates of the >> brightness value. > > First... we h

Re: [PATCH] leds: Allow drivers to update the core, and generate events on changes

2016-12-27 Thread Pavel Machek
Hi! > Similarily to commit 325253a6b2de ("backlight: Allow drivers to update > the core, and generate events on changes"), inform userspace about > brightness changes and allow drivers to request updates of the > brightness value. First... we had similar patch in tree, and it caused problems, we

[PATCH] leds: Allow drivers to update the core, and generate events on changes

2016-12-27 Thread Gabriele Mazzotta
Similarily to commit 325253a6b2de ("backlight: Allow drivers to update the core, and generate events on changes"), inform userspace about brightness changes and allow drivers to request updates of the brightness value. Signed-off-by: Gabriele Mazzotta --- This is exactly like 325253a6b2de, but fo