Commit 8314a1c8 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Darren Hart (VMware)

platform/x86: samsung-laptop: constify rfkill_ops structures

Add const to rfkill_ops structures that are only passed as an argument
to the functions rfkill_alloc or samsung_new_rfkill. These arguments are
of type const, so such structures can be annotated with const.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 2c9c5664
...@@ -591,7 +591,7 @@ static int seclinux_rfkill_set(void *data, bool blocked) ...@@ -591,7 +591,7 @@ static int seclinux_rfkill_set(void *data, bool blocked)
!blocked); !blocked);
} }
static struct rfkill_ops seclinux_rfkill_ops = { static const struct rfkill_ops seclinux_rfkill_ops = {
.set_block = seclinux_rfkill_set, .set_block = seclinux_rfkill_set,
}; };
...@@ -651,7 +651,7 @@ static void swsmi_rfkill_query(struct rfkill *rfkill, void *priv) ...@@ -651,7 +651,7 @@ static void swsmi_rfkill_query(struct rfkill *rfkill, void *priv)
rfkill_set_sw_state(rfkill, !ret); rfkill_set_sw_state(rfkill, !ret);
} }
static struct rfkill_ops swsmi_rfkill_ops = { static const struct rfkill_ops swsmi_rfkill_ops = {
.set_block = swsmi_rfkill_set, .set_block = swsmi_rfkill_set,
.query = swsmi_rfkill_query, .query = swsmi_rfkill_query,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment