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: kxsd9: 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-12-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
2ba423fe 5019025f

+2 -3
+2 -3
drivers/iio/accel/kxsd9-i2c.c
··· 10 10 11 11 #include "kxsd9.h" 12 12 13 - static int kxsd9_i2c_probe(struct i2c_client *i2c, 14 - const struct i2c_device_id *id) 13 + static int kxsd9_i2c_probe(struct i2c_client *i2c) 15 14 { 16 15 static const struct regmap_config config = { 17 16 .reg_bits = 8, ··· 54 55 .of_match_table = kxsd9_of_match, 55 56 .pm = pm_ptr(&kxsd9_dev_pm_ops), 56 57 }, 57 - .probe = kxsd9_i2c_probe, 58 + .probe_new = kxsd9_i2c_probe, 58 59 .remove = kxsd9_i2c_remove, 59 60 .id_table = kxsd9_i2c_id, 60 61 };