projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0cc260
)
reset: sunxi: Make reset_control_ops const
author
Philipp Zabel
<p.zabel@pengutronix.de>
Sun, 17 Jan 2016 14:14:32 +0000
(15:14 +0100)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Mon, 8 Feb 2016 16:03:48 +0000
(17:03 +0100)
The sunxi_reset_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/reset/reset-sunxi.c
patch
|
blob
|
history
diff --git
a/drivers/reset/reset-sunxi.c
b/drivers/reset/reset-sunxi.c
index 8d41a18da17f63cd853ab2376b422ffc5227f5e3..677f86555212556909bd71f33986c78ef9e7c6f9 100644
(file)
--- a/
drivers/reset/reset-sunxi.c
+++ b/
drivers/reset/reset-sunxi.c
@@
-70,7
+70,7
@@
static int sunxi_reset_deassert(struct reset_controller_dev *rcdev,
return 0;
}
-static struct reset_control_ops sunxi_reset_ops = {
+static
const
struct reset_control_ops sunxi_reset_ops = {
.assert = sunxi_reset_assert,
.deassert = sunxi_reset_deassert,
};