Skip to content

Commit ec34c2b

Browse files
committed
Merge tag 'backlight-next-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight
Pull backlight update from Lee Jones: "Convert a bunch of I2C class drivers over to .probe_new()" * tag 'backlight-next-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight: backlight: tosa: Convert to i2c's .probe_new() backlight: lv5207lp: Convert to i2c's .probe_new() backlight: lp855x: Convert to i2c's .probe_new() backlight: lm3639: Convert to i2c's .probe_new() backlight: lm3630a: Convert to i2c's .probe_new() backlight: bd6107: Convert to i2c's .probe_new() backlight: arcxcnn: Convert to i2c's .probe_new() backlight: adp8870: Convert to i2c's .probe_new() backlight: adp8860: Convert to i2c's .probe_new()
2 parents 7406fd7 + 0de796b commit ec34c2b

File tree

9 files changed

+21
-25
lines changed

9 files changed

+21
-25
lines changed

drivers/video/backlight/adp8860_bl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,9 @@ static const struct attribute_group adp8860_bl_attr_group = {
648648
.attrs = adp8860_bl_attributes,
649649
};
650650

651-
static int adp8860_probe(struct i2c_client *client,
652-
const struct i2c_device_id *id)
651+
static int adp8860_probe(struct i2c_client *client)
653652
{
653+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
654654
struct backlight_device *bl;
655655
struct adp8860_bl *data;
656656
struct adp8860_backlight_platform_data *pdata =
@@ -803,7 +803,7 @@ static struct i2c_driver adp8860_driver = {
803803
.name = KBUILD_MODNAME,
804804
.pm = &adp8860_i2c_pm_ops,
805805
},
806-
.probe = adp8860_probe,
806+
.probe_new = adp8860_probe,
807807
.remove = adp8860_remove,
808808
.id_table = adp8860_id,
809809
};

drivers/video/backlight/adp8870_bl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,9 @@ static const struct attribute_group adp8870_bl_attr_group = {
836836
.attrs = adp8870_bl_attributes,
837837
};
838838

839-
static int adp8870_probe(struct i2c_client *client,
840-
const struct i2c_device_id *id)
839+
static int adp8870_probe(struct i2c_client *client)
841840
{
841+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
842842
struct backlight_properties props;
843843
struct backlight_device *bl;
844844
struct adp8870_bl *data;
@@ -973,7 +973,7 @@ static struct i2c_driver adp8870_driver = {
973973
.name = KBUILD_MODNAME,
974974
.pm = &adp8870_i2c_pm_ops,
975975
},
976-
.probe = adp8870_probe,
976+
.probe_new = adp8870_probe,
977977
.remove = adp8870_remove,
978978
.id_table = adp8870_id,
979979
};

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
};

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
};

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
};

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
};

drivers/video/backlight/lp855x_bl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,9 @@ static int lp855x_parse_acpi(struct lp855x *lp)
394394
return 0;
395395
}
396396

397-
static int lp855x_probe(struct i2c_client *cl, const struct i2c_device_id *id)
397+
static int lp855x_probe(struct i2c_client *cl)
398398
{
399+
const struct i2c_device_id *id = i2c_client_get_device_id(cl);
399400
const struct acpi_device_id *acpi_id = NULL;
400401
struct device *dev = &cl->dev;
401402
struct lp855x *lp;
@@ -586,7 +587,7 @@ static struct i2c_driver lp855x_driver = {
586587
.of_match_table = of_match_ptr(lp855x_dt_ids),
587588
.acpi_match_table = ACPI_PTR(lp855x_acpi_match),
588589
},
589-
.probe = lp855x_probe,
590+
.probe_new = lp855x_probe,
590591
.remove = lp855x_remove,
591592
.id_table = lp855x_ids,
592593
};

drivers/video/backlight/lv5207lp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ static const struct backlight_ops lv5207lp_backlight_ops = {
7676
.check_fb = lv5207lp_backlight_check_fb,
7777
};
7878

79-
static int lv5207lp_probe(struct i2c_client *client,
80-
const struct i2c_device_id *id)
79+
static int lv5207lp_probe(struct i2c_client *client)
8180
{
8281
struct lv5207lp_platform_data *pdata = dev_get_platdata(&client->dev);
8382
struct backlight_device *backlight;
@@ -142,7 +141,7 @@ static struct i2c_driver lv5207lp_driver = {
142141
.driver = {
143142
.name = "lv5207lp",
144143
},
145-
.probe = lv5207lp_probe,
144+
.probe_new = lv5207lp_probe,
146145
.remove = lv5207lp_remove,
147146
.id_table = lv5207lp_ids,
148147
};

drivers/video/backlight/tosa_bl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ static const struct backlight_ops bl_ops = {
7575
.update_status = tosa_bl_update_status,
7676
};
7777

78-
static int tosa_bl_probe(struct i2c_client *client,
79-
const struct i2c_device_id *id)
78+
static int tosa_bl_probe(struct i2c_client *client)
8079
{
8180
struct backlight_properties props;
8281
struct tosa_bl_data *data;
@@ -160,7 +159,7 @@ static struct i2c_driver tosa_bl_driver = {
160159
.name = "tosa-bl",
161160
.pm = &tosa_bl_pm_ops,
162161
},
163-
.probe = tosa_bl_probe,
162+
.probe_new = tosa_bl_probe,
164163
.remove = tosa_bl_remove,
165164
.id_table = tosa_bl_id,
166165
};

0 commit comments

Comments
 (0)