Commit aec37069 authored by Marek Behún's avatar Marek Behún Committed by Greg Kroah-Hartman
Browse files

leds: turris-omnia: Drop unnecessary mutex locking



[ Upstream commit 760b6b79 ]

Do not lock driver mutex in the global LED panel brightness sysfs
accessors brightness_show() and brightness_store().

The mutex locking is unnecessary here. The I2C transfers are guarded by
I2C core locking mechanism, and the LED commands itself do not interfere
with other commands.

Fixes: 089381b2 ("leds: initial support for Turris Omnia LEDs")
Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
Reviewed-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230802160748.11208-2-kabel@kernel.org


Signed-off-by: default avatarLee Jones <lee@kernel.org>
Stable-dep-of: 6de283b9 ("leds: turris-omnia: Do not use SMBUS calls")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c9a4f13c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment