diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-01-12 12:30:13 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-14 11:46:05 +0000 |
commit | 638aef7a776a1a78247dbfd387481716bd40bf82 (patch) | |
tree | d0f07f9cd079a2a07ee21142fb6df00be78cc673 /drivers/regulator/max14577-regulator.c | |
parent | 08f0b14adc7c4fd5ef7ab2f4b7a62ed1b8216bbb (diff) |
regulator: pwm: No need to make a copy of regulator_ops per instance
Having instance specific copy of desc is enough to support multiple
instance of pwm regulator.
The regulator_ops is never changed so no need to copy it per instance, make
pwm_regulator_voltage_table_ops and pwm_regulator_voltage_continuous_ops
const to ensure they won't be changed.
The pwm_regulator_desc is a template to be copied so also make it const.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/max14577-regulator.c')
0 files changed, 0 insertions, 0 deletions