mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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:
parent
e3116a7023
commit
9991ef652c
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue