summaryrefslogtreecommitdiffstats
path: root/net/netrom
diff options
context:
space:
mode:
authorAzael Avalos <coproscefalo@gmail.com>2014-08-04 09:21:01 -0600
committerMatthew Garrett <matthew.garrett@nebula.com>2014-08-16 01:23:54 -0700
commitf6aac652290b31f120fc07c61331e9e0d4b4afb9 (patch)
tree32b430149d6da304e69ec9b1094f0e5f7ed4e783 /net/netrom
parentb58b9ffc95511fafcd12c6c7a45ec04e6dcf7d57 (diff)
downloadop-kernel-dev-f6aac652290b31f120fc07c61331e9e0d4b4afb9.zip
op-kernel-dev-f6aac652290b31f120fc07c61331e9e0d4b4afb9.tar.gz
toshiba_acpi: Add extra check to backlight code
Some Toshiba models (most notably Qosmios) come with an incomplete backlight method where the AML code doesn't check for write or read commands and always returns HCI_SUCCESS and the actual brightness (and in some cases the max brightness), thus allowing the backlight interface to be registered without write support. This patch changes the set_lcd_brightness function, checking the returned values for values greater than zero to avoid registering a broken backlight interface. Signed-off-by: Azael Avalos <coproscefalo@gmail.com> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud