Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp229196lqd; Tue, 23 Apr 2024 23:38:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeoMi1bxLJs3Q4K8hU5kYg2nDrd/mKL3yszsuyEK9fJdEBEVTpmj5HoFRjjDehzS2Av2ESE+AJnFIAlk7qyt5LP2O4Wsz/ffw460HaJQ== X-Google-Smtp-Source: AGHT+IFl/WGLsfRaN0X+ISlIfWj4O+h6RfS2KtbdcOwbReZUB1Al3w+b9GvsaZuwyy22bCKL/FrX X-Received: by 2002:a05:6a00:1490:b0:6ea:ed70:46b4 with SMTP id v16-20020a056a00149000b006eaed7046b4mr2246101pfu.29.1713940734397; Tue, 23 Apr 2024 23:38:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713940734; cv=pass; d=google.com; s=arc-20160816; b=CSckzNoknOvqNW16eUcs6lk6Uj1vlxoZxfYli1Zo+vMqW5qrUfbepJCZo9BuOWy0ib DIwYLgZTXknm/RrBPC5Ciyw3+ewjBPWIIe+IptkFXpbNpaSu7R8L8EJvwT4NFFVpRhGw 3EvhapDHX/x4ZPDxR9e0oB0vetsUmHQ7wchv8pS2NnbX0aMOyyRePkQFfTFvY9VK42l1 vZvFSBdM/YHi1agYVSsu++XHfY6xQ+rSNxeb5GkiFMW8RhwriUeJ7QOKr395lMPqkRER bsNvHe1+suG+Xyj0SUyoswYr3gRKb6sjt88b7cC08t50Kvf5LsdHQGXtJ5OCRA2Sy6eU qgSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=8tVI1xOUKB8spFjQGfupcuNTr0l8NPtY6i+ZaVoLgTQ=; fh=+ojXJv0/4efHC+ZKQpCuefisvk/g778RKYDrPGgHhHg=; b=QZexl08XDKDyxzOlJF3LqMTc6zkoYGsSzcEM4LoHrdETQ0Ql+Hs1XA/bc51Qx6WGv8 NsDkZ9GzjKy2Ge55K5SICDdzQ0UQ2GZ1JEskUZ7VCBd/WuEQrUb0FICpi38seub6UB+W t9kDRCAXhnBQNUfl/knjzuf7XXEPCkm7WK1XOCuJChCcyu5x8a97PCLMlKVMTnGqi2+h 30H4pthDfNIrmQntVRBRklhgNpU033XBsMFLz7RxO1Y0s/m0gM4BdErE/6BE6b/bJU+L DA4aaw9XpJq5YkoUuGesxeD0v0xxC04hUdBl/MgjVtpC3BCBY8uX6vFqiX/kroINPVN4 TG6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o+zYdMiu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j65-20020a638b44000000b005dc957fe128si1598400pge.74.2024.04.23.23.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 23:38:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o+zYdMiu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 01F0DB22F88 for ; Wed, 24 Apr 2024 06:36:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A31A158A26; Wed, 24 Apr 2024 06:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o+zYdMiu" 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 A466A157E76; Wed, 24 Apr 2024 06:35:18 +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=1713940518; cv=none; b=sIutf3Vw4850zM7IRJlF2PSzTKkKtQ8c2TBG1U65lRCj2l7B6pqyFX6EldA2O8pq/1hWdFbNeBjEw8xnMaZWdW0PMEZp+GIUZ1x4mtas4DKip6NQ1JLJNGTDrg3VXLTW1BDQjJLOP4/pe7ecIwALhgqGzK/XCtAgjSnotqm0poI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713940518; c=relaxed/simple; bh=CEfgA0oELJOz8zvb6Nr80IYQhRv6FJqaM9RUu8IYCmw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tWykBCbDBTX9xFdZMp1KWZcJvsQFbH3lvYferkYiWKBMXt4lp+O3TjDbF8MmRryoXk2lfsamLZcJQFYxcqzAfiJTBhYh6tNrtJzyZGeD86sxvlDDvDgis20hWWudenuG/D03Fwka+eYU6jvR3Z9sR4tnKd7qmxUfHM22mt0PAPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o+zYdMiu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0647FC2BD11; Wed, 24 Apr 2024 06:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713940518; bh=CEfgA0oELJOz8zvb6Nr80IYQhRv6FJqaM9RUu8IYCmw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=o+zYdMiuoHmlUXAozP7JvGxs1/BBHVb6A/1Wqw7vQZQr5LIj8PWYVIB3QV1WaVQU4 G1P3W/QguqF0Nqz0M6BlN6LN2Ts+Y0FHyTawMGHFhU7CNIhHehyi9OvPeA9oFE45nU qwIDKE8LAekD2TQExNA4cenh5Y8IVlJmE/2LqMGn3hWr9DIxAW7l5FZyNsLqPVgXQ1 XpbPvdo0j4q0mHQhkJ98lz0bYl1gGM+X8qFUDHRE5QQK+6IfWtGJ3+RK6YA1AvCcC2 uXmz7twI5Wb+CfTs1FhNxLta5pKlTQ5MUHdNavwXpYqjRivpVLKnSNzASpi0mDCbuJ IKlufIurvZqqw== From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 08:33:34 +0200 Subject: [PATCH v2 08/19] backlight: l4f00242t03: Constify lcd_ops Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240424-video-backlight-lcd-ops-v2-8-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=846; i=krzk@kernel.org; h=from:subject:message-id; bh=CEfgA0oELJOz8zvb6Nr80IYQhRv6FJqaM9RUu8IYCmw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmKKfk5EmRUP/OMskgfwTpVvJdKVOsnvbUPDtRI gZNsfKqLmCJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZiin5AAKCRDBN2bmhouD 1x9bD/41s1qi8ODzYh2QLVdEnCbY2bsumCATwNpDO2xtfAhQTtdQl4k1xitz39bhv9G00h5bkj6 OQt+X7a03rrHVo1LcNMrsqPpftc885Vs1IrHBzJIAupROnC9L4CwMZ0IwrJmp/rsQ6keHApZCRi 9NI5oQkbPbEowGTwqAy7zNSDymk7t3iF+hZHQJk7duCVgP6vyS3VzJB9oC9dxRT7H0iMvzi2/JE rxN14hl+n4lkb41Pk2YhnQew/nb3Pk3nQq0BfNZ7mCfJaQbn0yRTtX5ZXNkb0fdKsMCe3iCSErg F2379PJnhLpON4xKsVHS9JniHNhMx7obJaYSTfloXkPaDbXJT3+ExR479bS6zQIgsbrK0k6VcWa qk+ipGyyLnBoyugAwDnxKpJVbgWziUmo+VJafRgYdooCBWfB/veCOd8UdM1XhYEHCkaHl830UOk a6yLQlFyH407/Rb1ILfMHY3bpvrQ6dPZ8WOmpPFl129WkiB3nDL3Woc4K8oGS/w0QIVvACJtXiF IPxxBghC1k0l0mQ5vDqbKlvLJy3osYAXuAm5vVzHs+4icHP4p0QAfzvpG2S+BhX65J5piIEdQa1 iEUKjU8JnzW7sMQQLN+iy4fpbTR7CclU8WsDqleSaoC49s/irrdQKbJjbmg+z3N1xHNSGasWPE3 d57ifB/epA4UnIQ== 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. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/l4f00242t03.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c index bd5137ee203b..dd0874f8c7ff 100644 --- a/drivers/video/backlight/l4f00242t03.c +++ b/drivers/video/backlight/l4f00242t03.c @@ -158,7 +158,7 @@ static int l4f00242t03_lcd_power_set(struct lcd_device *ld, int power) return 0; } -static struct lcd_ops l4f_ops = { +static const struct lcd_ops l4f_ops = { .set_power = l4f00242t03_lcd_power_set, .get_power = l4f00242t03_lcd_power_get, }; -- 2.43.0