diff options
| author | Bhumika Goyal <[email protected]> | 2017-08-08 15:05:51 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2017-08-09 16:39:34 +0000 |
| commit | a5cb37d800a49922fdd80a20384b55b4a6b7bece (patch) | |
| tree | 661658d1df24b6c86a9be70aa9fd8558caa7d5ce /drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | |
| parent | drm/virtio: make drm_fb_helper_funcs const (diff) | |
| download | kernel-a5cb37d800a49922fdd80a20384b55b4a6b7bece.tar.gz kernel-a5cb37d800a49922fdd80a20384b55b4a6b7bece.zip | |
drm: make drm_mode_config_func const
Make these structures const as they are only stored in the funcs field
of a drm_mode_config structure which is of type const.
Done using Coccinelle:
@match disable optional_qualifier@
identifier s;
@@
static struct drm_mode_config_funcs s = {...};
@ref@
position p;
identifier match.s;
@@
s@p
@good1@
identifier y;
position ref.p;
identifier match.s;
@@
struct drm_mode_config y = {...,.funcs=&s@p,...};
@good2@
struct drm_mode_config y;
identifier match.s;
position ref.p;
@@
y.funcs = &s@p
@bad depends on !good1 && !good2@
position ref.p;
identifier match.s;
@@
s@p
@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct drm_mode_config_funcs s;
Signed-off-by: Bhumika Goyal <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c')
0 files changed, 0 insertions, 0 deletions
