projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93aac5c
)
drm/arcpgu: Add local 'fb' variables
author
Ville Syrjälä
<
[email protected]
>
Fri, 18 Nov 2016 19:52:44 +0000
(21:52 +0200)
committer
Ville Syrjälä
<
[email protected]
>
Wed, 14 Dec 2016 20:36:39 +0000
(22:36 +0200)
Add a local 'fb' variable to a few places to get rid of the
'crtc->primary->fb' stuff. Looks neater and helps me with my ppor
coccinelle skills later.
Cc: Alexey Brodkin <
[email protected]
>
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Acked-by: Alexey Brodkin <
[email protected]
>
drivers/gpu/drm/arc/arcpgu_crtc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/arc/arcpgu_crtc.c
b/drivers/gpu/drm/arc/arcpgu_crtc.c
index 7130b044b004a87cab8af76c0a798c3bcb4e0c0e..5c26c5f126a3726503aab5a0d241e21a641538c6 100644
(file)
--- a/
drivers/gpu/drm/arc/arcpgu_crtc.c
+++ b/
drivers/gpu/drm/arc/arcpgu_crtc.c
@@
-35,7
+35,8
@@
static struct simplefb_format supported_formats[] = {
static void arc_pgu_set_pxl_fmt(struct drm_crtc *crtc)
{
struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
- uint32_t pixel_format = crtc->primary->state->fb->pixel_format;
+ const struct drm_framebuffer *fb = crtc->primary->state->fb;
+ uint32_t pixel_format = fb->pixel_format;
struct simplefb_format *format = NULL;
int i;