aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-09-22 14:06:38 -0500
committerPavel Machek <pavel@ucw.cz>2020-09-30 18:53:28 +0200
commit9adc8af4c2f414a03235ae5403433ff1090a00ff (patch)
treefc9f14359b63ca5b13ef71ffe4fd25da470df241 /drivers/leds
parentleds: lm3532: Fix warnings for undefined parameters (diff)
downloadlinux-dev-9adc8af4c2f414a03235ae5403433ff1090a00ff.tar.xz
linux-dev-9adc8af4c2f414a03235ae5403433ff1090a00ff.zip
leds: lm36274: Fix warning for undefined parameters
Fix warnings for undefined parameters when building with W=1. Signed-off-by: Dan Murphy <dmurphy@ti.com> Reviewed-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-lm36274.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/leds/leds-lm36274.c b/drivers/leds/leds-lm36274.c
index 582c6a821dc8..aadb03468a40 100644
--- a/drivers/leds/leds-lm36274.c
+++ b/drivers/leds/leds-lm36274.c
@@ -26,8 +26,8 @@
* @lmu_data: Register and setting values for common code
* @regmap: Devices register map
* @dev: Pointer to the devices device struct
- * @led_sources - The LED strings supported in this array
- * @num_leds - Number of LED strings are supported in this array
+ * @led_sources: The LED strings supported in this array
+ * @num_leds: Number of LED strings are supported in this array
*/
struct lm36274 {
struct platform_device *pdev;
@@ -160,6 +160,7 @@ static struct platform_driver lm36274_driver = {
.probe = lm36274_probe,
.driver = {
.name = "lm36274-leds",
+ .of_match_table = of_lm36274_leds_match,
},
};
module_platform_driver(lm36274_driver)