* [PATCH] reset: ath79: Make reset_control_ops const
@ 2016-02-08 13:28 Philipp Zabel
2016-02-09 22:48 ` Alban
0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2016-02-08 13:28 UTC (permalink / raw)
To: linux-kernel; +Cc: Alban Bedel, Philipp Zabel
The ath79_reset_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
drivers/reset/reset-ath79.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/reset/reset-ath79.c b/drivers/reset/reset-ath79.c
index 692fc89..ccb940a 100644
--- a/drivers/reset/reset-ath79.c
+++ b/drivers/reset/reset-ath79.c
@@ -70,7 +70,7 @@ static int ath79_reset_status(struct reset_controller_dev *rcdev,
return !!(val & BIT(id));
}
-static struct reset_control_ops ath79_reset_ops = {
+static const struct reset_control_ops ath79_reset_ops = {
.assert = ath79_reset_assert,
.deassert = ath79_reset_deassert,
.status = ath79_reset_status,
--
2.7.0.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] reset: ath79: Make reset_control_ops const
2016-02-08 13:28 [PATCH] reset: ath79: Make reset_control_ops const Philipp Zabel
@ 2016-02-09 22:48 ` Alban
0 siblings, 0 replies; 2+ messages in thread
From: Alban @ 2016-02-09 22:48 UTC (permalink / raw)
To: Philipp Zabel; +Cc: Aban Bedel, linux-kernel
On Mon, 8 Feb 2016 14:28:17 +0100
Philipp Zabel <p.zabel@pengutronix.de> wrote:
> The ath79_reset_ops structure is never modified. Make it const.
>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
> drivers/reset/reset-ath79.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/reset/reset-ath79.c b/drivers/reset/reset-ath79.c
> index 692fc89..ccb940a 100644
> --- a/drivers/reset/reset-ath79.c
> +++ b/drivers/reset/reset-ath79.c
> @@ -70,7 +70,7 @@ static int ath79_reset_status(struct reset_controller_dev *rcdev,
> return !!(val & BIT(id));
> }
>
> -static struct reset_control_ops ath79_reset_ops = {
> +static const struct reset_control_ops ath79_reset_ops = {
> .assert = ath79_reset_assert,
> .deassert = ath79_reset_deassert,
> .status = ath79_reset_status,
Acked-by: Alban Bedel <albeu@free.fr>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-09 22:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-08 13:28 [PATCH] reset: ath79: Make reset_control_ops const Philipp Zabel
2016-02-09 22:48 ` Alban
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.