Skip to content
Snippets Groups Projects
Commit 771bb3dd authored by Loic Poulain's avatar Loic Poulain Committed by Johannes Berg
Browse files

rfkill-gpio: Use gpio cansleep version


If gpio controller requires waiting for read and write
GPIO values, then we have to use the gpio cansleep api.
Fix the rfkill_gpio_set_power which calls only the
nonsleep version (causing kernel warning).
There is no problem to use the cansleep version here
because we are not in IRQ handler or similar context
(cf rfkill_set_block).

Signed-off-by: default avatarLoic Poulain <loic.poulain@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent e5593f56
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment