This commit fixes the "Missing a blank line after declarations" checkpatch warning. Signed-off-by: Konrad Zapalowicz <bergo.torino@xxxxxxxxx> --- drivers/platform/x86/thinkpad_acpi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 33fa7fc..f846d79 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -571,6 +571,7 @@ static int acpi_evalf(acpi_handle handle, va_start(ap, fmt); while (*fmt) { char c = *(fmt++); + switch (c) { case 'd': /* int */ in_objs[params.count].integer.value = va_arg(ap, int); @@ -696,6 +697,7 @@ static acpi_status __init tpacpi_acpi_handle_locate_callback(acpi_handle handle, u32 level, void *context, void **return_value) { struct acpi_device *dev; + if (!strcmp(context, "video")) { if (acpi_bus_get_device(handle, &dev)) return AE_OK; @@ -2839,6 +2841,7 @@ static ssize_t hotkey_radio_sw_show(struct device *dev, char *buf) { int res; + res = hotkey_get_wlsw(); if (res < 0) return res; @@ -2866,6 +2869,7 @@ static ssize_t hotkey_tablet_mode_show(struct device *dev, char *buf) { int res, s; + res = hotkey_get_tablet_mode(&s); if (res < 0) return res; @@ -5490,6 +5494,7 @@ static int led_read(struct seq_file *m) if (led_supported == TPACPI_LED_570) { /* 570 */ int i, status; + for (i = 0; i < 8; i++) { status = led_get_status(i); if (status < 0) @@ -6423,6 +6428,7 @@ static int __init brightness_init(struct ibm_init_struct *iibm) &props); if (IS_ERR(ibm_backlight_device)) { int rc = PTR_ERR(ibm_backlight_device); + ibm_backlight_device = NULL; pr_err("Could not register backlight device\n"); return rc; @@ -8564,6 +8570,7 @@ static int mute_led_init(struct ibm_init_struct *iibm) for (i = 0; i < TPACPI_LED_MAX; i++) { struct tp_led_table *t = &led_tables[i]; + if (ACPI_SUCCESS(acpi_get_handle(hkey_handle, t->name, &temp))) mute_led_on_off(t, false); else @@ -8586,6 +8593,7 @@ static void mute_led_resume(void) for (i = 0; i < TPACPI_LED_MAX; i++) { struct tp_led_table *t = &led_tables[i]; + if (t->state >= 0) mute_led_on_off(t, t->state); } -- 1.8.1.2 ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel