msi-laptop: make struct rfkill_ops const
Subsystems (3)
PATCH 15/26 msi-laptop: make struct rfkill_ops const
From: Axel Lin <[email protected]>
rfkill uses a const struct rfkill_ops pointer.
Signed-off-by Axel Lin <[email protected]>
Cc Matthew Garrett <[email protected]>
Cc Lennart Poettering <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/platform/x86/msi-laptop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/platform/x86/msi-laptop.c renamed from drivers/platform/x86/msi-laptop.c~msi-laptop-make-struct-rfkill_ops-const +3 -3
@@ -562,15 +562,15 @@ static int rfkill_threeg_set(void *data,return 0 ; } -static struct rfkill_ops rfkill_bluetooth_ops = { +static const struct rfkill_ops rfkill_bluetooth_ops = { .set_block = rfkill_bluetooth_set }; -static struct rfkill_ops rfkill_wlan_ops = { +static const struct rfkill_ops rfkill_wlan_ops = { .set_block = rfkill_wlan_set }; -static struct rfkill_ops rfkill_threeg_ops = { +static const struct rfkill_ops rfkill_threeg_ops = { .set_block = rfkill_threeg_set };
_