Skip to content

Commit 64ec276

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
backlight: arcxcnn: 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 <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e78b28b commit 64ec276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/backlight/arcxcnn_bl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static void arcxcnn_parse_dt(struct arcxcnn *lp)
241241
}
242242
}
243243

244-
static int arcxcnn_probe(struct i2c_client *cl, const struct i2c_device_id *id)
244+
static int arcxcnn_probe(struct i2c_client *cl)
245245
{
246246
struct arcxcnn *lp;
247247
int ret;
@@ -395,7 +395,7 @@ static struct i2c_driver arcxcnn_driver = {
395395
.name = "arcxcnn_bl",
396396
.of_match_table = of_match_ptr(arcxcnn_dt_ids),
397397
},
398-
.probe = arcxcnn_probe,
398+
.probe_new = arcxcnn_probe,
399399
.remove = arcxcnn_remove,
400400
.id_table = arcxcnn_ids,
401401
};

0 commit comments

Comments
 (0)