diff options
author | Matthew Garrett <matthew.garrett@nebula.com> | 2014-04-04 20:22:34 +0200 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2014-04-06 18:58:14 +0200 |
commit | ea6b31f4946ddc527ec4eff7436727c18765d566 (patch) | |
tree | 555d03c6b9ac2343412c82a769678b8ab807f303 /drivers/platform | |
parent | toshiba_acpi: Update version and copyright info (diff) | |
download | linux-ea6b31f4946ddc527ec4eff7436727c18765d566.tar.xz linux-ea6b31f4946ddc527ec4eff7436727c18765d566.zip |
toshiba_acpi: Fix whitespace
Tidy up whitespace introduced by the previous patchset
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index c08c12f4c182..46473ca7566b 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -78,7 +78,7 @@ MODULE_LICENSE("GPL"); * However the ACPI methods seem to be incomplete in some areas (for * example they allow setting, but not reading, the LCD brightness value), * so this is still useful. - * + * * SCI stands for "System Configuration Interface" which aim is to * conceal differences in hardware between different models. */ @@ -456,7 +456,7 @@ static enum led_brightness toshiba_illumination_get(struct led_classdev *cdev) return state ? LED_FULL : LED_OFF; } - + /* KBD Illumination */ static int toshiba_kbd_illum_status_set(struct toshiba_acpi_dev *dev, u32 time) { @@ -539,7 +539,7 @@ static void toshiba_kbd_backlight_set(struct led_classdev *cdev, return; } } - + /* TouchPad support */ static int toshiba_touchpad_set(struct toshiba_acpi_dev *dev, u32 state) { @@ -631,7 +631,7 @@ static void toshiba_eco_mode_set_status(struct led_classdev *cdev, return; } } - + /* Accelerometer support */ static int toshiba_accelerometer_supported(struct toshiba_acpi_dev *dev) { @@ -1200,7 +1200,7 @@ static const struct backlight_ops toshiba_backlight_data = { .get_brightness = get_lcd_brightness, .update_status = set_lcd_status, }; - + /* * Sysfs files */ @@ -1280,7 +1280,7 @@ static ssize_t toshiba_kbd_bl_timeout_show(struct device *dev, return sprintf(buf, "%i\n", time >> HCI_MISC_SHIFT); } - + static ssize_t toshiba_touchpad_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) @@ -1310,7 +1310,7 @@ static ssize_t toshiba_touchpad_show(struct device *dev, return sprintf(buf, "%i\n", state); } - + static ssize_t toshiba_position_show(struct device *dev, struct device_attribute *attr, char *buf) { @@ -1573,7 +1573,7 @@ static int toshiba_acpi_remove(struct acpi_device *acpi_dev) struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev); remove_toshiba_proc_entries(dev); - + if (dev->sysfs_created) sysfs_remove_group(&dev->acpi_dev->dev.kobj, &toshiba_attr_group); @@ -1598,10 +1598,10 @@ static int toshiba_acpi_remove(struct acpi_device *acpi_dev) if (dev->illumination_supported) led_classdev_unregister(&dev->led_dev); - + if (dev->kbd_led_registered) led_classdev_unregister(&dev->kbd_led); - + if (dev->eco_supported) led_classdev_unregister(&dev->eco_led); @@ -1690,7 +1690,7 @@ static int toshiba_acpi_add(struct acpi_device *acpi_dev) if (!led_classdev_register(&acpi_dev->dev, &dev->led_dev)) dev->illumination_supported = 1; } - + if (toshiba_eco_mode_available(dev)) { dev->eco_led.name = "toshiba::eco_mode"; dev->eco_led.max_brightness = 1; @@ -1699,7 +1699,7 @@ static int toshiba_acpi_add(struct acpi_device *acpi_dev) if (!led_classdev_register(&dev->acpi_dev->dev, &dev->eco_led)) dev->eco_supported = 1; } - + ret = toshiba_kbd_illum_status_get(dev, &dummy); if (!ret) { dev->kbd_time = dummy >> HCI_MISC_SHIFT; @@ -1718,10 +1718,10 @@ static int toshiba_acpi_add(struct acpi_device *acpi_dev) if (!led_classdev_register(&dev->acpi_dev->dev, &dev->kbd_led)) dev->kbd_led_registered = 1; } - + ret = toshiba_touchpad_get(dev, &dummy); dev->touchpad_supported = !ret; - + ret = toshiba_accelerometer_supported(dev); dev->accelerometer_supported = !ret; |