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

Commit 317a5520 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "leds: qti-flash: Allow symmetrical switch on with no channels configured"

parents 8b21a243 ec2cf0ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -522,8 +522,8 @@ static int qti_flash_led_symmetry_config(
	}

	if (type == FLASH_LED_TYPE_UNKNOWN) {
		pr_err("Error in symmetry configuration for switch device\n");
		return -EINVAL;
		/* No channels are configured */
		return 0;
	}

	for (i = 0; i < led->num_fnodes; i++) {