Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp227993lqd; Tue, 23 Apr 2024 23:35:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLXmzJ+cOqMSqskOZLgV3d+B6SH6ptSKGgovsw+0ittET1vrKVJXsiIynnkywJH/tulH30M5X+mTZP5E72HyM1xf/0xy1F22zc2M9mXg== X-Google-Smtp-Source: AGHT+IHvpde6+hhCWhAdmRi/tFmToqCrV7ysG3yZj7T4UoOrXWmHoQdDkrNqsFKOuXNUnvbYwj/a X-Received: by 2002:a05:620a:12c3:b0:78e:c0f7:54f8 with SMTP id e3-20020a05620a12c300b0078ec0f754f8mr1763588qkl.72.1713940515155; Tue, 23 Apr 2024 23:35:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713940515; cv=pass; d=google.com; s=arc-20160816; b=C7Ju/K7sUU9HKxLeQhTr+b0wSz0e0xFWq3bxlIwsAgn778rBMiXW5otDMSi+dSXw6Y x1Y/r+cJQOx/a02jTQ2hpal61Ku+DMyBtzxQFzTxi0mjIhmcNNw5ROQ57UmUcrMqXRun QJLo7krW1yoPKnyvggG+9BUUi3X4i/K+rBXMGJfOYlV54t4iwcBnCbeICLADFhhBL7Zq Y9/PNlnUb78ilwPAiOH+0gqYN5oaz8VCzsfbEiXtonP+capjrKNIXWv1+6c9E+jcIVTp btP1iYGmZhHHLhXJmTpuYRl3g0rPF+NQIso0xZbzt3ZT1eE8c46zssWFwfcrmqDVDvfo J5nA== 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=YdekZzrnCzPy4AtfYP9L1dFxttvJfldquGoZWG6KpJY=; fh=+ojXJv0/4efHC+ZKQpCuefisvk/g778RKYDrPGgHhHg=; b=eu7PQU7UlohEicb3x7i90kzVFqdmr/voEo7Kkc4RJnshNfYEn/7DEF5mNcKdy9MEtE liC8OhmLhCANxfaRWKWklDFA/RViy997pmlymI8EoIaGyChvd9Qc3/mCo5pA+mXIHPQO jjh/4Q4wMaPYEHE2OpQDh/mvIx78K3DkUYvpgyGFKgKhmz3cTq9wBcS+hP11f/Cb1caT Kvm9PnFvbOKKNLcJYfYN+c1l8YjNOv5nEg8SX1iepyo6NeMK000se7RjyPpYWQR7xBFs 158A4D1oCuuS13QsWvY+oJBEzRdoeEn66DooLELVb6Xvphrxi5d45KCJfl/DKVzHXoT6 OJ+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="d/LWKauu"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156366-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id yf3-20020a05620a3bc300b0079027341957si10648255qkn.772.2024.04.23.23.35.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 23:35:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="d/LWKauu"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156366-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DC6451C225AB for ; Wed, 24 Apr 2024 06:35:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34B1F157E7D; Wed, 24 Apr 2024 06:34:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d/LWKauu" 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 4D7A236D; Wed, 24 Apr 2024 06:34:42 +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=1713940482; cv=none; b=KTz6HRa2DjWWeFgs0eGAJOuSTeD2OZ9IuyF3NAGs37tPPxRcwiQzmkgvL+TsrPEejEAmPMPf3Ao8udWpj5pBcGdQbd2//QHlxNrG3iOcIRvXsyaahLCLs1wZxPaMsz3D1rUz4mc5hZwrzt+o38FVuHIOVqt//TmDfR1BNskahDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713940482; c=relaxed/simple; bh=ujJLvtby2juc8QEFHnS//3ayXKjJ0LbFnDL/vxd1pSE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r9OJTTa1fgZLrgTVwtsafA/D4mOsKU8mnlUDjO7JQf8sjUadHry5MfJZlwkv0MCCQXJo2yqa6cnnbIb07Scml5k5uwfdTP0XEQzU0vLr5b16B4gRriIFGp2gJoQlHmBGE3qwuDsbiuJXduN+l4GwKCSm91Bnu2Cn5pozv1U4NNU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d/LWKauu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71942C3277B; Wed, 24 Apr 2024 06:34:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713940481; bh=ujJLvtby2juc8QEFHnS//3ayXKjJ0LbFnDL/vxd1pSE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=d/LWKauuDFveIJ13dytv+KU3xMikPpeGTnLvWjNUcOP4oWx0y5EJy67Oz7v0VukWm pLusQ9wKDLrzJDfEVGMH0WZLrz8yK387bcDCfQVxHPW/tLxfoTyhC7AgFOw3twNut2 TM+r3ZGlqrU7gYxLjmuLroU4+38nLv0xc4TvvGFryL55jb68JzlcaBahtuYPrA6eyk BNQavvpG/Toii1onnF9zgL0rzuJ9laK++UDHJQCoJpComJONQywY9jngZyFQlbptZk IvVs6dCdvgnHoU85YdBjZIoxUGL6hqZ95XS8louQkYtl0sunc+6dkLl7IqKEgug2ka e/kkahfzucFfA== From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 08:33:28 +0200 Subject: [PATCH v2 02/19] backlight: ams369fg06: 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-2-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=850; i=krzk@kernel.org; h=from:subject:message-id; bh=ujJLvtby2juc8QEFHnS//3ayXKjJ0LbFnDL/vxd1pSE=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmKKff5jSyRPmEYqwfFNIBdCINRpn6WCm55ITCt haEbteXAaaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZiin3wAKCRDBN2bmhouD 15u+D/9kI5cE+y9O7Co58c3g2cDXHqDrv3gMH/8aVz2pGK/qyXKonuQ4IibZF0P5hxbg5wlYUc0 z4KXsd4+f0D/zAwwh7USdPRYNjH4jo7V+eIiSak24C3OWaHvMEoBWuoGdOGX6NNCBgAcw8ixSrz RgdDQ41e7BTwZ8dxzHL68AW4u6GM8ArialmSrYAltfantLdKc0UNU+xAxWGynJQCaH1s/P+EnDd Y1fKe7oLLHoUAt6NSu6H61ibGx/BUh7mjrbmNItm9AE5oA5N1WFJUgXL2Ryl1XerhP4T3wHqlFQ Cu0xDb2xWUW7in46UfG663lSypUwVCizA61i+TNMC+JiTto5vhCn5uaxWDS/sGGSFsfmnyGsDKn Qs7wPBmxnIghC169q3WWwXE6xqYiaOGpiosJiyCYx+He6awn4NVsc+O1EEyUZ6wH2cLvP8i+0YU cgr0wAYg5l60LphWowE0U/ukl2+eKGzCtyKaCgykrZ4/7+LYPWd+toI5qEG1HxlLt0m8yMCWZe/ xprDfY0XVm5+DLVoIMPWDw4sZ8958MLnSKIidmSyrQ+f8nHigE83IwaDC1SSD2AjfAS2XTAbiUO ZTWU6XKMnKvRMpV5KK+WqyfBdTAORn3UYfTl0aDDVOGTYKm3Dd6Ed0xBb9mqslcYwMT5tuPCQgJ KYT+08BfJ3I2pXA== 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/ams369fg06.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/ams369fg06.c b/drivers/video/backlight/ams369fg06.c index 522dd81110b8..57ec205d2bd2 100644 --- a/drivers/video/backlight/ams369fg06.c +++ b/drivers/video/backlight/ams369fg06.c @@ -427,7 +427,7 @@ static int ams369fg06_set_brightness(struct backlight_device *bd) return ret; } -static struct lcd_ops ams369fg06_lcd_ops = { +static const struct lcd_ops ams369fg06_lcd_ops = { .get_power = ams369fg06_get_power, .set_power = ams369fg06_set_power, }; -- 2.43.0