reset: hisilicon: hi3660: Make reset_control_ops const
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 12 May 2017 12:24:50 +0000 (14:24 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 22 Oct 2019 11:55:32 +0000 (13:55 +0200)
The hi3660_reset_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/hisilicon/reset-hi3660.c

index f690b18..a7d4445 100644 (file)
@@ -56,7 +56,7 @@ static int hi3660_reset_dev(struct reset_controller_dev *rcdev,
        return hi3660_reset_deassert(rcdev, idx);
 }
 
-static struct reset_control_ops hi3660_reset_ops = {
+static const struct reset_control_ops hi3660_reset_ops = {
        .reset    = hi3660_reset_dev,
        .assert   = hi3660_reset_assert,
        .deassert = hi3660_reset_deassert,