Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3213f631 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

backlight: fix class_find_device() arguments



Michał's previous patch missed this backlight check to fix up the
class_find_device() arguments.

Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Cc: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6e9430ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -371,7 +371,7 @@ void backlight_device_unregister(struct backlight_device *bd)
EXPORT_SYMBOL(backlight_device_unregister);

#ifdef CONFIG_OF
static int of_parent_match(struct device *dev, void *data)
static int of_parent_match(struct device *dev, const void *data)
{
	return dev->parent && dev->parent->of_node == data;
}