Re: [PATCH RESEND] fujitsu-laptop: Drop unneeded include

2014-03-20 Thread Jean Delvare
Hi Rafael, Le Wednesday 19 March 2014 à 23:33 +0100, Rafael J. Wysocki a écrit : On Wednesday, March 19, 2014 07:38:46 PM Jean Delvare wrote: The fujitsu-laptop driver includes linux/video_output.h but doesn't call any of its functions. Drop the unneeded include to avoid unnecessary driver

[PATCH 1/2] input/serio: Add a firmware_id sysfs attribute

2014-03-20 Thread Hans de Goede
serio devices exposed via platform firmware interfaces such as ACPI may provide additional identifying information of use to userspace. We don't associate the serio devices with the firmware device (we don't set it as parent), so there's no way for userspace to make use of this information. We

[PATCH 2/2] input/serio/8042: Add firmware_id support

2014-03-20 Thread Hans de Goede
Fill in the new serio firmware_id sysfs attribute for pnp instantiated 8042 serio ports. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/input/serio/i8042-x86ia64io.h | 26 ++ drivers/input/serio/i8042.c | 6 ++ 2 files changed, 32

[PATCH 0/2] input/serio: Add a firmware_id sysfs attribute

2014-03-20 Thread Hans de Goede
Hi All, For firmware instantiated serio devices, such as devices instantiated through ACPI, it may be useful for userspace to know the firmware-id (pnp-id in case of ACPI) through which the device was instantiated. One concrete example of this is the new ps/2 touchpads found in Lenovo Thinkpad

Re: [PATCH 0/2] input/serio: Add a firmware_id sysfs attribute

2014-03-20 Thread Matthew Garrett
On Thu, Mar 20, 2014 at 11:12:08AM +0100, Hans de Goede wrote: Which in the end turns out to be much nicer too, since it gets rid of needing a udev-helper too. After this much too long introduction I'll let the patches speak for themselves. Yeah, I was coming to the conclusion that this was

[PATCH 07/11] sony-laptop: adjust keyboard backlight values for off/auto/on

2014-03-20 Thread Mattia Dongili
From: Javier Achirica jachir...@gmail.com Keyboard backlight can be always off, use some automatic trigger (activity and light sensor), always on. The behaviour of the driver changes whereby previously when passed 1 it tried to turn on backlight immediately now it does nothing. This is however a

[PATCH 01/11] sony-laptop: add support as Fn+1 as a hot key

2014-03-20 Thread Mattia Dongili
From: Javier Achirica jachir...@gmail.com Signed-off-by: Javier Achirica jachir...@gmail.com Signed-off-by: Mattia Dongili malat...@linux.it --- drivers/platform/x86/sony-laptop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/x86/sony-laptop.c

[PATCH 05/11] sony-laptop: add fan speed regulation function

2014-03-20 Thread Mattia Dongili
From: Javier Achirica jachir...@gmail.com Rework error exit logic by Mattia Dongili. Signed-off-by: Javier Achirica jachir...@gmail.com Signed-off-by: Mattia Dongili malat...@linux.it --- drivers/platform/x86/sony-laptop.c | 119 + 1 file changed, 119

[PATCH 09/11] backlight: introduce inter-driver notification of changes

2014-03-20 Thread Mattia Dongili
Allow registered backlight drivers to receive a notification when a backlight change is triggered via one of the siblings. sony-laptop needs this notification to be able to set backlight when ALS is enabled and setting brightness via _BCM becomes a no-op and only notifies SNC that a change to the

[PATCH 10/11] sony-laptop: als support

2014-03-20 Thread Mattia Dongili
From: Javier Achirica jachir...@gmail.com vaios come with two different type of ACPI based ALS controls. The oldest incarnation exposes and requires a much lower level control over the ALS device (tsl256x) and raw data, the most recent one is much simpler and only allows fetching lux readings.

[PATCH 02/11] sony-laptop: Add support for lid resume settings on Vaio Pro

2014-03-20 Thread Mattia Dongili
From: Javier Achirica jachir...@gmail.com Vaio Pro uses a different handle and doesn't support all the options as other models (only S5 setting v/s S3/4/5). Minor code rework to generalize functions by Mattia Dongili. Signed-off-by: Javier Achirica jachir...@gmail.com Signed-off-by: Mattia

[PATCH 06/11] sony-laptop: add hibernate on low battery function

2014-03-20 Thread Mattia Dongili
From: Javier Achirica jachir...@gmail.com Signed-off-by: Javier Achirica jachir...@gmail.com Signed-off-by: Mattia Dongili malat...@linux.it --- drivers/platform/x86/sony-laptop.c | 78 ++ 1 file changed, 78 insertions(+) diff --git