Skip to content

Commit 781edb0

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
misc: bh1770glc: 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-486-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9f28b67 commit 781edb0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/misc/bh1770glc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,7 @@ static const struct attribute_group bh1770_attribute_group = {
11621162
.attrs = sysfs_attrs
11631163
};
11641164

1165-
static int bh1770_probe(struct i2c_client *client,
1166-
const struct i2c_device_id *id)
1165+
static int bh1770_probe(struct i2c_client *client)
11671166
{
11681167
struct bh1770_chip *chip;
11691168
int err;
@@ -1379,7 +1378,7 @@ static struct i2c_driver bh1770_driver = {
13791378
.name = "bh1770glc",
13801379
.pm = &bh1770_pm_ops,
13811380
},
1382-
.probe = bh1770_probe,
1381+
.probe_new = bh1770_probe,
13831382
.remove = bh1770_remove,
13841383
.id_table = bh1770_id,
13851384
};

0 commit comments

Comments
 (0)