13 #include <linux/module.h>
14 #include <linux/kernel.h>
17 #include <linux/i2c.h>
23 static const unsigned int tps6105x_voltages[] = {
45 static int tps6105x_regulator_disable(
struct regulator_dev *rdev)
60 static int tps6105x_regulator_is_enabled(
struct regulator_dev *rdev)
78 static int tps6105x_regulator_get_voltage_sel(
struct regulator_dev *rdev)
93 static int tps6105x_regulator_set_voltage_sel(
struct regulator_dev *rdev,
109 .enable = tps6105x_regulator_enable,
110 .disable = tps6105x_regulator_disable,
111 .is_enabled = tps6105x_regulator_is_enabled,
112 .get_voltage_sel = tps6105x_regulator_get_voltage_sel,
113 .set_voltage_sel = tps6105x_regulator_set_voltage_sel,
118 .name =
"tps6105x-boost",
119 .ops = &tps6105x_regulator_ops,
124 .volt_table = tps6105x_voltages,
132 struct tps6105x *tps6105x = dev_get_platdata(&pdev->
dev);
140 "chip not in voltage mode mode, exit probe \n");
154 "failed to register regulator\n");
157 platform_set_drvdata(pdev, tps6105x);
164 struct tps6105x *tps6105x = dev_get_platdata(&pdev->
dev);
171 .name =
"tps6105x-regulator",
174 .probe = tps6105x_regulator_probe,
178 static __init int tps6105x_regulator_init(
void)
184 static __exit void tps6105x_regulator_exit(
void)