Gabriel Krisman Bertazi
e4563f6ba7
drm: Rely on mode_config data for fb_helper initialization
...
Instead of receiving the num_crts as a parameter, we can read it
directly from the mode_config structure. I audited the drivers that
invoke this helper and I believe all of them initialize the mode_config
struct accordingly, prior to calling the fb_helper.
I used the following coccinelle hack to make this transformation, except
for the function headers and comment updates. The first and second
rules are split because I couldn't find a way to remove the unused
temporary variables at the same time I removed the parameter.
// <smpl>
@r@
expression A,B,D,E;
identifier C;
@@
(
- drm_fb_helper_init(A,B,C,D)
+ drm_fb_helper_init(A,B,D)
|
- drm_fbdev_cma_init_with_funcs(A,B,C,D,E)
+ drm_fbdev_cma_init_with_funcs(A,B,D,E)
|
- drm_fbdev_cma_init(A,B,C,D)
+ drm_fbdev_cma_init(A,B,D)
)
@@
expression A,B,C,D,E;
@@
(
- drm_fb_helper_init(A,B,C,D)
+ drm_fb_helper_init(A,B,D)
|
- drm_fbdev_cma_init_with_funcs(A,B,C,D,E)
+ drm_fbdev_cma_init_with_funcs(A,B,D,E)
|
- drm_fbdev_cma_init(A,B,C,D)
+ drm_fbdev_cma_init(A,B,D)
)
@@
identifier r.C;
type T;
expression V;
@@
- T C;
<...
when != C
- C = V;
...>
// </smpl>
Changes since v1:
- Rebased on top of the tip of drm-misc-next.
- Remove mention to sti since a proper fix got merged.
Suggested-by: Daniel Vetter <daniel.vetter@intel.com >
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk >
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
Link: http://patchwork.freedesktop.org/patch/msgid/20170202162640.27261-1-krisman@collabora.co.uk
2017-02-02 19:12:00 +01:00
..
2016-11-30 14:18:51 +10:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:12:39 -05:00
2015-06-03 21:03:15 -04:00
2016-09-19 20:58:35 +03:00
2016-09-19 20:58:35 +03:00
2016-09-22 10:24:16 -04:00
2016-02-27 22:52:40 +02:00
2016-10-25 14:38:56 -04:00
2016-10-25 14:38:56 -04:00
2016-11-29 09:23:39 -05:00
2016-10-25 14:40:39 +02:00
2017-01-27 12:20:42 -05:00
2016-11-11 10:20:04 -05:00
2017-01-27 11:12:46 -05:00
2016-11-30 14:18:51 +10:00
2015-06-03 21:03:15 -04:00
2017-01-27 11:13:29 -05:00
2016-10-28 11:33:52 +10:00
2017-02-01 08:39:35 +10:00
2017-01-27 11:13:31 -05:00
2016-10-25 14:38:41 -04:00
2017-01-27 11:12:53 -05:00
2017-02-01 08:39:35 +10:00
2015-08-17 16:50:21 -04:00
2015-06-03 21:03:15 -04:00
2017-02-02 19:12:00 +01:00
2016-11-11 10:20:58 -05:00
2016-10-25 14:38:13 -04:00
2016-08-19 12:30:58 -04:00
2017-01-27 11:13:18 -05:00
2017-01-27 11:13:32 -05:00
2016-10-25 14:38:58 -04:00
2017-01-27 11:12:40 -05:00
2017-01-27 11:12:39 -05:00
2016-09-27 13:00:52 -04:00
2017-01-27 12:20:37 -05:00
2016-09-14 15:10:27 -04:00
2015-08-17 16:50:09 -04:00
2015-06-03 21:03:15 -04:00
2016-12-18 14:18:12 +01:00
2016-11-23 15:08:43 -05:00
2017-01-27 12:20:37 -05:00
2017-01-27 11:13:25 -05:00
2016-10-25 14:38:26 -04:00
2017-01-27 11:13:31 -05:00
2017-01-27 12:20:36 -05:00
2017-01-27 11:13:17 -05:00
2016-09-14 15:10:37 -04:00
2015-06-03 21:03:15 -04:00
2017-01-27 11:13:27 -05:00
2017-01-27 11:13:07 -05:00
2017-01-27 11:12:58 -05:00
2016-10-25 14:38:45 -04:00
2016-11-11 10:20:04 -05:00
2017-01-27 11:13:37 -05:00
2017-01-27 11:13:21 -05:00
2016-11-11 10:21:07 -05:00
2016-10-25 14:40:39 +02:00
2016-10-28 11:33:52 +10:00
2016-10-25 14:40:39 +02:00
2015-06-03 21:03:15 -04:00
2017-01-27 11:12:39 -05:00
2017-01-27 12:20:38 -05:00
2017-01-27 12:20:33 -05:00
2016-10-25 14:38:23 -04:00
2016-10-25 14:38:23 -04:00
2017-01-27 12:20:37 -05:00
2017-01-27 11:12:38 -05:00
2017-01-27 12:20:37 -05:00
2016-10-28 11:33:52 +10:00
2017-01-27 11:13:26 -05:00
2017-01-27 11:13:33 -05:00
2017-01-27 12:20:45 -05:00
2017-01-27 12:20:45 -05:00
2016-12-30 12:08:28 +01:00
2017-02-01 08:39:35 +10:00
2015-10-14 16:16:24 -04:00
2016-05-11 12:31:20 -04:00
2016-10-25 14:38:58 -04:00
2016-05-04 20:23:53 -04:00
2016-08-08 13:28:39 -04:00
2015-06-03 21:03:15 -04:00
2017-01-27 11:12:39 -05:00
2015-06-03 21:03:15 -04:00
2016-09-14 15:10:37 -04:00
2016-07-14 16:39:35 -04:00
2017-01-27 11:13:33 -05:00
2016-07-07 14:50:49 -04:00
2015-06-03 21:03:17 -04:00
2015-06-03 21:03:51 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:37 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:13:05 -05:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:08 -04:00
2015-06-03 21:03:17 -04:00
2017-01-27 12:20:41 -05:00
2015-06-03 21:03:17 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:00:42 +10:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:00:42 +10:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:00:42 +10:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:00:42 +10:00
2016-10-25 14:38:45 -04:00
2016-12-25 17:21:22 +01:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:41 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:37 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:37 -05:00
2016-10-25 14:38:45 -04:00
2017-01-12 17:39:34 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:44 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:45 -05:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2015-09-02 12:21:35 -04:00
2016-10-04 11:15:59 -04:00
2017-01-27 12:20:44 -05:00
2015-06-03 21:03:17 -04:00
2015-06-03 21:03:17 -04:00
2017-01-27 11:13:24 -05:00
2017-01-27 11:13:24 -05:00
2017-01-27 11:13:24 -05:00
2016-10-25 14:38:06 -04:00
2016-07-15 12:33:31 -04:00
2016-08-31 15:21:09 -04:00
2017-01-27 12:20:37 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:37 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:41 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:41 -05:00
2016-08-31 15:21:09 -04:00
2016-11-23 15:08:42 -05:00
2017-01-27 12:20:41 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:41 -05:00
2017-01-27 12:20:41 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:41 -05:00
2016-09-28 16:13:17 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2015-09-02 12:21:35 -04:00
2017-01-17 15:25:26 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:13:10 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:13:10 -05:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:13:15 -05:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:12:43 -05:00
2017-01-27 11:13:40 -05:00
2017-01-27 11:13:33 -05:00
2017-01-27 11:13:03 -05:00