提交 f83e7d81 编写于 作者: J Julia Lawall 提交者: Lee Jones

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 505b9e57
...@@ -60,7 +60,7 @@ struct da903x_chip_ops { ...@@ -60,7 +60,7 @@ struct da903x_chip_ops {
struct da903x_chip { struct da903x_chip {
struct i2c_client *client; struct i2c_client *client;
struct device *dev; struct device *dev;
struct da903x_chip_ops *ops; const struct da903x_chip_ops *ops;
int type; int type;
uint32_t events_mask; uint32_t events_mask;
...@@ -424,7 +424,7 @@ static irqreturn_t da903x_irq_handler(int irq, void *data) ...@@ -424,7 +424,7 @@ static irqreturn_t da903x_irq_handler(int irq, void *data)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static struct da903x_chip_ops da903x_ops[] = { static const struct da903x_chip_ops da903x_ops[] = {
[0] = { [0] = {
.init_chip = da9030_init_chip, .init_chip = da9030_init_chip,
.unmask_events = da9030_unmask_events, .unmask_events = da9030_unmask_events,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册