[PATCH 3/3] Add support for the generic backlight device to the TOSHIBA ACPI driver

2006-10-13 Thread Holger Macht
Add support for the generic backlight interface below /sys/class/backlight. The patch keeps the procfs brightness handling for backward compatibility. For this to archive, the patch adds two generic functions get_lcd and set_lcd to be used both by the procfs related and the sysfs related

Re: [PATCH 3/3] Add support for the generic backlight device to the TOSHIBA ACPI driver

2006-10-13 Thread Andrew Morton
On Fri, 13 Oct 2006 12:24:19 +0200 Holger Macht [EMAIL PROTECTED] wrote: +static int set_lcd(int value) +{ + u32 hci_result; + + value = value HCI_LCD_BRIGHTNESS_SHIFT; + hci_write1(HCI_LCD_BRIGHTNESS, value, hci_result); + if (hci_result != HCI_SUCCESS) +