diff options
author | Axel Lin <axel.lin@ingics.com> | 2021-06-16 11:44:57 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-16 15:41:18 +0100 |
commit | 31a89d297e196472875dc7d4a8f5dd0aaefcc0b4 (patch) | |
tree | bfe313801d5c29baf78c9ded8fe24d22fbe24386 /drivers/regulator | |
parent | 686f6b31bf6cea71ca941b6dbf9e1388d54222b6 (diff) |
regulator: sy7636a: Make regulator_desc static const
It's only used in this file and never changed, make it static const.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Alistair Francis <alistair@alistair23.me>
Link: https://lore.kernel.org/r/20210616034458.3499522-2-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/sy7636a-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/sy7636a-regulator.c b/drivers/regulator/sy7636a-regulator.c index 54ab1be1001e..c71c0a007d95 100644 --- a/drivers/regulator/sy7636a-regulator.c +++ b/drivers/regulator/sy7636a-regulator.c @@ -53,7 +53,7 @@ static const struct regulator_ops sy7636a_vcom_volt_ops = { .get_status = sy7636a_get_status, }; -struct regulator_desc desc = { +static const struct regulator_desc desc = { .name = "vcom", .id = 0, .ops = &sy7636a_vcom_volt_ops, @@ -61,7 +61,7 @@ struct regulator_desc desc = { .owner = THIS_MODULE, .enable_reg = SY7636A_REG_OPERATION_MODE_CRL, .enable_mask = SY7636A_OPERATION_MODE_CRL_ONOFF, - .poll_enabled_time = SY7636A_POLL_ENABLED_TIME, + .poll_enabled_time = SY7636A_POLL_ENABLED_TIME, .regulators_node = of_match_ptr("regulators"), .of_match = of_match_ptr("vcom"), }; |