mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 00:29:50 +00:00
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>
This commit is contained in:
parent
3d59dfcd1f
commit
a63693a0e6
@ -110,7 +110,7 @@ static int rbtn_rfkill_set_block(void *data, bool blocked)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct rfkill_ops rbtn_ops = {
|
static const struct rfkill_ops rbtn_ops = {
|
||||||
.query = rbtn_rfkill_query,
|
.query = rbtn_rfkill_query,
|
||||||
.set_block = rbtn_rfkill_set_block,
|
.set_block = rbtn_rfkill_set_block,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user