From: Seth Forshee Date: Thu, 19 Apr 2012 16:23:50 +0000 (-0500) Subject: toshiba_acpi: Only register backlight device when interface is read/write X-Git-Tag: v3.5-rc1~9^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62cce7526629e164513d3c67a06845953910f818;p=pandora-kernel.git toshiba_acpi: Only register backlight device when interface is read/write Currently the backlight device is registered unconditionally, but many (probably most) Toshibas either don't support HCI_LCD_BRIGHTNESS or only support reading from it. This patch adds a test of HCI_LCD_BRIGHTNESS during initialization and only registers the backlight device if this interface supports both reads and writes. Cc: Akio Idehara Signed-off-by: Seth Forshee Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed