projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f1dcd8
)
drm/panel: ld9040: Replace upcasting macro by function
author
Thierry Reding
<treding@nvidia.com>
Tue, 5 Aug 2014 06:59:01 +0000
(08:59 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Wed, 6 Aug 2014 14:44:16 +0000
(16:44 +0200)
Using a function instead of a macro provides proper type checking.
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/panel/panel-ld9040.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/panel/panel-ld9040.c
b/drivers/gpu/drm/panel/panel-ld9040.c
index c6aa7f717fa48f93630199ad6f3ea0dc9e896787..42ac67b21e9fac04d9f0e0599426f0fa48abf4cb 100644
(file)
--- a/
drivers/gpu/drm/panel/panel-ld9040.c
+++ b/
drivers/gpu/drm/panel/panel-ld9040.c
@@
-110,7
+110,10
@@
struct ld9040 {
int error;
};
-#define panel_to_ld9040(p) container_of(p, struct ld9040, panel)
+static inline struct ld9040 *panel_to_ld9040(struct drm_panel *panel)
+{
+ return container_of(panel, struct ld9040, panel);
+}
static int ld9040_clear_error(struct ld9040 *ctx)
{