]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/panel: simple: Allow GPIO accesses to sleep
authorThierry Reding <treding@nvidia.com>
Fri, 14 Mar 2014 11:03:47 +0000 (12:03 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 4 Apr 2014 07:06:39 +0000 (09:06 +0200)
commit15c1a919ae9c0a474c9cf4816d164ced5444292d
tree6580b50979641e84a4093897cce713de8283ac5f
parent887eb66e3ab2df12b09266724410a66c9400979a
drm/panel: simple: Allow GPIO accesses to sleep

The enable GPIO for panels may be provided by GPIO expanders on slow
busses (such as I2C), and therefore toggling the GPIO may sleep. Since
these accesses don't happen in interrupt context, use the *_cansleep()
variants of the GPIO API.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/panel/panel-simple.c