Loading drivers/leds/leds-qti-tri-led.c +3 −1 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. */ #include <linux/bitops.h> Loading Loading @@ -371,6 +371,8 @@ static ssize_t breath_store(struct device *dev, struct device_attribute *attr, if (rc < 0) return rc; cancel_work_sync(&led_cdev->set_brightness_work); mutex_lock(&led->lock); if (led->breathing == breath) goto unlock; Loading Loading
drivers/leds/leds-qti-tri-led.c +3 −1 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. */ #include <linux/bitops.h> Loading Loading @@ -371,6 +371,8 @@ static ssize_t breath_store(struct device *dev, struct device_attribute *attr, if (rc < 0) return rc; cancel_work_sync(&led_cdev->set_brightness_work); mutex_lock(&led->lock); if (led->breathing == breath) goto unlock; Loading