summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2019-10-02 15:40:41 +0300
committerPavel <pavel@ucw.cz>2019-11-03 19:38:51 +0300
commit4b83cf07d7a4ae70eae2e49086515cad0f42c629 (patch)
tree787c2696bf1c6415c9fe19d566bafbecbdcf08a7 /drivers/leds
parentec28a8cfdce6306afcbf528e231a733010c82251 (diff)
downloadlinux-4b83cf07d7a4ae70eae2e49086515cad0f42c629.tar.xz
leds: core: Fix devm_classdev_match to reference correct structure
Fix the devm_classdev_match pointer initialization to the correct structure type. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/led-class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
index 3f04334d59ee..438774315e6c 100644
--- a/drivers/leds/led-class.c
+++ b/drivers/leds/led-class.c
@@ -403,7 +403,7 @@ EXPORT_SYMBOL_GPL(devm_led_classdev_register_ext);
static int devm_led_classdev_match(struct device *dev, void *res, void *data)
{
- struct led_cdev **p = res;
+ struct led_classdev **p = res;
if (WARN_ON(!p || !*p))
return 0;