Home
last modified time | relevance | path

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

/drivers/mfd/
Dlp873x.c38 struct lp873x *lp873; in lp873x_probe() local
42 lp873 = devm_kzalloc(&client->dev, sizeof(*lp873), GFP_KERNEL); in lp873x_probe()
43 if (!lp873) in lp873x_probe()
46 lp873->dev = &client->dev; in lp873x_probe()
48 lp873->regmap = devm_regmap_init_i2c(client, &lp873x_regmap_config); in lp873x_probe()
49 if (IS_ERR(lp873->regmap)) { in lp873x_probe()
50 ret = PTR_ERR(lp873->regmap); in lp873x_probe()
51 dev_err(lp873->dev, in lp873x_probe()
56 ret = regmap_read(lp873->regmap, LP873X_REG_OTP_REV, &otpid); in lp873x_probe()
58 dev_err(lp873->dev, "Failed to read OTP ID\n"); in lp873x_probe()
[all …]
/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()
/drivers/regulator/
Dlp873x-regulator.c81 struct lp873x *lp873 = rdev_get_drvdata(rdev); in lp873x_buck_set_ramp_delay() local
102 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay()
106 dev_err(lp873->dev, "SLEW RATE write failed: %d\n", ret); in lp873x_buck_set_ramp_delay()
164 struct lp873x *lp873 = dev_get_drvdata(pdev->dev.parent); in lp873x_regulator_probe() local
169 platform_set_drvdata(pdev, lp873); in lp873x_regulator_probe()
172 config.dev->of_node = lp873->dev->of_node; in lp873x_regulator_probe()
173 config.driver_data = lp873; in lp873x_regulator_probe()
174 config.regmap = lp873->regmap; in lp873x_regulator_probe()
180 dev_err(lp873->dev, "failed to register %s regulator\n", in lp873x_regulator_probe()