pv88060-regulator.c (c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2) pv88060-regulator.c (77e29598ca3fc20314f1acec35ada9706b3ea16b)
1// SPDX-License-Identifier: GPL-2.0+
2//
3// pv88060-regulator.c - Regulator device driver for PV88060
4// Copyright (C) 2015 Powerventure Semiconductor Ltd.
5
6#include <linux/err.h>
7#include <linux/i2c.h>
8#include <linux/module.h>

--- 265 unchanged lines hidden (view full) ---

274error_i2c:
275 dev_err(chip->dev, "I2C error : %d\n", err);
276 return IRQ_NONE;
277}
278
279/*
280 * I2C driver interface functions
281 */
1// SPDX-License-Identifier: GPL-2.0+
2//
3// pv88060-regulator.c - Regulator device driver for PV88060
4// Copyright (C) 2015 Powerventure Semiconductor Ltd.
5
6#include <linux/err.h>
7#include <linux/i2c.h>
8#include <linux/module.h>

--- 265 unchanged lines hidden (view full) ---

274error_i2c:
275 dev_err(chip->dev, "I2C error : %d\n", err);
276 return IRQ_NONE;
277}
278
279/*
280 * I2C driver interface functions
281 */
282static int pv88060_i2c_probe(struct i2c_client *i2c,
283 const struct i2c_device_id *id)
282static int pv88060_i2c_probe(struct i2c_client *i2c)
284{
285 struct regulator_init_data *init_data = dev_get_platdata(&i2c->dev);
286 struct pv88060 *chip;
287 struct regulator_config config = { };
288 int error, i, ret = 0;
289
290 chip = devm_kzalloc(&i2c->dev, sizeof(struct pv88060), GFP_KERNEL);
291 if (!chip)

--- 88 unchanged lines hidden (view full) ---

380MODULE_DEVICE_TABLE(of, pv88060_dt_ids);
381#endif
382
383static struct i2c_driver pv88060_regulator_driver = {
384 .driver = {
385 .name = "pv88060",
386 .of_match_table = of_match_ptr(pv88060_dt_ids),
387 },
283{
284 struct regulator_init_data *init_data = dev_get_platdata(&i2c->dev);
285 struct pv88060 *chip;
286 struct regulator_config config = { };
287 int error, i, ret = 0;
288
289 chip = devm_kzalloc(&i2c->dev, sizeof(struct pv88060), GFP_KERNEL);
290 if (!chip)

--- 88 unchanged lines hidden (view full) ---

379MODULE_DEVICE_TABLE(of, pv88060_dt_ids);
380#endif
381
382static struct i2c_driver pv88060_regulator_driver = {
383 .driver = {
384 .name = "pv88060",
385 .of_match_table = of_match_ptr(pv88060_dt_ids),
386 },
388 .probe = pv88060_i2c_probe,
387 .probe_new = pv88060_i2c_probe,
389 .id_table = pv88060_i2c_id,
390};
391
392module_i2c_driver(pv88060_regulator_driver);
393
394MODULE_AUTHOR("James Ban <James.Ban.opensource@diasemi.com>");
395MODULE_DESCRIPTION("Regulator device driver for Powerventure PV88060");
396MODULE_LICENSE("GPL");
388 .id_table = pv88060_i2c_id,
389};
390
391module_i2c_driver(pv88060_regulator_driver);
392
393MODULE_AUTHOR("James Ban <James.Ban.opensource@diasemi.com>");
394MODULE_DESCRIPTION("Regulator device driver for Powerventure PV88060");
395MODULE_LICENSE("GPL");