Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/mfd/
A Dlp873x.c29 struct lp873x *lp873; in lp873x_probe() local
33 lp873 = devm_kzalloc(&client->dev, sizeof(*lp873), GFP_KERNEL); in lp873x_probe()
34 if (!lp873) in lp873x_probe()
37 lp873->dev = &client->dev; in lp873x_probe()
40 if (IS_ERR(lp873->regmap)) { in lp873x_probe()
41 ret = PTR_ERR(lp873->regmap); in lp873x_probe()
42 dev_err(lp873->dev, in lp873x_probe()
47 ret = regmap_read(lp873->regmap, LP873X_REG_OTP_REV, &otpid); in lp873x_probe()
49 dev_err(lp873->dev, "Failed to read OTP ID\n"); in lp873x_probe()
53 lp873->rev = otpid & LP873X_OTP_REV_OTP_ID; in lp873x_probe()
[all …]
/linux-6.3-rc2/drivers/gpio/
A Dgpio-lp873x.c21 struct lp873x *lp873; member
44 return regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_direction_output()
54 ret = regmap_read(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, &val); in lp873x_gpio_get()
66 regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_set()
82 ret = regmap_update_bits(gpio->lp873->regmap, LP873X_REG_CONFIG, in lp873x_gpio_request()
102 return regmap_update_bits(gpio->lp873->regmap, in lp873x_gpio_set_config()
110 return regmap_update_bits(gpio->lp873->regmap, in lp873x_gpio_set_config()
145 gpio->lp873 = dev_get_drvdata(pdev->dev.parent); in lp873x_gpio_probe()
147 gpio->chip.parent = gpio->lp873->dev; in lp873x_gpio_probe()
/linux-6.3-rc2/drivers/regulator/
A Dlp873x-regulator.c73 struct lp873x *lp873 = rdev_get_drvdata(rdev); in lp873x_buck_set_ramp_delay() local
94 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay()
98 dev_err(lp873->dev, "SLEW RATE write failed: %d\n", ret); in lp873x_buck_set_ramp_delay()
156 struct lp873x *lp873 = dev_get_drvdata(pdev->dev.parent); in lp873x_regulator_probe() local
161 platform_set_drvdata(pdev, lp873); in lp873x_regulator_probe()
164 config.dev->of_node = lp873->dev->of_node; in lp873x_regulator_probe()
165 config.driver_data = lp873; in lp873x_regulator_probe()
166 config.regmap = lp873->regmap; in lp873x_regulator_probe()
172 dev_err(lp873->dev, "failed to register %s regulator\n", in lp873x_regulator_probe()

Completed in 5 milliseconds