Skip to content

Commit

Permalink
leds: lm3532: Convert to i2c's .probe_new()
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
Uwe Kleine-König authored and lag-linaro committed Jan 30, 2023
1 parent 5d08066 commit 912bcc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/leds/leds-lm3532.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,7 @@ static int lm3532_parse_node(struct lm3532_data *priv)
return ret;
}

static int lm3532_probe(struct i2c_client *client,
const struct i2c_device_id *id)
static int lm3532_probe(struct i2c_client *client)
{
struct lm3532_data *drvdata;
int ret = 0;
Expand Down Expand Up @@ -727,7 +726,7 @@ static const struct i2c_device_id lm3532_id[] = {
MODULE_DEVICE_TABLE(i2c, lm3532_id);

static struct i2c_driver lm3532_i2c_driver = {
.probe = lm3532_probe,
.probe_new = lm3532_probe,
.remove = lm3532_remove,
.id_table = lm3532_id,
.driver = {
Expand Down

0 comments on commit 912bcc8

Please sign in to comment.