reset: socfpga: Make reset_control_ops const
authorPhilipp Zabel <p.zabel@pengutronix.de>
Sun, 17 Jan 2016 14:13:41 +0000 (15:13 +0100)
committerPhilipp 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

index b7d773d9248cdc5456ef587b85f4a91e42c4659a..cd05a7032b17ea5b4bcd20680ccc5dc4bc172d47 100644 (file)
@@ -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,