backlight: constify backlight_ops
commit8921e442faa882eb360bbdcdfe88459a37d1677c
authorLionel Debroux <lionel_debroux@yahoo.fr>
Sat, 6 Aug 2011 02:58:07 +0000 (5 23:58 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 6 Aug 2011 02:58:07 +0000 (5 23:58 -0300)
tree37b3ea12394a37a5a2a7fdf270b032ba350fb743
parent3bc1be6a8cc19d26e79b4cfae9f5540e03e9835d
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>
drivers/platform/x86/thinkpad_acpi.c