misc: tsl2550: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20221118224540.619276-496-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
59ee8ca4ee
commit
8427bd8bde
1 changed files with 2 additions and 3 deletions
|
@ -331,8 +331,7 @@ static int tsl2550_init_client(struct i2c_client *client)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static struct i2c_driver tsl2550_driver;
|
static struct i2c_driver tsl2550_driver;
|
||||||
static int tsl2550_probe(struct i2c_client *client,
|
static int tsl2550_probe(struct i2c_client *client)
|
||||||
const struct i2c_device_id *id)
|
|
||||||
{
|
{
|
||||||
struct i2c_adapter *adapter = client->adapter;
|
struct i2c_adapter *adapter = client->adapter;
|
||||||
struct tsl2550_data *data;
|
struct tsl2550_data *data;
|
||||||
|
@ -438,7 +437,7 @@ static struct i2c_driver tsl2550_driver = {
|
||||||
.of_match_table = tsl2550_of_match,
|
.of_match_table = tsl2550_of_match,
|
||||||
.pm = TSL2550_PM_OPS,
|
.pm = TSL2550_PM_OPS,
|
||||||
},
|
},
|
||||||
.probe = tsl2550_probe,
|
.probe_new = tsl2550_probe,
|
||||||
.remove = tsl2550_remove,
|
.remove = tsl2550_remove,
|
||||||
.id_table = tsl2550_id,
|
.id_table = tsl2550_id,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue