Maxime Ripard
ba5c164946
drm: Rename plane atomic_check state names
Most drivers call the argument to the plane atomic_check hook simply
state, which is going to conflict with the global atomic state in a
later rework. Let's rename it to new_plane_state (or new_state depending
on the convention used in the driver).
This was done using the coccinelle script below, and built tested:
@ plane_atomic_func @
identifier helpers;
identifier func;
@@
static const struct drm_plane_helper_funcs helpers = {
.atomic_check = func,
};
@ has_old_state @
identifier plane_atomic_func.func;
identifier plane;
expression e;
symbol old_state;
symbol state;
@@
func(struct drm_plane *plane, struct drm_plane_state *state)
{
...
struct drm_plane_state *old_state = e;
...
}
@ depends on has_old_state @
identifier plane_atomic_func.func;
identifier plane;
symbol old_state;
@@
func(struct drm_plane *plane,
- struct drm_plane_state *state
+ struct drm_plane_state *new_state
)
{
<+...
- state
+ new_state
...+>
}
@ has_state @
identifier plane_atomic_func.func;
identifier plane;
symbol state;
@@
func(struct drm_plane *plane, struct drm_plane_state *state)
{
...
}
@ depends on has_state @
identifier plane_atomic_func.func;
identifier plane;
symbol old_state;
@@
func(struct drm_plane *plane,
- struct drm_plane_state *state
+ struct drm_plane_state *new_plane_state
)
{
<+...
- state
+ new_plane_state
...+>
}
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210219120032.260676-2-maxime@cerno.tech
2021-02-24 20:26:55 +01:00
..
2020-12-05 08:19:15 -08:00
2021-02-24 20:26:55 +01:00
2020-12-03 08:51:40 -08:00
2020-11-29 10:54:08 -08:00
2020-07-31 06:46:16 -07:00
2020-07-31 06:46:16 -07:00
2020-12-05 08:25:52 -08:00
2020-11-04 08:26:26 -08:00
2021-02-23 08:54:22 +01:00
2020-11-21 09:50:24 -08:00
2020-03-18 17:53:28 +01:00
2020-12-10 09:42:47 +10:00
2020-12-10 09:42:47 +10:00
2020-05-19 22:31:33 +01:00
2020-11-04 16:00:55 -08:00
2020-11-10 10:38:57 +01:00
2020-11-29 10:36:53 -08:00
2020-11-04 16:00:56 -08:00
2020-09-22 08:28:15 -07:00
2020-12-15 11:05:43 +01:00
2020-12-10 09:42:47 +10:00
2020-09-12 09:59:58 -07:00
2020-11-21 09:50:23 -08:00
2020-11-29 11:03:04 -08:00
2020-09-29 10:18:49 +10:00
2020-12-08 15:23:37 +00:00
2020-11-01 10:13:32 -08:00
2020-09-12 10:48:32 -07:00
2020-11-04 16:00:56 -08:00
2020-11-04 16:00:56 -08:00
2020-11-04 16:00:56 -08:00
2020-09-12 10:45:56 -07:00