MIPS: ralink: Make reset_control_ops const
authorPhilipp Zabel <[email protected]>
Thu, 25 Feb 2016 09:45:47 +0000 (10:45 +0100)
committerRalf Baechle <[email protected]>
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 <[email protected]>
Acked-by: John Crispin <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/12618/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/ralink/reset.c

index ee117c4bc4a36cc6f974c5efc89751300a535108..09ccdd1b8f4d9c5860f338d1e5fc1a1692ba668e 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,