Skip to content
Commit e4e449e8 authored by Mark Brown's avatar Mark Brown Committed by Grant Likely
Browse files

gpiolib: Add comments explaining the _cansleep() WARN_ON()s



I've seen users getting very confused by the WARN_ON()s for can_sleep
GPIOs in the atomic-safe paths, the discoverability of the non-atomic
version of the API seems to be hampered by the fact that it's defined
in a header file not the .c file where the warnings are.

Add a couple of comments next to the warnings to help people on their
way.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Reviwed-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 25553ff0
Loading
Loading
Loading
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