Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp228313lqd; Tue, 23 Apr 2024 23:36:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMmO4Ghub2nQh2jyT8u5wXBBeI2RQpLTc2KdNLOFTXOoYnKEJDiqFHVBRDt+99Q1wSWXeCqiob1WoOBIZohWV1HpQWD4kQ4LnmSJ1mLA== X-Google-Smtp-Source: AGHT+IH50lhifPmRDqKkfS7o/3YaHWH8on+zKLKx8bEQX18RwkVO/NlzrSerrgqJ3oNNJHBo4lIx X-Received: by 2002:ac8:7d81:0:b0:437:b753:bf19 with SMTP id c1-20020ac87d81000000b00437b753bf19mr1499221qtd.59.1713940566486; Tue, 23 Apr 2024 23:36:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713940566; cv=pass; d=google.com; s=arc-20160816; b=j34qUIHL2ENRXAGnMTzVh7MCikqMRRmPEytQOPcqlFbBGIZ8BAo1oQhaRlVKAyGSpq T4Lcdg/o1plpwGfMRzG0WgIy7VAZWb3sbUo79kkuigpkYQvL9Byyd0Tvv1Npi55fhUMs 5HNHPmxuWm3vMb1vmx10cL5TQbLFBUlTu96KAKJNXoBT5yo00dFhQ/esH2L0YuHiYIQo wYk/2cj7KEKbFDC+dZT7njkgmFm7pbozirh+FEqkm5CQXXNZ8kvBB43FS2as//yoQmND rWdN4e1K7wxsTlOAjBpbQgxrapDjzxsL5p4IgL5GCdZazNWQEKlLJ+HTD6ykCxk2pqPM 5rbA== 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=607Rluq8t681qVONwSeiN7KmDKaLZ5wNJAqhikLjsk8=; fh=+ojXJv0/4efHC+ZKQpCuefisvk/g778RKYDrPGgHhHg=; b=i9TpaYy/5odiT754pTfjAwBGsUeHOOqmr0wQDJvf151AuA+9wR5BaR8/i6Arh9Kp0R 7s6Q3vO/YQTs3LQWVeCKGJG9aCnEkTzKGhwf+a9ELZL89ccJlvlYq3LjL9PcVyQDbvlV 0YHE5pNlchcAXsN+7GlMSP0g3UX29c3XLpSLy61lLOLLNNqzdWnIZZtgiOAvR48PonEs VNIhXclfh7pyTeIe+41i/vBkemql7ab7RokyGGs2rJ2AtEl3BiNSzE+mGcVmktJTxqM/ LtvrlLtKiOIJazx5+es/19GgcKC9S2SrWzYudGEWrBkRk5f4vCw2vRGbyLB3lp9wf5ja iHFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dqrR4Hk3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156369-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156369-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 12-20020ac8574c000000b00437c404120esi12100755qtx.254.2024.04.23.23.36.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 23:36:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156369-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=dqrR4Hk3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156369-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156369-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 389F61C21FA3 for ; Wed, 24 Apr 2024 06:36:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69CE01586F4; Wed, 24 Apr 2024 06:35:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dqrR4Hk3" 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 85C3041C67; Wed, 24 Apr 2024 06:35:00 +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=1713940500; cv=none; b=jzPCR2G41sSeLMPCTyQRgu65kP9AQDN+gKABSF/6SB2hj7cUYkfcKyRcQ411zjS9fDcKyHlpxyc0qu2ii6IvWmyEUsWeBS3p74jC5ME95gSGwdhl/ZNSHNAXE/+ts7o0OPdIQ1F5P5Fowc/OzTGUm6wggQrEnF5NPos8TlcW3Fk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713940500; c=relaxed/simple; bh=YZlYLaxPYk3nyqOYpuqvAaTwYZ4ZvDN/y6m4aXvtTU8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HqwWMYFUjvy2hJHxZoZK+UE6SMA8tGil9xdZ0eC15z3muiDB1oIUYCrxH3+uwGgxL/IsYrE+cUHFNUT4nPbaR5YWcBsZxmGKbQqzYo/0rfbRSfoy6DBCMbpKAs31j4Dn7HjDoB5Al71c/F18nyHeNfK5OfuJ431h57mDVlTluAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dqrR4Hk3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6FEDC113CE; Wed, 24 Apr 2024 06:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713940500; bh=YZlYLaxPYk3nyqOYpuqvAaTwYZ4ZvDN/y6m4aXvtTU8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=dqrR4Hk3AfhL9dG5IDtZLQ7W25m83QMZA7ZvZXzSZPk8q99BTjFP/G90pE03RLpbJ M5blgJafEP/qHgJwlZsqcLRZkwEes6QN9sxL9rWKXTtL9LxbgETTPghhmwcRQUBA1o pqIApON21iJEa8rHq2IdzhwTvqME2+hoAkRI53xsdrQxvDdruWMMi5c6ZazkJC+PDC xPM45v3IjuumO9E20A0xsMkVLU6w+FxscPMBBFGTI0gUvl2lp1oapkDdxwvaKLem7V 5j+rvQgJJvJvVb+P9RZ3OjF92Qkaxr95HAjgt+XKkdoOFzpDk88rtI/lVHTgc987j7 pbDDcqRhwTCHQ== From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 08:33:31 +0200 Subject: [PATCH v2 05/19] backlight: ili922x: 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-5-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=808; i=krzk@kernel.org; h=from:subject:message-id; bh=YZlYLaxPYk3nyqOYpuqvAaTwYZ4ZvDN/y6m4aXvtTU8=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmKKfhgGsv78rY4HeV9nGk1ebwCmUiNzNHKtsIK 1o5gFohSMWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZiin4QAKCRDBN2bmhouD 16/hD/9UQVoOdTBB9i8W49tHr/wJHWKoccJ1BwWLjp1+K8JmAZHWznGmk0pi3BdJ/N4YyWIiFCe +TDcbG+u0nHLnLCZDeXOGFasx+b6MKd5DMy2dMRiwwjmcW3N39IlUpmp2tpLsHOOrHeOPWTPjSD YHJZtB15YdLio+riVlxGL/FrqT2aJF8+ScdzYb1SU8hMsMYR7oXPepVg1mJC54QVUv0pAi68bb1 tRtiAR3DerQbOauG0XPp4NBtLKKu4ZQUiFXomqRpQbEOJi29l31hOLa6CsiYQKqtAV7HOtdxgEd QLYKAseBkmvDg0r23EOLM+USyHagW2dMSJDeGtA3IBUpW+VijJ/4HS4wnuGnOQhy3I2Qv4tlFxz ruWU9sWEqiPyZo/AuJYIOfUKzr9od8D+3nIWFiVOLBk7jKdOVJC3Ceo7nZyIo9AQ2k1dL7a7+pA xv+OX99Zik7aeDMWtk+/t4e0/l3dTkFtPk+/l42+Vgr3sOIsEaOOyWOePVNAv2l/N7qEthXepqi ysOGJwgsn6/2nwqgEZuuK+7SUtU08XytBptOlLPxNk9Cs5dYkbfHMXICSESMJ8fqjuXT0xY8CWP BWMY3MrSi9/S5nmfL4WJL7hS2PoFvr+jhCEmTK4/lLZpD1x/KhwqoLTYjp4GxTQ3vKqZAKaqU/g m3oVQnX8srkeuFg== 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/ili922x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/ili922x.c b/drivers/video/backlight/ili922x.c index c8e0e655dc86..7683e209ad6b 100644 --- a/drivers/video/backlight/ili922x.c +++ b/drivers/video/backlight/ili922x.c @@ -472,7 +472,7 @@ static int ili922x_get_power(struct lcd_device *ld) return ili->power; } -static struct lcd_ops ili922x_ops = { +static const struct lcd_ops ili922x_ops = { .get_power = ili922x_get_power, .set_power = ili922x_set_power, }; -- 2.43.0