]> git.baikalelectronics.ru Git - kernel.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)
commite1ff745dd827816c9895d42fed6833b789d2adbc
tree6580b50979641e84a4093897cce713de8283ac5f
parentbc7b673d7ce948cb779bbdc8d2d1e6eb916a5136
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