From patchwork Sun Apr 14 16:36:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13629096 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 6CCB7C04FFE for ; Sun, 14 Apr 2024 16:36:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A363B1120D8; Sun, 14 Apr 2024 16:36:52 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="h86mwFjK"; 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 533401120DC for ; Sun, 14 Apr 2024 16:36:47 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 9993FCE0990; Sun, 14 Apr 2024 16:36:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A06E5C32783; Sun, 14 Apr 2024 16:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713112604; bh=88cr00ugVAy6jT3uweB13pEg01tQBkHxONaOOrvSJr4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=h86mwFjKHmZcRJ9ZSaE72bZDjmGP52SPWemcrGuyOPu4blsNFLlbsilJdmbv7IS+L AqJj+Et8N6sDUgvX751ehcr8xD594u7A2K5d5FAT36+g1OvzzquTPpY0B89H4D3mgt kBOmhsKJDlAAi6TglfS8tnR5rFtTPzVe1cexRlT7pZI1m1nSpvznRwqbXIBtxRRvjr Ei6K/P891ntD9fS03jCK1x2xBnDpt0yfRjfxWy0RvuP4o9uIzazEcsMpzi8NOzF3eF fgVaYp0Ge1EgDGabx+yNXuhaTVsaD+z1T65hbOGBOOKZ+BMxBLCtXcwnMR51EGUBj+ V/UE8uJGVbIsw== From: Krzysztof Kozlowski Date: Sun, 14 Apr 2024 18:36:02 +0200 Subject: [PATCH 04/18] backlight: hx8357: Constify lcd_ops MIME-Version: 1.0 Message-Id: <20240414-video-backlight-lcd-ops-v1-4-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=742; i=krzk@kernel.org; h=from:subject:message-id; bh=88cr00ugVAy6jT3uweB13pEg01tQBkHxONaOOrvSJr4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmHAX2M38hZGStBZtwBXfjnULAK0J4hB8k+kZwy ZsNXzIQjE+JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZhwF9gAKCRDBN2bmhouD 1236EACUAKGm9Y/BnFg+tXVFYTF6OHukRnl8sbwA5jbZqziu8R90NGD9vH5/fsmWeXKvHarT2bB RNv0WZNTrP/TjXEEhQ0/nU/Pc0GF0GMn1UiYaPyPUmGFfJ4+WAZY4bNHtYuLm172FWkTAiTpvDZ zS76L2OEwVRT7pYaxzu/0d0zm7hCznV2WONMZW0UDJbnaoAxg7/y8qZdrhVbRU5Un+a4hq3aqeu U78hYryAXf3odENjH77BfUcFixxb0Fyp/UW4cvUtX2HmOqpNI18jhe6FpPFEB8B3X4/tI8oDQtE bw4HWSqgCXQD6xU64UOkwa+lUSG3ToBhMqiPQBMP7TGQnSLBfEmijhhhFAsVGpxK3rlOSMS0PGY mI2/y7ss0GH0W230fRUkqrHH3OLZRRS/6bi/c0tw7TnE9M65q3j7ttx0jiniRgXfcsVe1X0AEIZ ts4i7aimrPmUbLLY8kqMV6d4E/rmNpuKWyKuP8Sp32tU2Dg1MRr+23Bvngr5e4jKYeitwwudFvq 2SNxdbwfSvjbGIzJWvPugy0VFRHuGEDP64/odcsJSvFPGDzD9BfI8ybMB5xaa3SoxEhb0pmXRIR C3pIG2xbvOZwnQePbIsOEfI6X3NZqYFnFfcv1LYO90FOETOwmlyw2XpUTN0iXt6rht/J4z1UQug k1627LcFZ0WbtQQ== 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 Reviewed-by: Daniel Thompson --- drivers/video/backlight/hx8357.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index 339d9128fbde..cdd7b7686723 100644 --- a/drivers/video/backlight/hx8357.c +++ b/drivers/video/backlight/hx8357.c @@ -559,7 +559,7 @@ static int hx8357_get_power(struct lcd_device *lcdev) return lcd->state; } -static struct lcd_ops hx8357_ops = { +static const struct lcd_ops hx8357_ops = { .set_power = hx8357_set_power, .get_power = hx8357_get_power, };