projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01501d5
)
reset: lpc18xx: Make reset_control_ops const
author
Philipp Zabel
<p.zabel@pengutronix.de>
Sun, 17 Jan 2016 14:13:20 +0000
(15:13 +0100)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Mon, 8 Feb 2016 16:19:57 +0000
(17:19 +0100)
The lpc18xx_rgu_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Joachim Eastwood <manabian@gmail.com>
drivers/reset/reset-lpc18xx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/reset/reset-lpc18xx.c
b/drivers/reset/reset-lpc18xx.c
index 70922e9ac27fa85991fd23deec7d467b71741522..3b8a4f5a1ff658837e57a5c67cc45d79a488cd7a 100644
(file)
--- a/
drivers/reset/reset-lpc18xx.c
+++ b/
drivers/reset/reset-lpc18xx.c
@@
-136,7
+136,7
@@
static int lpc18xx_rgu_status(struct reset_controller_dev *rcdev,
return !(readl(rc->base + offset) & bit);
}
-static struct reset_control_ops lpc18xx_rgu_ops = {
+static
const
struct reset_control_ops lpc18xx_rgu_ops = {
.reset = lpc18xx_rgu_reset,
.assert = lpc18xx_rgu_assert,
.deassert = lpc18xx_rgu_deassert,