reset: img: Make reset_control_ops const
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 5 Feb 2016 15:49:34 +0000 (16:49 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 8 Feb 2016 16:03:40 +0000 (17:03 +0100)
The pistachio_reset_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: James Hartley <james.hartley@imgtec.com>
drivers/reset/reset-pistachio.c

index b31cdb0570fc26dd7661a7bcdf627cee82f851e5..72a97a15a4c8a5e77c88526217ac9d9341c0d32f 100644 (file)
@@ -97,7 +97,7 @@ static int pistachio_reset_deassert(struct reset_controller_dev *rcdev,
                                  mask, 0);
 }
 
-static struct reset_control_ops pistachio_reset_ops = {
+static const struct reset_control_ops pistachio_reset_ops = {
        .assert         = pistachio_reset_assert,
        .deassert       = pistachio_reset_deassert,
 };