diff options
Diffstat (limited to 'drivers/regulator/pfuze100-regulator.c')
| -rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index ef330e69336a..f81c5bffbbf9 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c | |||
| @@ -56,7 +56,7 @@ | |||
| 56 | #define PFUZE100_VGEN5VOL 0x70 | 56 | #define PFUZE100_VGEN5VOL 0x70 |
| 57 | #define PFUZE100_VGEN6VOL 0x71 | 57 | #define PFUZE100_VGEN6VOL 0x71 |
| 58 | 58 | ||
| 59 | enum chips {PFUZE100, PFUZE200, PFUZE_NUM}; | 59 | enum chips { PFUZE100, PFUZE200 }; |
| 60 | 60 | ||
| 61 | struct pfuze_regulator { | 61 | struct pfuze_regulator { |
| 62 | struct regulator_desc desc; | 62 | struct regulator_desc desc; |
| @@ -80,15 +80,17 @@ static const int pfuze100_vsnvs[] = { | |||
| 80 | 1000000, 1100000, 1200000, 1300000, 1500000, 1800000, 3000000, | 80 | 1000000, 1100000, 1200000, 1300000, 1500000, 1800000, 3000000, |
| 81 | }; | 81 | }; |
| 82 | 82 | ||
| 83 | static const struct i2c_device_id pfuze_device_id[PFUZE_NUM] = { | 83 | static const struct i2c_device_id pfuze_device_id[] = { |
| 84 | {.name = "pfuze100", .driver_data = PFUZE100}, | 84 | {.name = "pfuze100", .driver_data = PFUZE100}, |
| 85 | {.name = "pfuze200", .driver_data = PFUZE200}, | 85 | {.name = "pfuze200", .driver_data = PFUZE200}, |
| 86 | { } | ||
| 86 | }; | 87 | }; |
| 87 | MODULE_DEVICE_TABLE(i2c, pfuze_device_id); | 88 | MODULE_DEVICE_TABLE(i2c, pfuze_device_id); |
| 88 | 89 | ||
| 89 | static const struct of_device_id pfuze_dt_ids[PFUZE_NUM] = { | 90 | static const struct of_device_id pfuze_dt_ids[] = { |
| 90 | { .compatible = "fsl,pfuze100", .data = (void *)PFUZE100}, | 91 | { .compatible = "fsl,pfuze100", .data = (void *)PFUZE100}, |
| 91 | { .compatible = "fsl,pfuze200", .data = (void *)PFUZE200}, | 92 | { .compatible = "fsl,pfuze200", .data = (void *)PFUZE200}, |
| 93 | { } | ||
| 92 | }; | 94 | }; |
| 93 | MODULE_DEVICE_TABLE(of, pfuze_dt_ids); | 95 | MODULE_DEVICE_TABLE(of, pfuze_dt_ids); |
| 94 | 96 | ||
