regulator: qcom_pm8008-regulator: correct chip-en chip variable type

Change the struct type of the "chip" variable in the chip-en
regulator callbacks from "struct pm8008_regulator *" to the
correct type: "struct pm8008_chip *".

Change-Id: I3f93ec629e791e4bc8da24222c005d681d168f82
Signed-off-by: David Collins <collinsd@codeaurora.org>
This commit is contained in:
David Collins 2020-01-23 17:07:44 -08:00
commit 9991ef652c

View file

@ -618,7 +618,7 @@ static int pm8008_regulator_probe(struct platform_device *pdev)
/* PM8008 chip enable regulator callbacks */
static int pm8008_enable_regulator_enable(struct regulator_dev *rdev)
{
struct pm8008_regulator *chip = rdev_get_drvdata(rdev);
struct pm8008_chip *chip = rdev_get_drvdata(rdev);
int rc;
rc = pm8008_masked_write(chip->regmap, MISC_CHIP_ENABLE_REG,
@ -634,7 +634,7 @@ static int pm8008_enable_regulator_enable(struct regulator_dev *rdev)
static int pm8008_enable_regulator_disable(struct regulator_dev *rdev)
{
struct pm8008_regulator *chip = rdev_get_drvdata(rdev);
struct pm8008_chip *chip = rdev_get_drvdata(rdev);
int rc;
rc = pm8008_masked_write(chip->regmap, MISC_CHIP_ENABLE_REG,
@ -650,7 +650,7 @@ static int pm8008_enable_regulator_disable(struct regulator_dev *rdev)
static int pm8008_enable_regulator_is_enabled(struct regulator_dev *rdev)
{
struct pm8008_regulator *chip = rdev_get_drvdata(rdev);
struct pm8008_chip *chip = rdev_get_drvdata(rdev);
int rc;
u8 reg;