Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1706686 > unrolled thread

[PATCH] staging: vboxvideo: make drm_fb_helper_funcs const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-08 17:50 +0200
Last post2017-08-08 17:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: vboxvideo: make drm_fb_helper_funcs const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-08 17:50 +0200

#1706686 — [PATCH] staging: vboxvideo: make drm_fb_helper_funcs const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-08 17:50 +0200
Subject[PATCH] staging: vboxvideo: make drm_fb_helper_funcs const
Message-ID<uceVA-21I-31@gated-at.bofh.it>
Make the structure const as it is only passed to the function
drm_fb_helper_prepare and the corresponding argument is of type
const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/staging/vboxvideo/vbox_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vboxvideo/vbox_fb.c b/drivers/staging/vboxvideo/vbox_fb.c
index bf66358..c386039 100644
--- a/drivers/staging/vboxvideo/vbox_fb.c
+++ b/drivers/staging/vboxvideo/vbox_fb.c
@@ -317,7 +317,7 @@ static int vboxfb_create(struct drm_fb_helper *helper,
 	return 0;
 }
 
-static struct drm_fb_helper_funcs vbox_fb_helper_funcs = {
+static const struct drm_fb_helper_funcs vbox_fb_helper_funcs = {
 	.fb_probe = vboxfb_create,
 };
 
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web