Symbol: pca9450
drivers/regulator/pca9450-regulator.c
1096
struct pca9450 *pca9450 = data;
drivers/regulator/pca9450-regulator.c
1097
struct regmap *regmap = pca9450->regmap;
drivers/regulator/pca9450-regulator.c
1103
dev_err(pca9450->dev,
drivers/regulator/pca9450-regulator.c
1109
dev_warn(pca9450->dev, "PWRON interrupt.\n");
drivers/regulator/pca9450-regulator.c
1112
dev_warn(pca9450->dev, "WDOGB interrupt.\n");
drivers/regulator/pca9450-regulator.c
1115
dev_warn(pca9450->dev, "VRFLT1 interrupt.\n");
drivers/regulator/pca9450-regulator.c
1118
dev_warn(pca9450->dev, "VRFLT2 interrupt.\n");
drivers/regulator/pca9450-regulator.c
1121
dev_warn(pca9450->dev, "LOWVSYS interrupt.\n");
drivers/regulator/pca9450-regulator.c
1124
dev_warn(pca9450->dev, "IRQ_THERM_105 interrupt.\n");
drivers/regulator/pca9450-regulator.c
1127
dev_warn(pca9450->dev, "IRQ_THERM_125 interrupt.\n");
drivers/regulator/pca9450-regulator.c
1134
struct pca9450 *pca9450 = data->cb_data;
drivers/regulator/pca9450-regulator.c
1135
struct i2c_client *i2c = container_of(pca9450->dev, struct i2c_client, dev);
drivers/regulator/pca9450-regulator.c
115
struct pca9450 *pca9450 = rdev_get_drvdata(rdev);
drivers/regulator/pca9450-regulator.c
1150
static int pca9450_of_init(struct pca9450 *pca9450)
drivers/regulator/pca9450-regulator.c
1152
struct i2c_client *i2c = container_of(pca9450->dev, struct i2c_client, dev);
drivers/regulator/pca9450-regulator.c
1167
ret = regmap_update_bits(pca9450->regmap, PCA9450_REG_RESET_CTRL,
drivers/regulator/pca9450-regulator.c
117
if (pca9450->sd_vsel_fixed_low)
drivers/regulator/pca9450-regulator.c
1190
ret = regmap_update_bits(pca9450->regmap, PCA9450_REG_RESET_CTRL,
drivers/regulator/pca9450-regulator.c
120
if (pca9450->sd_vsel_gpio && !gpiod_get_value(pca9450->sd_vsel_gpio))
drivers/regulator/pca9450-regulator.c
1266
ret = regmap_update_bits(pca9450->regmap, PCA9450_REG_PWRCTRL,
drivers/regulator/pca9450-regulator.c
1277
ret = regmap_update_bits(pca9450->regmap, PCA9450_REG_CONFIG2,
drivers/regulator/pca9450-regulator.c
1294
struct pca9450 *pca9450;
drivers/regulator/pca9450-regulator.c
1299
pca9450 = devm_kzalloc(&i2c->dev, sizeof(struct pca9450), GFP_KERNEL);
drivers/regulator/pca9450-regulator.c
1300
if (!pca9450)
drivers/regulator/pca9450-regulator.c
1306
pca9450->rcnt = ARRAY_SIZE(pca9450a_regulators);
drivers/regulator/pca9450-regulator.c
1311
pca9450->rcnt = ARRAY_SIZE(pca9450bc_regulators);
drivers/regulator/pca9450-regulator.c
1316
pca9450->rcnt = ARRAY_SIZE(pca9451a_regulators);
drivers/regulator/pca9450-regulator.c
1321
pca9450->rcnt = ARRAY_SIZE(pca9451a_regulators);
drivers/regulator/pca9450-regulator.c
1329
pca9450->irq = i2c->irq;
drivers/regulator/pca9450-regulator.c
1330
pca9450->type = type;
drivers/regulator/pca9450-regulator.c
1331
pca9450->dev = &i2c->dev;
drivers/regulator/pca9450-regulator.c
1333
dev_set_drvdata(&i2c->dev, pca9450);
drivers/regulator/pca9450-regulator.c
1335
pca9450->regmap = devm_regmap_init_i2c(i2c,
drivers/regulator/pca9450-regulator.c
1337
if (IS_ERR(pca9450->regmap))
drivers/regulator/pca9450-regulator.c
1338
return dev_err_probe(&i2c->dev, PTR_ERR(pca9450->regmap),
drivers/regulator/pca9450-regulator.c
1341
ret = regmap_read(pca9450->regmap, PCA9450_REG_DEV_ID, &device_id);
drivers/regulator/pca9450-regulator.c
1353
for (i = 0; i < pca9450->rcnt; i++) {
drivers/regulator/pca9450-regulator.c
1364
config.regmap = pca9450->regmap;
drivers/regulator/pca9450-regulator.c
1365
config.dev = pca9450->dev;
drivers/regulator/pca9450-regulator.c
1366
config.driver_data = pca9450;
drivers/regulator/pca9450-regulator.c
1368
rdev = devm_regulator_register(pca9450->dev, desc, &config);
drivers/regulator/pca9450-regulator.c
1370
return dev_err_probe(pca9450->dev, PTR_ERR(rdev),
drivers/regulator/pca9450-regulator.c
1377
if (pca9450->irq) {
drivers/regulator/pca9450-regulator.c
1378
ret = devm_request_threaded_irq(pca9450->dev, pca9450->irq, NULL,
drivers/regulator/pca9450-regulator.c
1381
"pca9450-irq", pca9450);
drivers/regulator/pca9450-regulator.c
1383
return dev_err_probe(pca9450->dev, ret, "Failed to request IRQ: %d\n",
drivers/regulator/pca9450-regulator.c
1384
pca9450->irq);
drivers/regulator/pca9450-regulator.c
1387
ret = regmap_update_bits(pca9450->regmap, PCA9450_REG_INT1_MSK,
drivers/regulator/pca9450-regulator.c
1396
ret = regmap_clear_bits(pca9450->regmap, PCA9450_REG_BUCK123_DVS,
drivers/regulator/pca9450-regulator.c
1401
ret = pca9450_of_init(pca9450);
drivers/regulator/pca9450-regulator.c
1411
pca9450->sd_vsel_gpio = gpiod_get_optional(&ldo5->dev, "sd-vsel", GPIOD_IN);
drivers/regulator/pca9450-regulator.c
1412
if (IS_ERR(pca9450->sd_vsel_gpio))
drivers/regulator/pca9450-regulator.c
1413
return dev_err_probe(&i2c->dev, PTR_ERR(pca9450->sd_vsel_gpio),
drivers/regulator/pca9450-regulator.c
1416
pca9450->sd_vsel_fixed_low =
drivers/regulator/pca9450-regulator.c
1421
pca9450_i2c_restart_handler, pca9450))