diff options
author | Lionel Debroux <lionel_debroux@yahoo.fr> | 2010-11-16 16:14:02 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-11-16 16:14:02 +0300 |
commit | acc2472ed33fc5e72482cc3b3b846077d97c2f8b (patch) | |
tree | 081b0693cce25cc85f11b613d096de91bdfb824b /drivers/platform/x86/thinkpad_acpi.c | |
parent | 073ef1f6e508688392580e4f35dcad9aabd1e100 (diff) | |
download | linux-acc2472ed33fc5e72482cc3b3b846077d97c2f8b.tar.xz |
backlight: constify backlight_ops
backlight_device_register has been expecting a const "ops" argument, and using
it as such, since 9905a43b2d563e6f89e4c63c4278ada03f2ebb14. Let's make the
remaining backlight_ops instances const.
Inspired by hunks of the grsecurity patch, updated for newer kernels.
Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/platform/x86/thinkpad_acpi.c')
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 304333faf441..efda9c54e0e2 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -6109,7 +6109,7 @@ static void tpacpi_brightness_notify_change(void) BACKLIGHT_UPDATE_HOTKEY); } -static struct backlight_ops ibm_backlight_data = { +static const struct backlight_ops ibm_backlight_data = { .get_brightness = brightness_get, .update_status = brightness_update_status, }; |