regulator: mcp16502: Remove unneeded fields from struct mcp16502
authorAxel Lin <axel.lin@ingics.com>
Thu, 11 Apr 2019 01:59:22 +0000 (09:59 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 11 Apr 2019 11:17:16 +0000 (12:17 +0100)
commit4cf469539b635d2588df4f48bf721890f5f2ade5
treedf3212ddbb11b613229de05f341cb9bed0ee8328
parentab54a4d7b0dd5f36cb6c2da83894590bc8bda5a5
regulator: mcp16502: Remove unneeded fields from struct mcp16502

At the context with rdev, we can use rdev->regmap instead of mcp->rmap.
The *rdev[NUM_REGULATORS] is not required because current code uses
devm_regulator_register() so we don't need to store *rdev for clean up
paths.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mcp16502.c