ltc3676.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | ltc3676.c (77e29598ca3fc20314f1acec35ada9706b3ea16b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2016 Gateworks Corporation, Inc. All Rights Reserved. 4 */ 5#include <linux/i2c.h> 6#include <linux/init.h> 7#include <linux/interrupt.h> 8#include <linux/module.h> --- 287 unchanged lines hidden (view full) --- 296 } 297 298 /* Clear warning condition */ 299 regmap_write(ltc3676->regmap, LTC3676_CLIRQ, 0); 300 301 return IRQ_HANDLED; 302} 303 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2016 Gateworks Corporation, Inc. All Rights Reserved. 4 */ 5#include <linux/i2c.h> 6#include <linux/init.h> 7#include <linux/interrupt.h> 8#include <linux/module.h> --- 287 unchanged lines hidden (view full) --- 296 } 297 298 /* Clear warning condition */ 299 regmap_write(ltc3676->regmap, LTC3676_CLIRQ, 0); 300 301 return IRQ_HANDLED; 302} 303 |
304static int ltc3676_regulator_probe(struct i2c_client *client, 305 const struct i2c_device_id *id) | 304static int ltc3676_regulator_probe(struct i2c_client *client) |
306{ 307 struct device *dev = &client->dev; 308 struct regulator_init_data *init_data = dev_get_platdata(dev); 309 struct regulator_desc *descs; 310 struct ltc3676 *ltc3676; 311 int i, ret; 312 313 ltc3676 = devm_kzalloc(dev, sizeof(*ltc3676), GFP_KERNEL); --- 61 unchanged lines hidden (view full) --- 375}; 376MODULE_DEVICE_TABLE(of, ltc3676_of_match); 377 378static struct i2c_driver ltc3676_driver = { 379 .driver = { 380 .name = DRIVER_NAME, 381 .of_match_table = of_match_ptr(ltc3676_of_match), 382 }, | 305{ 306 struct device *dev = &client->dev; 307 struct regulator_init_data *init_data = dev_get_platdata(dev); 308 struct regulator_desc *descs; 309 struct ltc3676 *ltc3676; 310 int i, ret; 311 312 ltc3676 = devm_kzalloc(dev, sizeof(*ltc3676), GFP_KERNEL); --- 61 unchanged lines hidden (view full) --- 374}; 375MODULE_DEVICE_TABLE(of, ltc3676_of_match); 376 377static struct i2c_driver ltc3676_driver = { 378 .driver = { 379 .name = DRIVER_NAME, 380 .of_match_table = of_match_ptr(ltc3676_of_match), 381 }, |
383 .probe = ltc3676_regulator_probe, | 382 .probe_new = ltc3676_regulator_probe, |
384 .id_table = ltc3676_i2c_id, 385}; 386module_i2c_driver(ltc3676_driver); 387 388MODULE_AUTHOR("Tim Harvey <tharvey@gateworks.com>"); 389MODULE_DESCRIPTION("Regulator driver for Linear Technology LTC3676"); 390MODULE_LICENSE("GPL v2"); | 383 .id_table = ltc3676_i2c_id, 384}; 385module_i2c_driver(ltc3676_driver); 386 387MODULE_AUTHOR("Tim Harvey <tharvey@gateworks.com>"); 388MODULE_DESCRIPTION("Regulator driver for Linear Technology LTC3676"); 389MODULE_LICENSE("GPL v2"); |