forked from luck/tmp_suning_uos_patched
ACPI: ibm-acpi: trivial Lindent cleanups
This patch just makes drives/acpi/ibm-acpi.c Lindent-clean, as requested by Len Brown. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
This commit is contained in:
parent
3dfd35cd21
commit
8d29726434
@ -584,8 +584,7 @@ static int wan_status(void)
|
|||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
if (!wan_supported ||
|
if (!wan_supported || !acpi_evalf(hkey_handle, &status, "GWAN", "d"))
|
||||||
!acpi_evalf(hkey_handle, &status, "GWAN", "d"))
|
|
||||||
status = 0;
|
status = 0;
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
@ -910,6 +909,7 @@ static int _sta(acpi_handle handle)
|
|||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ACPI_IBM_DOCK
|
#ifdef CONFIG_ACPI_IBM_DOCK
|
||||||
#define dock_docked() (_sta(dock_handle) & 1)
|
#define dock_docked() (_sta(dock_handle) & 1)
|
||||||
|
|
||||||
@ -1386,12 +1386,12 @@ static int brightness_offset = 0x31;
|
|||||||
|
|
||||||
static int brightness_get(struct backlight_device *bd)
|
static int brightness_get(struct backlight_device *bd)
|
||||||
{
|
{
|
||||||
u8 level;
|
u8 level;
|
||||||
if (!acpi_ec_read(brightness_offset, &level))
|
if (!acpi_ec_read(brightness_offset, &level))
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
level &= 0x7;
|
level &= 0x7;
|
||||||
return level;
|
return level;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int brightness_read(char *p)
|
static int brightness_read(char *p)
|
||||||
@ -1993,10 +1993,10 @@ IBM_PARAM(volume);
|
|||||||
IBM_PARAM(fan);
|
IBM_PARAM(fan);
|
||||||
|
|
||||||
static struct backlight_properties ibm_backlight_data = {
|
static struct backlight_properties ibm_backlight_data = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.get_brightness = brightness_get,
|
.get_brightness = brightness_get,
|
||||||
.update_status = brightness_update_status,
|
.update_status = brightness_update_status,
|
||||||
.max_brightness = 7,
|
.max_brightness = 7,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void acpi_ibm_exit(void)
|
static void acpi_ibm_exit(void)
|
||||||
@ -2075,7 +2075,7 @@ static int __init acpi_ibm_init(void)
|
|||||||
|
|
||||||
ibm_backlight_device = backlight_device_register("ibm", NULL,
|
ibm_backlight_device = backlight_device_register("ibm", NULL,
|
||||||
&ibm_backlight_data);
|
&ibm_backlight_data);
|
||||||
if (IS_ERR(ibm_backlight_device)) {
|
if (IS_ERR(ibm_backlight_device)) {
|
||||||
printk(IBM_ERR "Could not register ibm backlight device\n");
|
printk(IBM_ERR "Could not register ibm backlight device\n");
|
||||||
ibm_backlight_device = NULL;
|
ibm_backlight_device = NULL;
|
||||||
acpi_ibm_exit();
|
acpi_ibm_exit();
|
||||||
|
Loading…
Reference in New Issue
Block a user