Maxime Ripard
d74252bb8f
drm: Use the state pointer directly in atomic_check
...
Now that atomic_check takes the global atomic state as a parameter, we
don't need to go through the pointer in the CRTC state.
This was done using the following coccinelle script:
@ crtc_atomic_func @
identifier helpers;
identifier func;
@@
static struct drm_crtc_helper_funcs helpers = {
...,
.atomic_check = func,
...,
};
@@
identifier crtc_atomic_func.func;
identifier crtc, state;
@@
func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
...
- struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
... when != crtc_state
- crtc_state->state
+ state
...
}
@@
struct drm_crtc_state *crtc_state;
identifier crtc_atomic_func.func;
identifier crtc, state;
@@
func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
...
- crtc_state->state
+ state
...
}
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com >
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20201102133834.1176740-3-maxime@cerno.tech
2020-11-03 12:20:09 +01:00
..
2020-11-02 12:34:49 +01:00
2020-10-09 09:55:59 +02:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-10-12 15:14:33 +10:30
2020-11-02 14:04:52 +01:00
2020-11-02 12:37:49 +01:00
2020-08-11 11:58:31 +10:00
2020-11-02 11:17:54 +01:00
2020-11-02 11:17:54 +01:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-10-05 15:52:37 +02:00
2020-11-02 12:37:49 +01:00
2020-08-06 14:27:31 -07:00
2020-09-11 10:54:17 +02:00
2020-11-02 14:42:57 +01:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-09-10 08:18:35 +02:00
2020-10-17 09:32:56 +02:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-08-27 11:17:52 +02:00
2020-11-02 12:37:49 +01:00
2020-11-03 12:20:09 +01:00
2020-11-03 12:20:09 +01:00
2020-11-03 12:20:09 +01:00
2020-10-23 10:05:17 +02:00
2020-11-03 09:16:24 +01:00
2020-09-25 09:21:14 +02:00
2020-11-02 12:37:49 +01:00
2020-04-03 17:11:41 +02:00
2020-11-02 11:17:54 +01:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-08-23 17:36:59 -05:00
2020-11-02 11:17:54 +01:00
2020-09-01 13:02:33 +05:30
2020-06-10 09:05:18 +02:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-11-03 12:20:09 +01:00
2020-06-24 09:17:34 +02:00
2020-11-02 11:17:54 +01:00
2020-10-17 09:33:01 +02:00
2020-06-10 10:17:21 +02:00
2020-10-26 11:43:31 +01:00
2020-11-02 12:37:49 +01:00
2020-11-03 12:20:09 +01:00
2020-09-25 09:21:30 +02:00
2020-10-17 10:10:24 +02:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-11-02 14:42:57 +01:00
2020-11-02 11:17:54 +01:00
2020-11-03 12:20:09 +01:00
2020-11-02 12:37:49 +01:00
2020-11-02 12:37:49 +01:00
2020-07-02 20:25:51 +02:00
2020-07-02 15:26:00 +02:00
2020-10-08 11:30:03 +02:00
2020-06-15 14:49:50 +01:00
2020-05-14 02:10:52 +03:00
2020-11-02 14:04:53 +01:00
2020-06-23 19:53:27 +02:00
2020-08-23 17:36:59 -05:00
2020-09-10 08:17:48 +02:00
2020-05-27 14:31:42 +03:00
2020-05-26 13:31:01 +02:00
2020-08-17 13:41:50 -04:00
2020-10-22 13:49:14 +02:00
2020-07-13 13:29:20 -04:00
2020-07-02 15:26:00 +02:00
2020-03-18 17:53:28 +01:00
2020-08-25 11:00:02 +02:00
2020-09-01 09:45:44 +02:00
2020-06-25 15:47:14 -07:00
2020-04-03 17:11:41 +02:00
2020-10-15 13:58:54 -04:00
2020-10-27 11:20:36 +01:00
2020-11-02 11:17:54 +01:00
2020-09-21 10:45:08 +02:00
2020-11-02 11:17:54 +01:00
2020-06-19 09:20:21 +02:00
2020-04-21 08:15:03 +02:00
2020-11-02 11:17:54 +01:00
2020-07-02 15:26:00 +02:00
2020-05-26 13:33:08 +02:00
2020-10-20 20:51:42 +01:00
2020-09-09 11:45:18 +02:00
2020-11-02 11:17:54 +01:00
2020-05-19 22:31:31 +01:00
2020-11-02 11:17:54 +01:00
2020-09-08 10:43:30 +02:00
2020-10-29 15:57:47 +01:00
2020-11-02 11:17:54 +01:00
2020-05-05 14:01:53 -04:00
2020-10-21 18:05:11 +02:00
2020-07-02 15:26:00 +02:00
2020-10-21 18:05:11 +02:00
2020-05-29 12:58:11 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-07-10 20:21:45 +02:00
2020-06-23 15:46:40 +02:00
2020-07-02 15:26:00 +02:00
2020-08-17 13:41:50 -04:00
2020-08-23 17:36:59 -05:00
2020-08-11 11:58:31 +10:00
2020-08-04 11:45:23 +02:00
2020-08-16 17:12:18 +02:00
2020-10-21 18:05:11 +02:00
2020-08-25 11:00:02 +02:00
2020-11-02 14:42:57 +01:00
2020-07-31 14:42:37 +10:00
2020-06-02 10:59:11 -07:00
2020-11-03 12:20:09 +01:00
2020-08-02 15:22:31 +02:00
2020-06-03 10:24:23 +02:00
2020-08-06 11:55:43 -07:00
2020-09-14 22:37:31 +03:00
2020-06-24 15:45:51 +10:00
2020-05-20 20:03:45 +02:00
2020-10-29 15:57:57 +01:00
2020-09-09 16:39:48 +02:00