From: Mark Brown Date: Fri, 17 Feb 2012 18:46:00 +0000 (-0800) Subject: gpiolib: Add comments explaining the _cansleep() WARN_ON()s X-Git-Tag: v3.4-rc1~65^2~18 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4e449e82871c53ef3b22bd3a50fceabc0638926;p=pandora-kernel.git 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: Mark Brown Reviwed-by: Mark Brown Signed-off-by: Grant Likely --- Reading git-diff-tree failed