Skip to content

Commit 58d2b90

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/video/backlight/bd6107.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ static const struct backlight_ops bd6107_backlight_ops = {
113113
.check_fb = bd6107_backlight_check_fb,
114114
};
115115

116-
static int bd6107_probe(struct i2c_client *client,
117-
const struct i2c_device_id *id)
116+
static int bd6107_probe(struct i2c_client *client)
118117
{
119118
struct bd6107_platform_data *pdata = dev_get_platdata(&client->dev);
120119
struct backlight_device *backlight;
@@ -193,7 +192,7 @@ static struct i2c_driver bd6107_driver = {
193192
.driver = {
194193
.name = "bd6107",
195194
},
196-
.probe = bd6107_probe,
195+
.probe_new = bd6107_probe,
197196
.remove = bd6107_remove,
198197
.id_table = bd6107_ids,
199198
};

0 commit comments

Comments
 (0)