]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rfkill: Correct parameter type for rfkill_set_hw_state_reason()
authorZijun Hu <quic_zijuhu@quicinc.com>
Sun, 11 Aug 2024 04:47:26 +0000 (12:47 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 08:28:55 +0000 (10:28 +0200)
commit373d3f8dcbb1c0d764123653ca4574be636b8d86
tree159c8be560a367978c726dd2c282f1883c42d25f
parenta0ee9dcce60027258a53ee85b9153ab268dcb55a
wifi: rfkill: Correct parameter type for rfkill_set_hw_state_reason()

Change type of parameter @reason to enum rfkill_hard_block_reasons
for API rfkill_set_hw_state_reason() according to its comments, and
all kernel callers have invoked the API with enum type actually.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://patch.msgid.link/20240811-rfkill_fix-v2-1-9050760336f4@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/rfkill.h
net/rfkill/core.c