regulator: axp20x: Use rdev_get_id at appropriate places
authorAxel Lin <axel.lin@ingics.com>
Tue, 19 Mar 2019 03:36:08 +0000 (11:36 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 19 Mar 2019 11:54:58 +0000 (11:54 +0000)
commit04d1446bce279ee6e4c39b3bf705bef3abba008e
treeaaec8d0eea93c0bd73c50374b9ee39405cdfb502
parent969697de7fa6eee12fbe216f9603708932a78c0d
regulator: axp20x: Use rdev_get_id at appropriate places

Use rdev_get_id() to simplify the code a bit.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c