regulator: mpq7920: Remove unneeded fields from struct mpq7920_regulator_info
authorAxel Lin <axel.lin@ingics.com>
Tue, 14 Jan 2020 12:44:48 +0000 (20:44 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jan 2020 15:24:41 +0000 (15:24 +0000)
commit489d6954acabe71d22ba0033fe85822742364915
tree89b75348e4b0b6868f774e4f72d9b40f2d202cd4
parentf72c5835509109715a8d8f0d98fddef089b3a4d8
regulator: mpq7920: Remove unneeded fields from struct mpq7920_regulator_info

Both *dev and *rdev are only used in .probe, so use local variable instead.
Also remove mpq7920_regulator_register() because it is so trivial and
there is only one caller.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20200114124449.28408-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mpq7920.c