Lines Matching refs:max1586
3 * max1586.c -- Voltage and current regulation for the Maxim 1586
13 #include <linux/regulator/max1586.h>
42 * On I2C bus, sending a "x" byte to the max1586 means :
50 * On I2C bus, sending a "x" byte to the max1586 means :
58 struct max1586_data *max1586 = rdev_get_drvdata(rdev);
60 return max1586->v3_curr_sel;
66 struct max1586_data *max1586 = rdev_get_drvdata(rdev);
67 struct i2c_client *client = max1586->client;
79 max1586->v3_curr_sel = selector;
86 struct max1586_data *max1586 = rdev_get_drvdata(rdev);
88 return max1586->v6_curr_sel;
94 struct max1586_data *max1586 = rdev_get_drvdata(rdev);
95 struct i2c_client *client = max1586->client;
107 max1586->v6_curr_sel = selector;
177 * available. This is normal because the max1586 doesn't provide any
205 { .compatible = "maxim,max1586", },
214 struct max1586_data *max1586;
232 max1586 = devm_kzalloc(&client->dev, sizeof(struct max1586_data),
234 if (!max1586)
237 max1586->client = client;
242 max1586->min_uV = MAX1586_V3_MIN_UV / 1000 * pdata->v3_gain / 1000;
243 max1586->max_uV = MAX1586_V3_MAX_UV / 1000 * pdata->v3_gain / 1000;
246 max1586->v3_curr_sel = 24; /* 1.3V */
247 max1586->v6_curr_sel = 0;
261 max1586_reg[id].min_uV = max1586->min_uV;
263 (max1586->max_uV - max1586->min_uV) /
269 config.driver_data = max1586;
280 i2c_set_clientdata(client, max1586);
286 { "max1586", 0 },
294 .name = "max1586",