From patchwork Sun Apr 14 16:36:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13629128 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3E00135418; Sun, 14 Apr 2024 16:37:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713112672; cv=none; b=WEP9UIU3chnMbjMkirDzmIr3el2tR3TZU7u8Bm+QZw0w9NMryhe1HRl9hOXE69gJg8uH3bvBIV2gs9zr09ioYutePEsMGKx89f4Hq9GgqXPuEckygOTMn3T4l7y7h+sPXln1EH7If3r9akUBczmQd/Ge3xxabqvFnehMF2lRI90= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713112672; c=relaxed/simple; bh=pXU6zSARGVDugu8KFvOh/l5OML46BikLSb/4YHqGjAA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YgjDtGz1xwRoViGg1UNhwOHdqzHqgH16lDcAiPcSLRi2hI0IfZjUeyFe3MannA+89V9JvtMD7a0ul3ehXGboYajxaYa3gJ0opIIZez1dwn+t2zCUYVk0KdUEmXU/mBu9jpWK+nKeiydJNeAXJoQrsKxJ0zjhITu+s0DJib8vrVQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CUlqEheB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CUlqEheB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 429F3C2BD10; Sun, 14 Apr 2024 16:37:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713112672; bh=pXU6zSARGVDugu8KFvOh/l5OML46BikLSb/4YHqGjAA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CUlqEheBDuFp/3X8XdJLYUSu+kuT7GqkJO7KgFYaZAL+b93nqY11dSL3q1qPzbOjk 26+fGWV75wo2zwytdGcB4Qy/CrSVxuFE0XsNCa5v+o9slldMj35EeSKhmWrjLOe2L5 88Wmsxq7Y/71/uj0Y6IGFF6gDdoSqbzoanMMWGgeSt/rhTct/pZe33KJib6HU4gzRz tFOF93W838Pubf9YLRLoa2tJ36VVxe8ngG8j5Uw/i3OdLqrmKD+C3Ap/4R+5W09OKS BQzH273iba9xq2++WTabNaeNgBG2IrKBZf2EMvMMG7RnkbG7XScsDSBFNYjEFluzMb pIL1636ygPHPA== From: Krzysztof Kozlowski Date: Sun, 14 Apr 2024 18:36:15 +0200 Subject: [PATCH 17/18] fbdev: imx: Constify lcd_ops Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240414-video-backlight-lcd-ops-v1-17-9b37fcbf546a@kernel.org> References: <20240414-video-backlight-lcd-ops-v1-0-9b37fcbf546a@kernel.org> In-Reply-To: <20240414-video-backlight-lcd-ops-v1-0-9b37fcbf546a@kernel.org> To: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , =?utf-8?q?Bruno_Pr=C3=A9mont?= , Jiri Kosina , Benjamin Tissoires , Alexander Shiyan , Sascha Hauer , Pengutronix Kernel Team , Shawn Guo , Fabio Estevam Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-omap@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=829; i=krzk@kernel.org; h=from:subject:message-id; bh=pXU6zSARGVDugu8KFvOh/l5OML46BikLSb/4YHqGjAA=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmHAYB/NvPvWOPJzkmhvH02TGCUdXNwXQJNIBfx KPbcEVlT0WJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZhwGAQAKCRDBN2bmhouD 18apD/47c2Ifg0paDFmM9BvBDW+RwXsN+MCo8yNwr9ziNbmoCZOlXwVdWZwzhdX0zqOWsOq9gyo WgqB782wrilmuqSIKOFnodemx5UVNjmtrH2Ena6GLIrz3m3a8v/LIXznSBMVY2Cb07B+jfnEca+ iHHY7T7rvq+UVbNIEz63PrUmbXaAP77kKSnsTaPcSaaTkPbXTWyghkjlW/lZDy4E1gTq8CwWzOo mJRaDlhPFsCS/kKmzdbRwTAvuLxJmXxTsdmbuqDWTthlELxWMmIj75rFTSsqNhxUHi+DntTsEMI sBuYYYq2kEhWb7uvSgAmZEyhjcNaT5GoejvA9QxOW4VsmIrrsflQq0tJGAL6bXfjvJHs63Dnf5q +QVxaAEEbKABcHzuN2BcNovy22DJgdwhjmine/bxI15c787VOiiuMFfW1oCkekZuFZlIJcu1wDK a6BUzont5N/1xPTffBh0GO3wP23bRIn13XR+sKiF+DQ0L7a1U4L7myxMWczmF8ZCH+7dj410uUw XcvGzdhA8cDjts7EZEpljxft+Yx7ZUdcYvG0ZGuukFW6MnTgfp1fKTfugweoFqshUIaZaOSAQZr cw+fqgFKWTDLRPaNcql0aKxLtPGv5fElVwhfAJuD7VPoKRBnfdIsH7hlzdzZZD/d1vGz8BOfPBk GD/v21lf5gh4qng== X-Developer-Key: i=krzk@kernel.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B 'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Signed-off-by: Krzysztof Kozlowski --- 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,