x86/platform/intel-mid: Make 'bt_sfi_data' const
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 6 Aug 2017 17:15:20 +0000 (22:45 +0530)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Aug 2017 12:24:32 +0000 (14:24 +0200)
Make this structure const as it is only used during copy operation.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: julia.lawall@lip6.fr
Link: http://lkml.kernel.org/r/1502039720-4471-1-git-send-email-bhumirks@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/intel-mid/device_libs/platform_bt.c

index 5a0483e7bf662cb27044b7684567b644dfe49b81..dc036e511f48d3adc3261ca4d4214c1c6244dbe6 100644 (file)
@@ -60,7 +60,7 @@ static int __init tng_bt_sfi_setup(struct bt_sfi_data *ddata)
        return 0;
 }
 
-static struct bt_sfi_data tng_bt_sfi_data __initdata = {
+static const struct bt_sfi_data tng_bt_sfi_data __initdata = {
        .setup  = tng_bt_sfi_setup,
 };