Skip to content

Commit 9f28b67

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/misc/apds9802als.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ static int als_set_default_config(struct i2c_client *client)
212212
return ret_val;
213213
}
214214

215-
static int apds9802als_probe(struct i2c_client *client,
216-
const struct i2c_device_id *id)
215+
static int apds9802als_probe(struct i2c_client *client)
217216
{
218217
int res;
219218
struct als_data *data;
@@ -297,7 +296,7 @@ static struct i2c_driver apds9802als_driver = {
297296
.name = DRIVER_NAME,
298297
.pm = APDS9802ALS_PM_OPS,
299298
},
300-
.probe = apds9802als_probe,
299+
.probe_new = apds9802als_probe,
301300
.remove = apds9802als_remove,
302301
.id_table = apds9802als_id,
303302
};

0 commit comments

Comments
 (0)