From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jani Nikula Date: Wed, 27 Nov 2019 16:32:07 +0000 Subject: [PATCH 11/13] HID: picoLCD: constify fb ops Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: jani.nikula@intel.com, intel-gfx@lists.freedesktop.org, =?UTF-8?q?Bruno=20Pr=C3=A9mont?= , linux-input@vger.kernel.org Now that the fbops member of struct fb_info is const, we can star making the ops const as well. Cc: Bruno Pr=C3=A9mont Cc: linux-input@vger.kernel.org Signed-off-by: Jani Nikula --- drivers/hid/hid-picolcd_fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hid/hid-picolcd_fb.c b/drivers/hid/hid-picolcd_fb.c index e162a668fb7e..a549c42e8c90 100644 --- a/drivers/hid/hid-picolcd_fb.c +++ b/drivers/hid/hid-picolcd_fb.c @@ -417,8 +417,7 @@ static int picolcd_set_par(struct fb_info *info) return 0; } =20 -/* Note this can't be const because of struct fb_info definition */ -static struct fb_ops picolcdfb_ops =3D { +static const struct fb_ops picolcdfb_ops =3D { .owner =3D THIS_MODULE, .fb_destroy =3D picolcd_fb_destroy, .fb_read =3D fb_sys_read, --=20 2.20.1