MIPS: ralink: Make reset_control_ops const
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 25 Feb 2016 09:45:47 +0000 (10:45 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:01:43 +0000 (14:01 +0200)
The reset_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: John Crispin <john@phrozen.org>
Cc: linux-mips@linux-mips.org
Cc: kernel@pengutronix.de
Patchwork: https://patchwork.linux-mips.org/patch/12618/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ralink/reset.c

index ee117c4..09ccdd1 100644 (file)
@@ -61,7 +61,7 @@ static int ralink_reset_device(struct reset_controller_dev *rcdev,
        return ralink_deassert_device(rcdev, id);
 }
 
-static struct reset_control_ops reset_ops = {
+static const struct reset_control_ops reset_ops = {
        .reset = ralink_reset_device,
        .assert = ralink_assert_device,
        .deassert = ralink_deassert_device,