]> 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)
commitbfa1de8b80c26d887b2b3ad8b55b230c4b9d49f7
tree1aa141057a253a3ec7d777370a1a7089b22d99bd
parent6151d2b28155ad5c0dbc226e04ebc5a89a9a855d
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