Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: accel: st_magn: 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/20221023132302.911644-23-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
9492c00d d18e7060

+2 -3
+2 -3
drivers/iio/magnetometer/st_magn_i2c.c
··· 54 54 }; 55 55 MODULE_DEVICE_TABLE(of, st_magn_of_match); 56 56 57 - static int st_magn_i2c_probe(struct i2c_client *client, 58 - const struct i2c_device_id *id) 57 + static int st_magn_i2c_probe(struct i2c_client *client) 59 58 { 60 59 const struct st_sensor_settings *settings; 61 60 struct st_sensor_data *mdata; ··· 106 107 .name = "st-magn-i2c", 107 108 .of_match_table = st_magn_of_match, 108 109 }, 109 - .probe = st_magn_i2c_probe, 110 + .probe_new = st_magn_i2c_probe, 110 111 .id_table = st_magn_id_table, 111 112 }; 112 113 module_i2c_driver(st_magn_driver);