commit | df33799c5c3262a69acd29b7a4eb9e7cbd1b007c | [log] [tgz] |
---|---|---|
author | Krzysztof Kozlowski <krzk@kernel.org> | Thu Jun 20 20:35:26 2019 +0200 |
committer | Mark Brown <broonie@kernel.org> | Mon Jun 24 17:26:36 2019 +0100 |
tree | 6e39ea697a8f974418b13a28f2b370ae05b03ab8 | |
parent | b01d18232587881ae813d4a1d14c8d9a2ac36b15 [diff] |
regulator: s2mps11: Reduce number of rdev_get_id() calls Store the regulator ID instead of calling rdev_get_id() every time. This makes code slightly easier to read as shorter 'rdev_id' variable is used instead of full call. This can also speed things up by reducing number of calls, although effect was not measured. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>