Searched refs:lp873 (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/mfd/ |
H A D | lp873x.c | 29 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() 39 lp873->regmap = devm_regmap_init_i2c(client, &lp873x_regmap_config); 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() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-lp873x.c | 21 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/drivers/regulator/ |
H A D | lp873x-regulator.c | 74 struct lp873x *lp873 = rdev_get_drvdata(rdev); in lp873x_buck_set_ramp_delay() local 95 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay() 99 dev_err(lp873->dev, "SLEW RATE write failed: %d\n", ret); in lp873x_buck_set_ramp_delay() 157 struct lp873x *lp873 = dev_get_drvdata(pdev->dev.parent); in lp873x_regulator_probe() local 162 platform_set_drvdata(pdev, lp873); in lp873x_regulator_probe() 165 config.dev->of_node = lp873->dev->of_node; in lp873x_regulator_probe() 166 config.driver_data = lp873; in lp873x_regulator_probe() 167 config.regmap = lp873->regmap; in lp873x_regulator_probe() 173 dev_err(lp873->dev, "failed to register %s regulator\n", in lp873x_regulator_probe()
|