UPSTREAM: regulator: rk808: Use rdev_get_id() to access id of regulator
authorAxel Lin <axel.lin@ingics.com>
Fri, 21 Oct 2016 02:30:16 +0000 (10:30 +0800)
committerElaine Zhang <zhangqing@rock-chips.com>
Tue, 28 Feb 2017 01:56:57 +0000 (09:56 +0800)
commit698b73c4dcfe4525b6dd4250d94353aa71bc0eb9
tree95cba1808629dd20792c659bbafc4096a987d7d5
parent75fb3e9e149fd970a384a1dc20e8ea9438b1e6e4
UPSTREAM: regulator: rk808: Use rdev_get_id() to access id of regulator

RK808_ID_DCDC1 is 0, no need to do subtract RK808_ID_DCDC1.

Change-Id: I395c30866aeb5c4c285dd083109a70bfef24bfca
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit bf8e27621effb49da525fb92a1f192db685d39bd)
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drivers/regulator/rk808-regulator.c