]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: sc2731: Fix defines for SC2731_WR_UNLOCK and SC2731_PWR_WR_PROT_VALUE
authorAxel Lin <axel.lin@ingics.com>
Mon, 1 Jan 2018 12:38:50 +0000 (20:38 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 3 Jan 2018 12:10:14 +0000 (12:10 +0000)
commitfa32f7a3fedd800161ca529397da14faa6c47c67
tree748af901dfa1a62bc4d0814dc3c4f257411aae1d
parent433c9bb77b8131ef340148565996b3818fbf2f23
regulator: sc2731: Fix defines for SC2731_WR_UNLOCK and SC2731_PWR_WR_PROT_VALUE

The defines for SC2731_WR_UNLOCK and SC2731_PWR_WR_PROT_VALUE makes
regmap_write() call looks strange because it takes reg parameter fist
then val.
Base on Erick's suggestion to define SC2731_PWR_WR_PROT and
SC2731_WR_UNLOCK_VALUE instead.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Erick Chen <erick.chen@spreadtrum.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/sc2731-regulator.c