[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220519172503.10821-1-me@wantyapps.xyz>
Date: Thu, 19 May 2022 20:25:01 +0300
From: Uri Arev <me@...tyapps.xyz>
To: unlisted-recipients:; (no To-header on input)
Cc: Uri Arev <me@...tyapps.xyz>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Len Baker <len.baker@....com>, Sam Ravnborg <sam@...nborg.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Srivathsa Dara <srivathsa729.8@...il.com>,
Noralf Trønnes <noralf@...nnes.org>,
dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: fbtft: fix checkpatch.pl struct should normally be const
This simple patch fixes a checkpatch.pl warning in `fbtft/fbtft-core.c`.
Reported by Checkpatch:
WARNING: struct fb_ops should normally be const
Signed-off-by: Uri Arev <me@...tyapps.xyz>
---
drivers/staging/fbtft/fbtft-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index 9c4d797e7ae4..9ff2b8230caf 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -539,7 +539,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
{
struct fb_info *info;
struct fbtft_par *par;
- struct fb_ops *fbops = NULL;
+ const struct fb_ops *fbops = NULL;
struct fb_deferred_io *fbdefio = NULL;
u8 *vmem = NULL;
void *txbuf = NULL;
@@ -614,7 +614,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
if (!vmem)
goto alloc_fail;
- fbops = devm_kzalloc(dev, sizeof(struct fb_ops), GFP_KERNEL);
+ const fbops = devm_kzalloc(dev, sizeof(struct fb_ops), GFP_KERNEL);
if (!fbops)
goto alloc_fail;
--
2.36.1
Powered by blists - more mailing lists