stmpe-i2c.c (2612e3bbc0386368a850140a6c9b990cd496a5ec) stmpe-i2c.c (4db65f45e0ac1d361f351dbeda4c5660f3a4ea38)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ST Microelectronics MFD: stmpe's i2c client specific driver
4 *
5 * Copyright (C) ST-Ericsson SA 2010
6 * Copyright (C) ST Microelectronics SA 2011
7 *
8 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson

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

82 if (!of_id) {
83 /*
84 * This happens when the I2C ID matches the node name
85 * but no real compatible string has been given.
86 */
87 dev_info(&i2c->dev, "matching on node name, compatible is preferred\n");
88 partnum = id->driver_data;
89 } else
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ST Microelectronics MFD: stmpe's i2c client specific driver
4 *
5 * Copyright (C) ST-Ericsson SA 2010
6 * Copyright (C) ST Microelectronics SA 2011
7 *
8 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson

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

82 if (!of_id) {
83 /*
84 * This happens when the I2C ID matches the node name
85 * but no real compatible string has been given.
86 */
87 dev_info(&i2c->dev, "matching on node name, compatible is preferred\n");
88 partnum = id->driver_data;
89 } else
90 partnum = (enum stmpe_partnum)of_id->data;
90 partnum = (uintptr_t)of_id->data;
91
92 return stmpe_probe(&i2c_ci, partnum);
93}
94
95static void stmpe_i2c_remove(struct i2c_client *i2c)
96{
97 struct stmpe *stmpe = dev_get_drvdata(&i2c->dev);
98

--- 41 unchanged lines hidden ---
91
92 return stmpe_probe(&i2c_ci, partnum);
93}
94
95static void stmpe_i2c_remove(struct i2c_client *i2c)
96{
97 struct stmpe *stmpe = dev_get_drvdata(&i2c->dev);
98

--- 41 unchanged lines hidden ---