• Home
  • Raw
  • Download

Lines Matching refs:ltc3589

75 struct ltc3589 {  struct
93 struct ltc3589 *ltc3589 = rdev_get_drvdata(rdev); in ltc3589_set_ramp_delay() argument
105 return regmap_update_bits(ltc3589->regmap, in ltc3589_set_ramp_delay()
115 struct ltc3589 *ltc3589 = rdev_get_drvdata(rdev); in ltc3589_set_suspend_voltage() local
123 return regmap_update_bits(ltc3589->regmap, rdev->desc->vsel_reg + 1, in ltc3589_set_suspend_voltage()
130 struct ltc3589 *ltc3589 = rdev_get_drvdata(rdev); in ltc3589_set_suspend_mode() local
141 return regmap_update_bits(ltc3589->regmap, LTC3589_VCCR, mask, bit); in ltc3589_set_suspend_mode()
195 struct ltc3589 *ltc3589 = config->driver_data; in ltc3589_of_parse_cb() local
196 struct regulator_desc *rdesc = &ltc3589->regulator_descs[desc->id]; in ltc3589_of_parse_cb()
206 dev_err(ltc3589->dev, "Failed to parse voltage divider: %d\n", in ltc3589_of_parse_cb()
353 struct ltc3589 *ltc3589 = dev_id; in ltc3589_isr() local
356 regmap_read(ltc3589->regmap, LTC3589_IRQSTAT, &irqstat); in ltc3589_isr()
361 regulator_lock(ltc3589->regulators[i]); in ltc3589_isr()
362 regulator_notifier_call_chain(ltc3589->regulators[i], in ltc3589_isr()
364 regulator_unlock(ltc3589->regulators[i]); in ltc3589_isr()
371 regulator_lock(ltc3589->regulators[i]); in ltc3589_isr()
372 regulator_notifier_call_chain(ltc3589->regulators[i], in ltc3589_isr()
374 regulator_unlock(ltc3589->regulators[i]); in ltc3589_isr()
379 regmap_write(ltc3589->regmap, LTC3589_CLIRQ, 0); in ltc3589_isr()
389 struct ltc3589 *ltc3589; in ltc3589_probe() local
392 ltc3589 = devm_kzalloc(dev, sizeof(*ltc3589), GFP_KERNEL); in ltc3589_probe()
393 if (!ltc3589) in ltc3589_probe()
396 i2c_set_clientdata(client, ltc3589); in ltc3589_probe()
398 ltc3589->variant = (enum ltc3589_variant) in ltc3589_probe()
401 ltc3589->variant = id->driver_data; in ltc3589_probe()
402 ltc3589->dev = dev; in ltc3589_probe()
404 descs = ltc3589->regulator_descs; in ltc3589_probe()
406 if (ltc3589->variant == LTC3589) { in ltc3589_probe()
414 ltc3589->regmap = devm_regmap_init_i2c(client, &ltc3589_regmap_config); in ltc3589_probe()
415 if (IS_ERR(ltc3589->regmap)) { in ltc3589_probe()
416 ret = PTR_ERR(ltc3589->regmap); in ltc3589_probe()
422 struct regulator_desc *desc = &ltc3589->regulator_descs[i]; in ltc3589_probe()
426 config.driver_data = ltc3589; in ltc3589_probe()
428 ltc3589->regulators[i] = devm_regulator_register(dev, desc, in ltc3589_probe()
430 if (IS_ERR(ltc3589->regulators[i])) { in ltc3589_probe()
431 ret = PTR_ERR(ltc3589->regulators[i]); in ltc3589_probe()
442 client->name, ltc3589); in ltc3589_probe()