diff options
| author | Ville Syrjälä <[email protected]> | 2018-03-22 20:27:37 +0000 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2018-03-28 16:19:32 +0000 |
| commit | 0c9c7fd00e17907efb35697ecb9f2df39a0b536c (patch) | |
| tree | e89c00a34f34a6b8efbf9f768f660f1068883577 /drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | |
| parent | drm/udl: Get rid of dev->struct_mutex usage (diff) | |
| download | kernel-0c9c7fd00e17907efb35697ecb9f2df39a0b536c.tar.gz kernel-0c9c7fd00e17907efb35697ecb9f2df39a0b536c.zip | |
drm/simple-kms-helper: Plumb plane state to the enable hook
tinydrm enable hook wants to play around with the new fb in
.atomic_enable(), thus we'll need access to the plane state.
Performed with coccinelle:
@r1@
identifier F =~ ".*enable$";
identifier P, CS;
@@
F(
struct drm_simple_display_pipe *P
,struct drm_crtc_state *CS
+ ,struct drm_plane_state *plane_state
)
{
...
}
@@
struct drm_simple_display_pipe *P;
expression E;
@@
{
+ struct drm_plane *plane;
...
+ plane = &P->plane;
P->funcs->enable(P
,E
+ ,plane->state
);
...
}
@@
identifier P, CS;
@@
struct drm_simple_display_pipe_funcs {
...
void (*enable)(struct drm_simple_display_pipe *P
,struct drm_crtc_state *CS
+ ,struct drm_plane_state *plane_state
);
...
};
v2: Pimp the commit message (David)
Cc: Marek Vasut <[email protected]>
Cc: Eric Anholt <[email protected]>
Cc: David Lechner <[email protected]>
Cc: "Noralf Trønnes" <[email protected]>
Cc: Linus Walleij <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Noralf Trønnes <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c')
0 files changed, 0 insertions, 0 deletions
