Skip to content

Commit b2d4f93

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
backlight: lm3630a: 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 58d2b90 commit b2d4f93

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/video/backlight/lm3630a_bl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,7 @@ static int lm3630a_parse_node(struct lm3630a_chip *pchip,
491491
return ret;
492492
}
493493

494-
static int lm3630a_probe(struct i2c_client *client,
495-
const struct i2c_device_id *id)
494+
static int lm3630a_probe(struct i2c_client *client)
496495
{
497496
struct lm3630a_platform_data *pdata = dev_get_platdata(&client->dev);
498497
struct lm3630a_chip *pchip;
@@ -617,7 +616,7 @@ static struct i2c_driver lm3630a_i2c_driver = {
617616
.name = LM3630A_NAME,
618617
.of_match_table = lm3630a_match_table,
619618
},
620-
.probe = lm3630a_probe,
619+
.probe_new = lm3630a_probe,
621620
.remove = lm3630a_remove,
622621
.id_table = lm3630a_id,
623622
};

0 commit comments

Comments
 (0)