regulator: slg51000: Remove unneeded regl_pdata from struct slg51000
authorAxel Lin <axel.lin@ingics.com>
Fri, 24 May 2019 10:02:47 +0000 (18:02 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 24 May 2019 12:04:49 +0000 (13:04 +0100)
commit12c574d84c8e492320a4e75b2c1157f8b61e4092
tree8a422a888d3f3640b9a1680b1ebcbff240b24d79
parent0a33d4feea748399c9341ff054c5f29c98393d35
regulator: slg51000: Remove unneeded regl_pdata from struct slg51000

Just use a local variable *ena_gpiod in slg51000_of_parse_cb instead.
With this change, the struct slg51000_pdata can be removed.

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