]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't open-code LED manipulations
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 Jun 2021 19:28:05 +0000 (21:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jun 2021 09:29:12 +0000 (11:29 +0200)
commitff73d61658b34d6fea6d9ef9bac97104c31e965a
tree05274a8b3d317610d1ae635c178572c92e61c192
parentb6470ac26a57e30b6869851586d5bab73f785058
mac80211: don't open-code LED manipulations

We shouldn't open-code led_trigger_blink() or led_trigger_event(),
use them instead of badly open-coding them. This also fixes the
locking, led_trigger_blink() and led_trigger_event() now use
read_lock_irqsave().

Link: https://lore.kernel.org/r/20210616212804.b19ba1c60353.I8ea1b4defd5e12fc20ef281291e602feeec336a6@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/led.c