Skip to content

Commit 3065efe

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
backlight: lm3639: 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 b2d4f93 commit 3065efe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/video/backlight/lm3639_bl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ static const struct regmap_config lm3639_regmap = {
296296
.max_register = REG_MAX,
297297
};
298298

299-
static int lm3639_probe(struct i2c_client *client,
300-
const struct i2c_device_id *id)
299+
static int lm3639_probe(struct i2c_client *client)
301300
{
302301
int ret;
303302
struct lm3639_chip_data *pchip;
@@ -412,7 +411,7 @@ static struct i2c_driver lm3639_i2c_driver = {
412411
.driver = {
413412
.name = LM3639_NAME,
414413
},
415-
.probe = lm3639_probe,
414+
.probe_new = lm3639_probe,
416415
.remove = lm3639_remove,
417416
.id_table = lm3639_id,
418417
};

0 commit comments

Comments
 (0)