Skip to content

Commit

Permalink
leds: is31fl32xx: fix typo in id and match table names
Browse files Browse the repository at this point in the history
Signed-off-by: H. Nikolaus Schaller <[email protected]>
Tested-by: David Rivshin <[email protected]>
Acked-by: David Rivshin <[email protected]>
Signed-off-by: Jacek Anaszewski <[email protected]>
  • Loading branch information
goldelico authored and janaszewski committed Jul 19, 2016
1 parent d966c94 commit 1d991b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions drivers/leds/leds-is31fl32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static int is31fl32xx_parse_dt(struct device *dev,
return ret;
}

static const struct of_device_id of_is31fl31xx_match[] = {
static const struct of_device_id of_is31fl32xx_match[] = {
{ .compatible = "issi,is31fl3236", .data = &is31fl3236_cdef, },
{ .compatible = "issi,is31fl3235", .data = &is31fl3235_cdef, },
{ .compatible = "issi,is31fl3218", .data = &is31fl3218_cdef, },
Expand All @@ -432,7 +432,7 @@ static const struct of_device_id of_is31fl31xx_match[] = {
{},
};

MODULE_DEVICE_TABLE(of, of_is31fl31xx_match);
MODULE_DEVICE_TABLE(of, of_is31fl32xx_match);

static int is31fl32xx_probe(struct i2c_client *client,
const struct i2c_device_id *id)
Expand All @@ -444,7 +444,7 @@ static int is31fl32xx_probe(struct i2c_client *client,
int count;
int ret = 0;

of_dev_id = of_match_device(of_is31fl31xx_match, dev);
of_dev_id = of_match_device(of_is31fl32xx_match, dev);
if (!of_dev_id)
return -EINVAL;

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

MODULE_DEVICE_TABLE(i2c, is31fl31xx_id);
MODULE_DEVICE_TABLE(i2c, is31fl32xx_id);

static struct i2c_driver is31fl32xx_driver = {
.driver = {
.name = "is31fl32xx",
.of_match_table = of_is31fl31xx_match,
.of_match_table = of_is31fl32xx_match,
},
.probe = is31fl32xx_probe,
.remove = is31fl32xx_remove,
.id_table = is31fl31xx_id,
.id_table = is31fl32xx_id,
};

module_i2c_driver(is31fl32xx_driver);
Expand Down

0 comments on commit 1d991b7

Please sign in to comment.