Home
last modified time | relevance | path

Searched refs:lp873 (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/drivers/regulator/
Dlp873x-regulator.c77 struct lp873x *lp873 = rdev_get_drvdata(rdev); in lp873x_buck_set_ramp_delay() local
98 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay()
102 dev_err(lp873->dev, "SLEW RATE write failed: %d\n", ret); in lp873x_buck_set_ramp_delay()
115 struct lp873x *lp873 = rdev_get_drvdata(rdev); in lp873x_buck_set_current_limit() local
121 return regmap_update_bits(lp873->regmap, in lp873x_buck_set_current_limit()
133 struct lp873x *lp873 = rdev_get_drvdata(rdev); in lp873x_buck_get_current_limit() local
137 ret = regmap_read(lp873->regmap, regulators[id].ctrl2_reg, &val); in lp873x_buck_get_current_limit()
197 struct lp873x *lp873 = dev_get_drvdata(pdev->dev.parent); in lp873x_regulator_probe() local
202 platform_set_drvdata(pdev, lp873); in lp873x_regulator_probe()
205 config.dev->of_node = lp873->dev->of_node; in lp873x_regulator_probe()
[all …]
/linux-4.19.296/drivers/gpio/
Dgpio-lp873x.c29 struct lp873x *lp873; member
52 return regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_direction_output()
62 ret = regmap_read(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, &val); in lp873x_gpio_get()
74 regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_set()
90 ret = regmap_update_bits(gpio->lp873->regmap, LP873X_REG_CONFIG, in lp873x_gpio_request()
110 return regmap_update_bits(gpio->lp873->regmap, in lp873x_gpio_set_config()
118 return regmap_update_bits(gpio->lp873->regmap, in lp873x_gpio_set_config()
153 gpio->lp873 = dev_get_drvdata(pdev->dev.parent); in lp873x_gpio_probe()
155 gpio->chip.parent = gpio->lp873->dev; in lp873x_gpio_probe()