From patchwork Wed Apr 24 06:33:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13641316 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 53C0FC4345F for ; Wed, 24 Apr 2024 06:35:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 85D6D11384F; Wed, 24 Apr 2024 06:35:43 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="EDRLUPLc"; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8BEB311384F for ; Wed, 24 Apr 2024 06:35:42 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D640E6198D; Wed, 24 Apr 2024 06:35:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14BF5C113CE; Wed, 24 Apr 2024 06:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713940541; bh=Ur6Mwq5k3eb2nkdD2bgZyuoX+vud6tFhJdXqqhEBZ9Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EDRLUPLcJvhWuamrXZ7Di4pDIzF+AeJnYu2ysGq4H8vft7bc6ZxTS3Lid/bRCyGnt t29MYcDHwAnDGLxhDNo3u6rbJL/vuDTHjZalh1jAY5zwl658d+IXwAHiKZDG6ImjHV UkM8sOYaiVrbNtinSOCmZoUWTA2GaHP6qIfthcw/Mkm0y0wqaO0PmKdmfsr/LWz5ae GqyE+YkHxTS3KY7eFjRCTU8Gc9+kwlPTMd3FpS9IM+sJuWwF8BYgbOoX3Zom8WkZc2 De5uwhO5SnIV3mkd5/8OnSIqiWfYOpYXnY6WvmYiN3h2r6OZF+5bN2zAifmaydBagG bEiMFHlQcFtPA== From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 08:33:38 +0200 Subject: [PATCH v2 12/19] backlight: otm3225a: Constify lcd_ops MIME-Version: 1.0 Message-Id: <20240424-video-backlight-lcd-ops-v2-12-1aaa82b07bc6@kernel.org> References: <20240424-video-backlight-lcd-ops-v2-0-1aaa82b07bc6@kernel.org> In-Reply-To: <20240424-video-backlight-lcd-ops-v2-0-1aaa82b07bc6@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=817; i=krzk@kernel.org; h=from:subject:message-id; bh=Ur6Mwq5k3eb2nkdD2bgZyuoX+vud6tFhJdXqqhEBZ9Y=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmKKfo7bu7xOTYJd4xu78MNjpQFCsVQcpVt2PGe Dq2iEckJYWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZiin6AAKCRDBN2bmhouD 11G0D/wILA8oLcbvIuxXdwPcnumJjOYb2f2CCq8MT2y6iJFasyu0KdtPsxP255aifCmYSyfoStF z4ypYX9kXVhH9okSb6OEHP8G7GoI+1z9HqMiOlK9kPS4ESKUx4oIzO6YXpr8euVy1nlOa2nCjey kIdHI7NqXuYzJUk134rTKVtht1heKAWW1BCBJFYNb+/fOCY8pVnrkztX3mkj92URX0oRipAFPO2 RSaUUGLk8r7cZp/p7nPfa30ZN/GegjG0B7VWX4hUg+JDMoItwwIgmNRS4af1QSzXDhfhJ+j11eE 8qZEbVC9D58LN3fvbzVSsI0v3mOhZIVm6bmy82qhlrz6EFJKQvqrAQLcaH9X5NakxqguDVVfPtV spMXAD3V/LMxWDhWpq9cOw5MeghArD84Q+TZHwIai7h2U1GgkNN8TLjwkCTXcLRpSZ7Z/x4nixL XTpevBoY1jK3opV6LXbYAX3BkYO4pEmLPFxwQYYfMqg2KA/h+ZDeonCQHTTUVSX4rAsesqnXyRF I+5pe4v8jPoSKBUczKAmhCiRxOAEmnTkiQZAUfYjf/5j1aHjtMKvUvXfC6Sl/XqGIJTDVkfOvBF RjxcNzc+X5DZac6x00KZeQCDxeNrrqaKT3Ov+ZOE3hiLYRvdDQ35r2C/XzKlg2WrQ92r46/KY9Q t1xENOlAL4KWu6w== 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. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/otm3225a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/otm3225a.c b/drivers/video/backlight/otm3225a.c index 4568020abf3c..efe52fa08b07 100644 --- a/drivers/video/backlight/otm3225a.c +++ b/drivers/video/backlight/otm3225a.c @@ -205,7 +205,7 @@ static int otm3225a_get_power(struct lcd_device *ld) return dd->power; } -static struct lcd_ops otm3225a_ops = { +static const struct lcd_ops otm3225a_ops = { .set_power = otm3225a_set_power, .get_power = otm3225a_get_power, };