regulator: 88pm800: Use regulator_nodes/of_match in the descriptor
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Thu, 16 Jul 2015 18:16:56 +0000 (23:46 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2015 20:32:58 +0000 (21:32 +0100)
commitfa26e4d2b3cf1c84f20fbc003501bb028f682d92
treec203b4fd0cd4164d05dbb76e184459f12001b2a1
parenta07d94a54b93d94d8cb990ffe018c595cfb94662
regulator: 88pm800: Use regulator_nodes/of_match in the descriptor

This patch is add regulator_nodes/of_match in the regulator
descriptor for using information from DT instead of specific codes.

With this patch, driver gets simplified,

  - No need to maintain "struct of_regulator_match" table
    and call of_regulator_match() fn.
  - No need for pm800_regulator_dt_init() fn, as it was only
    used for of_regulator_match().
  - probe() fn got simplified around regulator_config and regulator_desc
    initialization.

Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/88pm800.c
This page took 0.855036 seconds and 5 git commands to generate.