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

Commit ea92a179 authored by Kiran Gunda's avatar Kiran Gunda
Browse files

leds: qti-flash: Do not define "trigger_to_lcdev" function



Remove "trigger_to_lcdev" function definition from "leds-qti-flash"
driver file as the same is present in "leds.h" file and leads to a
compilation error.

Change-Id: Idea49767911f3a57b72bd1560d9ef485d16de25f
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent 02b56508
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -570,22 +570,6 @@ static void qti_flash_led_switch_brightness_set(
		snode->enabled = state;
}

static struct led_classdev *trigger_to_lcdev(struct led_trigger *trig)
{
	struct led_classdev *led_cdev;

	read_lock(&trig->leddev_list_lock);
	list_for_each_entry(led_cdev, &trig->led_cdevs, trig_list) {
		if (!strcmp(led_cdev->default_trigger, trig->name)) {
			read_unlock(&trig->leddev_list_lock);
			return led_cdev;
		}
	}

	read_unlock(&trig->leddev_list_lock);
	return NULL;
}

static ssize_t qti_flash_led_max_current_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{