platform/x86: ideapad-laptop: constify rfkill_ops structure
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 9 Jun 2017 06:08:18 +0000 (11:38 +0530)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 13 Jun 2017 18:00:20 +0000 (11:00 -0700)
Add const to rfkill_ops structure as it is only passed as an argument
to the functions rfkill_alloc. This argument is of type const,
so annotate the structure with const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/ideapad-laptop.c

index d4896256936436f9b80e0ea0d76942c061ceb35b..4bf93c0c7e36c70095c7daed2c10fb89cf5c9797 100644 (file)
@@ -512,7 +512,7 @@ static int ideapad_rfk_set(void *data, bool blocked)
        return write_ec_cmd(priv->priv->adev->handle, opcode, !blocked);
 }
 
-static struct rfkill_ops ideapad_rfk_ops = {
+static const struct rfkill_ops ideapad_rfk_ops = {
        .set_block = ideapad_rfk_set,
 };