lp87565.c (762f99f4f3cb41a775b5157dd761217beba65873) lp87565.c (7ec69cc2aa0c6210f4617ec67ce438e3e429cf9c)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
4 *
5 * Author: Keerthy <j-keerthy@ti.com>
6 */
7
8#include <linux/gpio/consumer.h>

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

38 {
39 .compatible = "ti,lp87561-q1",
40 .data = (void *)LP87565_DEVICE_TYPE_LP87561_Q1,
41 },
42 {}
43};
44MODULE_DEVICE_TABLE(of, of_lp87565_match_table);
45
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
4 *
5 * Author: Keerthy <j-keerthy@ti.com>
6 */
7
8#include <linux/gpio/consumer.h>

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

38 {
39 .compatible = "ti,lp87561-q1",
40 .data = (void *)LP87565_DEVICE_TYPE_LP87561_Q1,
41 },
42 {}
43};
44MODULE_DEVICE_TABLE(of, of_lp87565_match_table);
45
46static int lp87565_probe(struct i2c_client *client,
47 const struct i2c_device_id *ids)
46static int lp87565_probe(struct i2c_client *client)
48{
49 struct lp87565 *lp87565;
50 const struct of_device_id *of_id;
51 int ret;
52 unsigned int otpid;
53
54 lp87565 = devm_kzalloc(&client->dev, sizeof(*lp87565), GFP_KERNEL);
55 if (!lp87565)

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

115};
116MODULE_DEVICE_TABLE(i2c, lp87565_id_table);
117
118static struct i2c_driver lp87565_driver = {
119 .driver = {
120 .name = "lp87565",
121 .of_match_table = of_lp87565_match_table,
122 },
47{
48 struct lp87565 *lp87565;
49 const struct of_device_id *of_id;
50 int ret;
51 unsigned int otpid;
52
53 lp87565 = devm_kzalloc(&client->dev, sizeof(*lp87565), GFP_KERNEL);
54 if (!lp87565)

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

114};
115MODULE_DEVICE_TABLE(i2c, lp87565_id_table);
116
117static struct i2c_driver lp87565_driver = {
118 .driver = {
119 .name = "lp87565",
120 .of_match_table = of_lp87565_match_table,
121 },
123 .probe = lp87565_probe,
122 .probe_new = lp87565_probe,
124 .shutdown = lp87565_shutdown,
125 .id_table = lp87565_id_table,
126};
127module_i2c_driver(lp87565_driver);
128
129MODULE_AUTHOR("J Keerthy <j-keerthy@ti.com>");
130MODULE_DESCRIPTION("lp87565 chip family Multi-Function Device driver");
131MODULE_LICENSE("GPL v2");
123 .shutdown = lp87565_shutdown,
124 .id_table = lp87565_id_table,
125};
126module_i2c_driver(lp87565_driver);
127
128MODULE_AUTHOR("J Keerthy <j-keerthy@ti.com>");
129MODULE_DESCRIPTION("lp87565 chip family Multi-Function Device driver");
130MODULE_LICENSE("GPL v2");