Skip to content

Commit

Permalink
leds: various: guard of_match_table member value with of_match_ptr
Browse files Browse the repository at this point in the history
Change
  .of_match_table = xxx,
to
  .of_match_table = of_match_ptr(xxx),
in various drivers.

This should be standard even for drivers that depend on OF.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Sean Wang <sean.wang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
  • Loading branch information
elkablo authored and intel-lab-lkp committed Sep 17, 2020
1 parent ff860ce commit a98b683
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion drivers/leds/leds-aat1290.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ static struct platform_driver aat1290_led_driver = {
.remove = aat1290_led_remove,
.driver = {
.name = "aat1290",
.of_match_table = aat1290_led_dt_match,
.of_match_table = of_match_ptr(aat1290_led_dt_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-as3645a.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ MODULE_DEVICE_TABLE(of, as3645a_of_table);

static struct i2c_driver as3645a_i2c_driver = {
.driver = {
.of_match_table = as3645a_of_table,
.of_match_table = of_match_ptr(as3645a_of_table),
.name = AS_NAME,
},
.probe_new = as3645a_probe,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-bcm6328.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static struct platform_driver bcm6328_leds_driver = {
.probe = bcm6328_leds_probe,
.driver = {
.name = "leds-bcm6328",
.of_match_table = bcm6328_leds_of_match,
.of_match_table = of_match_ptr(bcm6328_leds_of_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-bcm6358.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static struct platform_driver bcm6358_leds_driver = {
.probe = bcm6358_leds_probe,
.driver = {
.name = "leds-bcm6358",
.of_match_table = bcm6358_leds_of_match,
.of_match_table = of_match_ptr(bcm6358_leds_of_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-cpcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static struct platform_driver cpcap_led_driver = {
.probe = cpcap_led_probe,
.driver = {
.name = "cpcap-led",
.of_match_table = cpcap_led_of_match,
.of_match_table = of_match_ptr(cpcap_led_of_match),
},
};
module_platform_driver(cpcap_led_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-cr0014114.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static struct spi_driver cr0014114_driver = {
.remove = cr0014114_remove,
.driver = {
.name = KBUILD_MODNAME,
.of_match_table = cr0014114_dt_ids,
.of_match_table = of_match_ptr(cr0014114_dt_ids),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-el15203000.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static struct spi_driver el15203000_driver = {
.remove = el15203000_remove,
.driver = {
.name = KBUILD_MODNAME,
.of_match_table = el15203000_dt_ids,
.of_match_table = of_match_ptr(el15203000_dt_ids),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static struct platform_driver gpio_led_driver = {
.shutdown = gpio_led_shutdown,
.driver = {
.name = "leds-gpio",
.of_match_table = of_gpio_leds_match,
.of_match_table = of_match_ptr(of_gpio_leds_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-is31fl32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ MODULE_DEVICE_TABLE(i2c, is31fl32xx_id);
static struct i2c_driver is31fl32xx_driver = {
.driver = {
.name = "is31fl32xx",
.of_match_table = of_is31fl32xx_match,
.of_match_table = of_match_ptr(of_is31fl32xx_match),
},
.probe = is31fl32xx_probe,
.remove = is31fl32xx_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-ktd2692.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ MODULE_DEVICE_TABLE(of, ktd2692_match);
static struct platform_driver ktd2692_driver = {
.driver = {
.name = "ktd2692",
.of_match_table = ktd2692_match,
.of_match_table = of_match_ptr(ktd2692_match),
},
.probe = ktd2692_probe,
.remove = ktd2692_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-lm3532.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ static struct i2c_driver lm3532_i2c_driver = {
.id_table = lm3532_id,
.driver = {
.name = LM3532_NAME,
.of_match_table = of_lm3532_leds_match,
.of_match_table = of_match_ptr(of_lm3532_leds_match),
},
};
module_i2c_driver(lm3532_i2c_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-lm3601x.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ MODULE_DEVICE_TABLE(of, of_lm3601x_leds_match);
static struct i2c_driver lm3601x_i2c_driver = {
.driver = {
.name = "lm3601x",
.of_match_table = of_lm3601x_leds_match,
.of_match_table = of_match_ptr(of_lm3601x_leds_match),
},
.probe_new = lm3601x_probe,
.remove = lm3601x_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-lm3692x.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ MODULE_DEVICE_TABLE(of, of_lm3692x_leds_match);
static struct i2c_driver lm3692x_driver = {
.driver = {
.name = "lm3692x",
.of_match_table = of_lm3692x_leds_match,
.of_match_table = of_match_ptr(of_lm3692x_leds_match),
},
.probe = lm3692x_probe,
.remove = lm3692x_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-lm3697.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ MODULE_DEVICE_TABLE(of, of_lm3697_leds_match);
static struct i2c_driver lm3697_driver = {
.driver = {
.name = "lm3697",
.of_match_table = of_lm3697_leds_match,
.of_match_table = of_match_ptr(of_lm3697_leds_match),
},
.probe = lm3697_probe,
.remove = lm3697_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-lp50xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ MODULE_DEVICE_TABLE(of, of_lp50xx_leds_match);
static struct i2c_driver lp50xx_driver = {
.driver = {
.name = "lp50xx",
.of_match_table = of_lp50xx_leds_match,
.of_match_table = of_match_ptr(of_lp50xx_leds_match),
},
.probe = lp50xx_probe,
.remove = lp50xx_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-lp8860.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ MODULE_DEVICE_TABLE(of, of_lp8860_leds_match);
static struct i2c_driver lp8860_driver = {
.driver = {
.name = "lp8860",
.of_match_table = of_lp8860_leds_match,
.of_match_table = of_match_ptr(of_lp8860_leds_match),
},
.probe = lp8860_probe,
.remove = lp8860_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-max77650.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ MODULE_DEVICE_TABLE(of, max77650_led_of_match);
static struct platform_driver max77650_led_driver = {
.driver = {
.name = "max77650-led",
.of_match_table = max77650_led_of_match,
.of_match_table = of_match_ptr(max77650_led_of_match),
},
.probe = max77650_led_probe,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ static struct platform_driver max77693_led_driver = {
.remove = max77693_led_remove,
.driver = {
.name = "max77693-led",
.of_match_table = max77693_led_dt_match,
.of_match_table = of_match_ptr(max77693_led_dt_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-mt6323.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ static struct platform_driver mt6323_led_driver = {
.remove = mt6323_led_remove,
.driver = {
.name = "mt6323-led",
.of_match_table = mt6323_led_dt_match,
.of_match_table = of_match_ptr(mt6323_led_dt_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-netxbig.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ static struct platform_driver netxbig_led_driver = {
.probe = netxbig_led_probe,
.driver = {
.name = "leds-netxbig",
.of_match_table = of_netxbig_leds_match,
.of_match_table = of_match_ptr(of_netxbig_leds_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-pca955x.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static int pca955x_probe(struct i2c_client *client,
static struct i2c_driver pca955x_driver = {
.driver = {
.name = "leds-pca955x",
.of_match_table = of_pca955x_match,
.of_match_table = of_match_ptr(of_pca955x_match),
},
.probe = pca955x_probe,
.id_table = pca955x_id,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-pca963x.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ static int pca963x_remove(struct i2c_client *client)
static struct i2c_driver pca963x_driver = {
.driver = {
.name = "leds-pca963x",
.of_match_table = of_pca963x_match,
.of_match_table = of_match_ptr(of_pca963x_match),
},
.probe = pca963x_probe,
.remove = pca963x_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-pm8058.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static struct platform_driver pm8058_led_driver = {
.probe = pm8058_led_probe,
.driver = {
.name = "pm8058-leds",
.of_match_table = pm8058_leds_id_table,
.of_match_table = of_match_ptr(pm8058_leds_id_table),
},
};
module_platform_driver(pm8058_led_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-powernv.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static struct platform_driver powernv_led_driver = {
.remove = powernv_led_remove,
.driver = {
.name = "powernv-led-driver",
.of_match_table = powernv_led_match,
.of_match_table = of_match_ptr(powernv_led_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static struct platform_driver led_pwm_driver = {
.probe = led_pwm_probe,
.driver = {
.name = "leds_pwm",
.of_match_table = of_pwm_leds_match,
.of_match_table = of_match_ptr(of_pwm_leds_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-sc27xx-bltc.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ MODULE_DEVICE_TABLE(of, sc27xx_led_of_match);
static struct platform_driver sc27xx_led_driver = {
.driver = {
.name = "sprd-bltc",
.of_match_table = sc27xx_led_of_match,
.of_match_table = of_match_ptr(sc27xx_led_of_match),
},
.probe = sc27xx_led_probe,
.remove = sc27xx_led_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-sgm3140.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ static struct platform_driver sgm3140_driver = {
.remove = sgm3140_remove,
.driver = {
.name = "sgm3140",
.of_match_table = sgm3140_dt_match,
.of_match_table = of_match_ptr(sgm3140_dt_match),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-spi-byte.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static struct spi_driver spi_byte_driver = {
.remove = spi_byte_remove,
.driver = {
.name = KBUILD_MODNAME,
.of_match_table = spi_byte_dt_ids,
.of_match_table = of_match_ptr(spi_byte_dt_ids),
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-syscon.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static struct platform_driver syscon_led_driver = {
.probe = syscon_led_probe,
.driver = {
.name = "leds-syscon",
.of_match_table = of_syscon_leds_match,
.of_match_table = of_match_ptr(of_syscon_leds_match),
.suppress_bind_attrs = true,
},
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/leds/leds-turris-omnia.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static struct i2c_driver omnia_leds_driver = {
.id_table = omnia_id,
.driver = {
.name = "leds-turris-omnia",
.of_match_table = of_omnia_leds_match,
.of_match_table = of_match_ptr(of_omnia_leds_match),
},
};

Expand Down

0 comments on commit a98b683

Please sign in to comment.