tps62360-regulator.c (14e77332e74603efab8347c89d3cda447c3b97c9) | tps62360-regulator.c (18804160277ec2ab992373385f86c6af2322b28b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * tps62360.c -- TI tps62360 4 * 5 * Driver for processor core supply tps62360, tps62361B, tps62362 and tps62363. 6 * 7 * Copyright (c) 2012, NVIDIA Corporation. 8 * --- 308 unchanged lines hidden (view full) --- 317 { .compatible = "ti,tps62361", .data = (void *)TPS62361}, 318 { .compatible = "ti,tps62362", .data = (void *)TPS62362}, 319 { .compatible = "ti,tps62363", .data = (void *)TPS62363}, 320 {}, 321}; 322MODULE_DEVICE_TABLE(of, tps62360_of_match); 323#endif 324 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * tps62360.c -- TI tps62360 4 * 5 * Driver for processor core supply tps62360, tps62361B, tps62362 and tps62363. 6 * 7 * Copyright (c) 2012, NVIDIA Corporation. 8 * --- 308 unchanged lines hidden (view full) --- 317 { .compatible = "ti,tps62361", .data = (void *)TPS62361}, 318 { .compatible = "ti,tps62362", .data = (void *)TPS62362}, 319 { .compatible = "ti,tps62363", .data = (void *)TPS62363}, 320 {}, 321}; 322MODULE_DEVICE_TABLE(of, tps62360_of_match); 323#endif 324 |
325static int tps62360_probe(struct i2c_client *client, 326 const struct i2c_device_id *id) | 325static int tps62360_probe(struct i2c_client *client) |
327{ | 326{ |
327 const struct i2c_device_id *id = i2c_client_get_device_id(client); |
|
328 struct regulator_config config = { }; 329 struct tps62360_regulator_platform_data *pdata; 330 struct regulator_dev *rdev; 331 struct tps62360_chip *tps; 332 int ret; 333 int i; 334 int chip_id; 335 int gpio_flags; --- 156 unchanged lines hidden (view full) --- 492 493MODULE_DEVICE_TABLE(i2c, tps62360_id); 494 495static struct i2c_driver tps62360_i2c_driver = { 496 .driver = { 497 .name = "tps62360", 498 .of_match_table = of_match_ptr(tps62360_of_match), 499 }, | 328 struct regulator_config config = { }; 329 struct tps62360_regulator_platform_data *pdata; 330 struct regulator_dev *rdev; 331 struct tps62360_chip *tps; 332 int ret; 333 int i; 334 int chip_id; 335 int gpio_flags; --- 156 unchanged lines hidden (view full) --- 492 493MODULE_DEVICE_TABLE(i2c, tps62360_id); 494 495static struct i2c_driver tps62360_i2c_driver = { 496 .driver = { 497 .name = "tps62360", 498 .of_match_table = of_match_ptr(tps62360_of_match), 499 }, |
500 .probe = tps62360_probe, | 500 .probe_new = tps62360_probe, |
501 .shutdown = tps62360_shutdown, 502 .id_table = tps62360_id, 503}; 504 505static int __init tps62360_init(void) 506{ 507 return i2c_add_driver(&tps62360_i2c_driver); 508} 509subsys_initcall(tps62360_init); 510 511static void __exit tps62360_cleanup(void) 512{ 513 i2c_del_driver(&tps62360_i2c_driver); 514} 515module_exit(tps62360_cleanup); 516 517MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>"); 518MODULE_DESCRIPTION("TPS6236x voltage regulator driver"); 519MODULE_LICENSE("GPL v2"); | 501 .shutdown = tps62360_shutdown, 502 .id_table = tps62360_id, 503}; 504 505static int __init tps62360_init(void) 506{ 507 return i2c_add_driver(&tps62360_i2c_driver); 508} 509subsys_initcall(tps62360_init); 510 511static void __exit tps62360_cleanup(void) 512{ 513 i2c_del_driver(&tps62360_i2c_driver); 514} 515module_exit(tps62360_cleanup); 516 517MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>"); 518MODULE_DESCRIPTION("TPS6236x voltage regulator driver"); 519MODULE_LICENSE("GPL v2"); |