ideapad: read brightness setting on brightness key notify
authorIke Panhc <ike.pan@canonical.com>
Wed, 23 Feb 2011 13:39:59 +0000 (21:39 +0800)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:04 +0000 (14:23 -0500)
commit7e190be2ce79ea34108a37caa37edee4933e730f
tree2efe2475cf1e56f8fa3c03c3bc8cbf95cea1c4de
parent7849283deed5462a9d497aeca9d6023e9b2b908d
ideapad: read brightness setting on brightness key notify

BugLink: http://bugs.launchpad.net/bugs/775809

commit 2165136585b5c7d6f118f1d90fbde550bb7de212 upstream.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=25922

On ideapad Y530, the brightness key notify will be blocked if the last notify
is not responsed by getting the brightness value. Read value when we get the
notify shall fix the problem and will not have any difference on other ideapads.

Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/platform/x86/ideapad-laptop.c