regulator: core: use dev_to_rdev
authorGeliang Tang <geliangtang@163.com>
Tue, 5 Jan 2016 14:07:55 +0000 (22:07 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 14:20:50 +0000 (14:20 +0000)
commit83080a140874b6860b5191b375cfdad267eaa107
treee7b5f2111d3a2989f4f3c9f7ac22b7740ebae1a0
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
regulator: core: use dev_to_rdev

Use dev_to_rdev() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c