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:
387eb3f
)
reset: zynq: Make reset_control_ops const
author
Philipp Zabel
<p.zabel@pengutronix.de>
Sun, 17 Jan 2016 14:14:52 +0000
(15:14 +0100)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Wed, 10 Feb 2016 09:53:37 +0000
(10:53 +0100)
The zynq_reset_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-zynq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/reset/reset-zynq.c
b/drivers/reset/reset-zynq.c
index c6b3cd8b40ad7b2214fa4cb5112d99facf960737..a7e87bc458859e45c679eda19b2a45816387dc24 100644
(file)
--- a/
drivers/reset/reset-zynq.c
+++ b/
drivers/reset/reset-zynq.c
@@
-86,7
+86,7
@@
static int zynq_reset_status(struct reset_controller_dev *rcdev,
return !!(reg & BIT(offset));
}
-static struct reset_control_ops zynq_reset_ops = {
+static
const
struct reset_control_ops zynq_reset_ops = {
.assert = zynq_reset_assert,
.deassert = zynq_reset_deassert,
.status = zynq_reset_status,