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

This commit is contained in:
qctecmdr 2020-07-15 18:03:33 -07:00 • committed by Gerrit - the friendly Code Review server
commit 317a552088

View file

@ -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++) {