Lines Matching +full:buck +full:- +full:c
1 // SPDX-License-Identifier: GPL-2.0+
3 * mpq7932.c - hwmon with optional regulator driver for mps mpq7932
39 PMBUS_REGULATOR_STEP("buck", 0, MPQ7932_N_VOLTAGES,
41 PMBUS_REGULATOR_STEP("buck", 1, MPQ7932_N_VOLTAGES,
43 PMBUS_REGULATOR_STEP("buck", 2, MPQ7932_N_VOLTAGES,
45 PMBUS_REGULATOR_STEP("buck", 3, MPQ7932_N_VOLTAGES,
47 PMBUS_REGULATOR_STEP("buck", 4, MPQ7932_N_VOLTAGES,
49 PMBUS_REGULATOR_STEP("buck", 5, MPQ7932_N_VOLTAGES,
54 PMBUS_REGULATOR_STEP_ONE("buck", MPQ7932_N_VOLTAGES,
65 * access results -EREMOTEIO in mpq7932_write_word_data()
71 return -ENODATA; in mpq7932_write_word_data()
92 * access results in -EREMOTEIO in mpq7932_read_word_data()
98 return -ENODATA; in mpq7932_read_word_data()
106 struct device *dev = &client->dev; in mpq7932_probe()
111 return -ENOMEM; in mpq7932_probe()
113 info = &data->info; in mpq7932_probe()
114 info->pages = (int)(unsigned long)device_get_match_data(&client->dev); in mpq7932_probe()
115 info->format[PSC_VOLTAGE_OUT] = direct; in mpq7932_probe()
116 info->m[PSC_VOLTAGE_OUT] = 160; in mpq7932_probe()
117 info->b[PSC_VOLTAGE_OUT] = -33; in mpq7932_probe()
118 for (i = 0; i < info->pages; i++) { in mpq7932_probe()
119 info->func[i] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT in mpq7932_probe()
124 info->num_regulators = info->pages; in mpq7932_probe()
125 if (info->num_regulators == 1) in mpq7932_probe()
126 info->reg_desc = mpq7932_regulators_desc_one; in mpq7932_probe()
128 info->reg_desc = mpq7932_regulators_desc; in mpq7932_probe()
131 info->read_word_data = mpq7932_read_word_data; in mpq7932_probe()
132 info->write_word_data = mpq7932_write_word_data; in mpq7932_probe()
134 data->pdata.flags = PMBUS_NO_CAPABILITY; in mpq7932_probe()
135 dev->platform_data = &data->pdata; in mpq7932_probe()