Skip to content

Commit

Permalink
mfd: arizona: Add missing statics to the of_match_tables
Browse files Browse the repository at this point in the history
When the match tables were split for I2C and SPI a static should have
been added since the tables are no longer exported.

Fixes: 3f65555 ("mfd: arizona: Split of_match table into I2C and SPI versions")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
charleskeepax authored and Lee Jones committed Mar 8, 2022
1 parent b0e8462 commit 10377bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/mfd/arizona-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static const struct i2c_device_id arizona_i2c_id[] = {
MODULE_DEVICE_TABLE(i2c, arizona_i2c_id);

#ifdef CONFIG_OF
const struct of_device_id arizona_i2c_of_match[] = {
static const struct of_device_id arizona_i2c_of_match[] = {
{ .compatible = "wlf,wm5102", .data = (void *)WM5102 },
{ .compatible = "wlf,wm5110", .data = (void *)WM5110 },
{ .compatible = "wlf,wm8280", .data = (void *)WM8280 },
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/arizona-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static const struct spi_device_id arizona_spi_ids[] = {
MODULE_DEVICE_TABLE(spi, arizona_spi_ids);

#ifdef CONFIG_OF
const struct of_device_id arizona_spi_of_match[] = {
static const struct of_device_id arizona_spi_of_match[] = {
{ .compatible = "wlf,wm5102", .data = (void *)WM5102 },
{ .compatible = "wlf,wm5110", .data = (void *)WM5110 },
{ .compatible = "wlf,wm8280", .data = (void *)WM8280 },
Expand Down

0 comments on commit 10377bb

Please sign in to comment.