]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: s6e8aa0: Use static inline for upcasting
authorThierry Reding <treding@nvidia.com>
Mon, 21 Jul 2014 13:51:17 +0000 (15:51 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 22 Jul 2014 07:06:48 +0000 (09:06 +0200)
commitf2a22a0350a89c00556676c407fa90dec24977d7
tree1aa141057a253a3ec7d777370a1a7089b22d99bd
parent4382f4b3c4f1e23b1380135c21dd6c9491e55e36
drm/panel: s6e8aa0: Use static inline for upcasting

Use a static inline function for upcasting a struct drm_panel to the
driver-specific structure. The advantage over using a macro is that it
gives us additional type checking.

Acked-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/panel/panel-s6e8aa0.c