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:
0e18e60
)
reset: socfpga: Make reset_control_ops const
author
Philipp Zabel
<p.zabel@pengutronix.de>
Sun, 17 Jan 2016 14:13:41 +0000
(15:13 +0100)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Wed, 10 Feb 2016 09:53:36 +0000
(10:53 +0100)
The socfpga_reset_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-socfpga.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/reset/reset-socfpga.c
b/drivers/reset/reset-socfpga.c
index b7d773d9248cdc5456ef587b85f4a91e42c4659a..cd05a7032b17ea5b4bcd20680ccc5dc4bc172d47 100644
(file)
--- a/
drivers/reset/reset-socfpga.c
+++ b/
drivers/reset/reset-socfpga.c
@@
-90,7
+90,7
@@
static int socfpga_reset_status(struct reset_controller_dev *rcdev,
return !(reg & BIT(offset));
}
-static struct reset_control_ops socfpga_reset_ops = {
+static
const
struct reset_control_ops socfpga_reset_ops = {
.assert = socfpga_reset_assert,
.deassert = socfpga_reset_deassert,
.status = socfpga_reset_status,