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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 16:19:41 +0000 (09:19 -0700)
commit7bf87075b2ce9d35a99916b446622ba8825e7142
tree7b240a57b421b3ba6d065cf4732800565e0a80b8
parent75db8ad812878495309d3d0b40467e9b9b61b29a
ideapad: read brightness setting on brightness key notify

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>
drivers/platform/x86/ideapad-laptop.c