From patchwork Sun Apr 14 16:36:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13629110 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5E828C001CC for ; Sun, 14 Apr 2024 16:38:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9665F89CFA; Sun, 14 Apr 2024 16:38:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="ZWKsnU0z"; dkim-atps=neutral Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 420D31120F3 for ; Sun, 14 Apr 2024 16:38:00 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 00C55CE09B4; Sun, 14 Apr 2024 16:37:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9138AC32783; Sun, 14 Apr 2024 16:37:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713112677; bh=jfkmf/5bR8Pn7Nt417Wdx1kiNblxSBy4jfnOmUNCNk0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZWKsnU0z0X7LJIBSdWsfkWglKQ3Y6hQ6N4u703hB8loVzvK8vdBlvkGEZkmicggra zYi9k87HU/wUadpTGg4E5y9Hvlgl7vM6EgTc0MUURqljKIUvvrTZhIh8XparKquTwA VROCAMiyqE8RpBzLa8SQXX1l+3NCdOZKpJ6ruUnQ/uGsrcUI2qnldMVYGwHmS7WzUJ sipz3lKodrK0erPw9YDeh11Yk+Xcz7i6iuw5PdTabH7jqkwFuLwqBnPaypSlStXB++ KXderH27S1d466W+7onSZhdQgB90hhkqlbjau6UtEmtW/qGrAh/kgh7GmlrvNwwkoL sq1ApYKneLFNA== From: Krzysztof Kozlowski Date: Sun, 14 Apr 2024 18:36:16 +0200 Subject: [PATCH 18/18] fbdev: omap: lcd_ams_delta: Constify lcd_ops MIME-Version: 1.0 Message-Id: <20240414-video-backlight-lcd-ops-v1-18-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=938; i=krzk@kernel.org; h=from:subject:message-id; bh=jfkmf/5bR8Pn7Nt417Wdx1kiNblxSBy4jfnOmUNCNk0=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmHAYCjHH0Cx1DCGwjeQ5m9nnsg2hCJnBhK6Mq1 fVWf+PJIyqJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZhwGAgAKCRDBN2bmhouD 13f6D/9zghLij+lmC0ML/pi92moHzAOeagWtT20rHWv7zIwh8jkggvAqmqsmai6Q75+bNS986sV ogKmNtLnpMkPFhfuJ8Woq/DMF3hUNGs3KrMZAflCff/Play1FATCi1xMxdI894OomgNJNmLcbN2 +iaqYMm/cnyfQd83jrsuX9cjkD1MO+upTIygA6ClXTaHbKLziQ0dzQcFhAjZOmDfW6vDHohzCU/ vInc34ipNfYbw+qkeYWtbwm/tdfEEFAhpwS8D5pq0AaMlrVGYrAsB+C58lrU/aj3sz1jnZOTwPx nOrFBdSmiz08v+eX74Dot8/+uLE+/DWcrocEOHCc4EBPVULolt7u0q8Zsc8JAUsQcjqc8VNiRG7 MncqHSrwGPiT+E2GsDK3KWNzChoceOvW91EPWTBg8OG+CBErnyrv+QXpJX6Nn0yP1Gfz+cR5SIW BvOWYZXFM/Pympaqrh5EXydi1qBGaxKyc1REALSG3a3cUmIPieyICtwOTvfrSehghsBCkcX3Dtk 46IcVS6CS2FVMKpeE71ZXjfrB/jwnrqWYtMsh0qHJQ0P6kFgQSoglazclEIr2Gxrkc21Ozaa6bz PJk/1g9MhmqfhXzHLacAmzYumlsV+XINjIuHDG2Fj+SNYcK/A1tP7JCHwBMrAjvJP0EN1aeKbDE gNAgVkhlzyAFAng== X-Developer-Key: i=krzk@kernel.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" '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/omap/lcd_ams_delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap/lcd_ams_delta.c b/drivers/video/fbdev/omap/lcd_ams_delta.c index 6f860c814d2c..97e2b71b64d7 100644 --- a/drivers/video/fbdev/omap/lcd_ams_delta.c +++ b/drivers/video/fbdev/omap/lcd_ams_delta.c @@ -76,7 +76,7 @@ static int ams_delta_lcd_get_contrast(struct lcd_device *dev) return ams_delta_lcd & AMS_DELTA_MAX_CONTRAST; } -static struct lcd_ops ams_delta_lcd_ops = { +static const struct lcd_ops ams_delta_lcd_ops = { .get_power = ams_delta_lcd_get_power, .set_power = ams_delta_lcd_set_power, .get_contrast = ams_delta_lcd_get_contrast,