summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-06-09 11:27:40 +0530
committerDarren Hart (VMware) <dvhart@infradead.org>2017-06-13 11:00:21 -0700
commita63693a0e617636bd786c7d6bd114b37435e14ef (patch)
tree18343cb5d4c0bab684d275cf8ea8366637ebbe89 /drivers/platform
parent3d59dfcd1f2610d26da2cf19646ace6692c521dc (diff)
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 <bhumirks@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/dell-rbtn.c2
1 files changed, 1 insertions, 1 deletions
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,
};