Skip to content

Commit b7afb9c

Browse files
goldelicorkhuangtao
authored andcommitted
UPSTREAM: leds: is31fl32xx: fix typo in id and match table names
Change-Id: I8cebe3499d52fd8e7b44539455ed957fce004f76 Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Tested-by: David Rivshin <drivshin@allworx.com> Acked-by: David Rivshin <drivshin@allworx.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com> (cherry picked from commit 1d991b71b4fbbeab319154e9aa2f1e9c94976311)
1 parent 7847c9b commit b7afb9c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/leds/leds-is31fl32xx.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static int is31fl32xx_parse_dt(struct device *dev,
422422
return ret;
423423
}
424424

425-
static const struct of_device_id of_is31fl31xx_match[] = {
425+
static const struct of_device_id of_is31fl32xx_match[] = {
426426
{ .compatible = "issi,is31fl3236", .data = &is31fl3236_cdef, },
427427
{ .compatible = "issi,is31fl3235", .data = &is31fl3235_cdef, },
428428
{ .compatible = "issi,is31fl3218", .data = &is31fl3218_cdef, },
@@ -432,7 +432,7 @@ static const struct of_device_id of_is31fl31xx_match[] = {
432432
{},
433433
};
434434

435-
MODULE_DEVICE_TABLE(of, of_is31fl31xx_match);
435+
MODULE_DEVICE_TABLE(of, of_is31fl32xx_match);
436436

437437
static int is31fl32xx_probe(struct i2c_client *client,
438438
const struct i2c_device_id *id)
@@ -444,7 +444,7 @@ static int is31fl32xx_probe(struct i2c_client *client,
444444
int count;
445445
int ret = 0;
446446

447-
of_dev_id = of_match_device(of_is31fl31xx_match, dev);
447+
of_dev_id = of_match_device(of_is31fl32xx_match, dev);
448448
if (!of_dev_id)
449449
return -EINVAL;
450450

@@ -485,20 +485,20 @@ static int is31fl32xx_remove(struct i2c_client *client)
485485
* i2c-core requires that id_table be non-NULL, even though
486486
* it is not used for DeviceTree based instantiation.
487487
*/
488-
static const struct i2c_device_id is31fl31xx_id[] = {
488+
static const struct i2c_device_id is31fl32xx_id[] = {
489489
{},
490490
};
491491

492-
MODULE_DEVICE_TABLE(i2c, is31fl31xx_id);
492+
MODULE_DEVICE_TABLE(i2c, is31fl32xx_id);
493493

494494
static struct i2c_driver is31fl32xx_driver = {
495495
.driver = {
496496
.name = "is31fl32xx",
497-
.of_match_table = of_is31fl31xx_match,
497+
.of_match_table = of_is31fl32xx_match,
498498
},
499499
.probe = is31fl32xx_probe,
500500
.remove = is31fl32xx_remove,
501-
.id_table = is31fl31xx_id,
501+
.id_table = is31fl32xx_id,
502502
};
503503

504504
module_i2c_driver(is31fl32xx_driver);

0 commit comments

Comments
 (0)