Platform: OLPC: Constify static struct regulator_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 6 Feb 2021 23:21:52 +0000 (00:21 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 8 Feb 2021 15:59:21 +0000 (16:59 +0100)
commit0f1f7f22f384f34b2f0800a3734aa0fc83eafff2
tree577f147750642ccd40b243b0aea3ce8e685e0508
parentbd69bcce4aa089435e2891222236b1cb20395bec
Platform: OLPC: Constify static struct regulator_ops

The only usage of it is to assign its address to the ops field in the
regulator_desc struct, which is a pointer to const struct regulator_ops.
Make it const to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210206232152.58046-1-rikard.falkeborn@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/olpc/olpc-ec.c