From: Peng Fan <peng.fan@nxp.com>
To: "Krzysztof Kozlowski" <krzk@kernel.org>,
"Lee Jones" <lee@kernel.org>,
"Daniel Thompson" <daniel.thompson@linaro.org>,
"Jingoo Han" <jingoohan1@gmail.com>,
"Helge Deller" <deller@gmx.de>,
"Bruno Prémont" <bonbons@linux-vserver.org>,
"Jiri Kosina" <jikos@kernel.org>,
"Benjamin Tissoires" <bentiss@kernel.org>,
"Alexander Shiyan" <shc_work@mail.ru>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Shawn Guo" <shawnguo@kernel.org>,
"Fabio Estevam" <festevam@gmail.com>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"imx@lists.linux.dev" <imx@lists.linux.dev>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>
Subject: RE: [PATCH v2 17/19] fbdev: imx: Constify lcd_ops
Date: Wed, 24 Apr 2024 07:05:59 +0000 [thread overview]
Message-ID: <DU0PR04MB941723CDA3A07046823A8A5788102@DU0PR04MB9417.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20240424-video-backlight-lcd-ops-v2-17-1aaa82b07bc6@kernel.org>
> Subject: [PATCH v2 17/19] fbdev: imx: Constify lcd_ops
>
> 'struct lcd_ops' is not modified by core backlight code, so it can be made
> const for increased code safety.
>
> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
> ---
>
> Depends on the first patch in the series.
> ---
> drivers/video/fbdev/imxfb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c index
> a4dbc72f93c3..4ebfe9b9df60 100644
> --- a/drivers/video/fbdev/imxfb.c
> +++ b/drivers/video/fbdev/imxfb.c
> @@ -857,7 +857,7 @@ static int imxfb_lcd_set_power(struct lcd_device
> *lcddev, int power)
> return 0;
> }
>
> -static struct lcd_ops imxfb_lcd_ops = {
> +static const struct lcd_ops imxfb_lcd_ops = {
> .check_fb = imxfb_lcd_check_fb,
> .get_contrast = imxfb_lcd_get_contrast,
> .set_contrast = imxfb_lcd_set_contrast,
>
> --
> 2.43.0
>
next prev parent reply other threads:[~2024-04-24 7:06 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 6:33 [PATCH v2 00/19] backlight: Constify lcd_ops Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 01/19] " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 02/19] backlight: ams369fg06: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 03/19] backlight: corgi_lcd: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 04/19] backlight: hx8357: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 05/19] backlight: ili922x: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 06/19] backlight: ili9320: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 07/19] backlight: jornada720_lcd: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 08/19] backlight: l4f00242t03: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 09/19] backlight: lms283gf05: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 10/19] backlight: lms501kf03: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 11/19] backlight: ltv350qv: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 12/19] backlight: otm3225a: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 13/19] backlight: platform_lcd: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 14/19] backlight: tdo24m: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 15/19] HID: picoLCD: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 16/19] fbdev: clps711x: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 17/19] fbdev: imx: " Krzysztof Kozlowski
2024-04-24 7:05 ` Peng Fan [this message]
2024-04-24 6:33 ` [PATCH v2 18/19] fbdev: omap: lcd_ams_delta: " Krzysztof Kozlowski
2024-04-24 6:33 ` [PATCH v2 19/19] const_structs.checkpatch: add lcd_ops Krzysztof Kozlowski
2024-04-24 10:08 ` Daniel Thompson
2024-05-02 7:21 ` Lee Jones
2024-05-02 7:22 ` [PATCH v2 00/19] backlight: Constify lcd_ops Lee Jones
2024-05-02 7:47 ` Krzysztof Kozlowski
2024-05-03 9:41 ` Lee Jones
2024-05-03 9:43 ` Lee Jones
2024-05-03 9:55 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DU0PR04MB941723CDA3A07046823A8A5788102@DU0PR04MB9417.eurprd04.prod.outlook.com \
--to=peng.fan@nxp.com \
--cc=bentiss@kernel.org \
--cc=bonbons@linux-vserver.org \
--cc=daniel.thompson@linaro.org \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=jikos@kernel.org \
--cc=jingoohan1@gmail.com \
--cc=kernel@pengutronix.de \
--cc=krzk@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shc_work@mail.ru \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).