From: Bhumika Goyal Date: Fri, 9 Jun 2017 05:57:40 +0000 (+0530) Subject: platform/x86: dell-rbtn: constify rfkill_ops structures X-Git-Tag: v4.13-rc1~135^2~21 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a63693a0e617636bd786c7d6bd114b37435e14ef;p=karo-tx-linux.git platform/x86: dell-rbtn: 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: Bhumika Goyal Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/dell-rbtn.c b/drivers/platform/x86/dell-rbtn.c index f5c53ea87158..f3afe778001e 100644 --- a/drivers/platform/x86/dell-rbtn.c +++ b/drivers/platform/x86/dell-rbtn.c @@ -110,7 +110,7 @@ static int rbtn_rfkill_set_block(void *data, bool blocked) return -EINVAL; } -static struct rfkill_ops rbtn_ops = { +static const struct rfkill_ops rbtn_ops = { .query = rbtn_rfkill_query, .set_block = rbtn_rfkill_set_block, };