summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/da903x.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-13 17:03:51 +0100
committerLee Jones <lee.jones@linaro.org>2015-12-04 09:46:03 +0100
commitf83e7d814084d9e982a8e24311a402e811d0ee90 (patch)
tree832f438044d1d3eeefce49aa780dc335b01b5387 /drivers/mfd/da903x.c
parentmfd: mc13xxx-core: Use of_property_read_bool() (diff)
downloadlinux-f83e7d814084d9e982a8e24311a402e811d0ee90.tar.xz
linux-f83e7d814084d9e982a8e24311a402e811d0ee90.zip
mfd: da903x: Constify da903x_chip_ops structure
The da903x_chip_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/da903x.c')
-rw-r--r--drivers/mfd/da903x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/da903x.c b/drivers/mfd/da903x.c
index 37e4426ef061..f6a045900b16 100644
--- a/drivers/mfd/da903x.c
+++ b/drivers/mfd/da903x.c
@@ -60,7 +60,7 @@ struct da903x_chip_ops {
struct da903x_chip {
struct i2c_client *client;
struct device *dev;
- struct da903x_chip_ops *ops;
+ const struct da903x_chip_ops *ops;
int type;
uint32_t events_mask;
@@ -424,7 +424,7 @@ static irqreturn_t da903x_irq_handler(int irq, void *data)
return IRQ_HANDLED;
}
-static struct da903x_chip_ops da903x_ops[] = {
+static const struct da903x_chip_ops da903x_ops[] = {
[0] = {
.init_chip = da9030_init_chip,
.unmask_events = da9030_unmask_events,