leds: turris-omnia: Drop unnecessary mutex locking
authorMarek Behún <kabel@kernel.org>
Wed, 2 Aug 2023 16:07:43 +0000 (18:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:52:08 +0000 (11:52 +0100)
commit7d0e60e4ff840e97fb18afb2a7344442c10a6fdf
treee0563770b215c09b61dd3cbef6ac932832c5a68f
parentce58f479b5311695648f25933c6135b9400a3e60
leds: turris-omnia: Drop unnecessary mutex locking

[ Upstream commit 760b6b7925bf09491aafa4727eef74fc6bf738b0 ]

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: 089381b27abe ("leds: initial support for Turris Omnia LEDs")
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230802160748.11208-2-kabel@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
Stable-dep-of: 6de283b96b31 ("leds: turris-omnia: Do not use SMBUS calls")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/leds/leds-turris-omnia.c