lp3971.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | lp3971.c (77e29598ca3fc20314f1acec35ada9706b3ea16b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Regulator driver for National Semiconductors LP3971 PMIC chip 4 * 5 * Copyright (C) 2009 Samsung Electronics 6 * Author: Marek Szyprowski <m.szyprowski@samsung.com> 7 * 8 * Based on wm8350.c --- 386 unchanged lines hidden (view full) --- 395 err); 396 return err; 397 } 398 } 399 400 return 0; 401} 402 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Regulator driver for National Semiconductors LP3971 PMIC chip 4 * 5 * Copyright (C) 2009 Samsung Electronics 6 * Author: Marek Szyprowski <m.szyprowski@samsung.com> 7 * 8 * Based on wm8350.c --- 386 unchanged lines hidden (view full) --- 395 err); 396 return err; 397 } 398 } 399 400 return 0; 401} 402 |
403static int lp3971_i2c_probe(struct i2c_client *i2c, 404 const struct i2c_device_id *id) | 403static int lp3971_i2c_probe(struct i2c_client *i2c) |
405{ 406 struct lp3971 *lp3971; 407 struct lp3971_platform_data *pdata = dev_get_platdata(&i2c->dev); 408 int ret; 409 u16 val; 410 411 if (!pdata) { 412 dev_dbg(&i2c->dev, "No platform init data supplied\n"); --- 31 unchanged lines hidden (view full) --- 444 { } 445}; 446MODULE_DEVICE_TABLE(i2c, lp3971_i2c_id); 447 448static struct i2c_driver lp3971_i2c_driver = { 449 .driver = { 450 .name = "LP3971", 451 }, | 404{ 405 struct lp3971 *lp3971; 406 struct lp3971_platform_data *pdata = dev_get_platdata(&i2c->dev); 407 int ret; 408 u16 val; 409 410 if (!pdata) { 411 dev_dbg(&i2c->dev, "No platform init data supplied\n"); --- 31 unchanged lines hidden (view full) --- 443 { } 444}; 445MODULE_DEVICE_TABLE(i2c, lp3971_i2c_id); 446 447static struct i2c_driver lp3971_i2c_driver = { 448 .driver = { 449 .name = "LP3971", 450 }, |
452 .probe = lp3971_i2c_probe, | 451 .probe_new = lp3971_i2c_probe, |
453 .id_table = lp3971_i2c_id, 454}; 455 456module_i2c_driver(lp3971_i2c_driver); 457 458MODULE_LICENSE("GPL"); 459MODULE_AUTHOR("Marek Szyprowski <m.szyprowski@samsung.com>"); 460MODULE_DESCRIPTION("LP3971 PMIC driver"); | 452 .id_table = lp3971_i2c_id, 453}; 454 455module_i2c_driver(lp3971_i2c_driver); 456 457MODULE_LICENSE("GPL"); 458MODULE_AUTHOR("Marek Szyprowski <m.szyprowski@samsung.com>"); 459MODULE_DESCRIPTION("LP3971 PMIC driver"); |