Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp229433lqd; Tue, 23 Apr 2024 23:39:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1RSFplVn2V7B/YmpnVHNiQq9WvsOaMueqb3HIu9XMF5LwXC58JYwbbFzyEzCHkWULl/QHWQ8z3yqzC8x3rjP23UV/HO8CVCuNUvJ1Sg== X-Google-Smtp-Source: AGHT+IE4TsCGdabTzhjxiqX6uAfsMm/Hp3JayKFsUOhjOshLyMcOmKjq+qv0ELHmOxjh9rp8hhUV X-Received: by 2002:a50:c31c:0:b0:56f:e585:2388 with SMTP id a28-20020a50c31c000000b0056fe5852388mr999320edb.36.1713940781828; Tue, 23 Apr 2024 23:39:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713940781; cv=pass; d=google.com; s=arc-20160816; b=yVs2M5X8WMBb16QOB9di+K6zd1/HGKnkhutETrHDdOXy2U/lNdA+dLySgvAkTj9gL5 67OAab4skbr8N+4X/7OorG0lzp4FgRh0y3mfSYOrYVS1ZQ5PBElfs1l0Drcs4kegn2HI tu9dgFRxHEEtyr6zCxT/HOI1Ln2od6O3Tm+mGtX3wLZMPHu3GufvtQ3Zh7WdJzMgl7vF loIDgfZFWrjULo5qnLwJSIdmaHwzmkDUEez40VTVXaSAuVrVAHfiJ3HqTttuRDrB7ha4 dzWD3E0X3D3GjwsDYbYBWfZ28siGcA65pCi98neVa744Lg6DylbU1yeP5Je4dvYw6J+P nEMA== 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=/vAMhS2f94BcXg7c3d2Evy91pCgUv9zPX9zU1dGMSyQ=; fh=0EpPU12gGTkiIF+JBMSHH3+/RZz1boKDhjijIzAyYV4=; b=gbRSV5h1CkubVoBr65a/3xbdFrkuKn1iqxkfG/4WVa6Y87Cshst2JiVg5fBRPYoueX N9BDQsuMRMzF7b7DniqBnoIn5ZIbYFXRs8hAzc/L2rZ8q6vxJm5oiNb7Yojy+CYSGILL G2vOb05Q4CypceS2NPQebBc+09Vf2yCxGCUl3KNMO9EqSPKRfj/tIR18fr59ijBS1HJz dyknDYrRDcLOb4e0CFeuJjCwFZUHcXrieh9jJvN6s/fcgf64Zrx6J4GOOp6UCDhh3ST5 csV26Vxu7qu8u7aV7gEUrw8eQ+KL8XewsmaF9De1EmU/tPoWnFWBs1VyaaperVCYf08M F9ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kIQPaSra; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x7-20020a05640226c700b0057214a1a4a1si2784685edd.322.2024.04.23.23.39.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 23:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kIQPaSra; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156382-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8D87D1F239A6 for ; Wed, 24 Apr 2024 06:39:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA143157A7D; Wed, 24 Apr 2024 06:36:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kIQPaSra" 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 D5922157A74; Wed, 24 Apr 2024 06:36:21 +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=1713940582; cv=none; b=tLtciTEDVWxs7opZGKfRkVYum4q0YmBfw0yQqYyi8IHv2WevCvBG3yOSevO7I5qDGhJ3/paQbnctlMzrxbE5b+5MLW9L9CkKSeOrdz7Y2bYZckV7kXivsv3FG9WBEPkBUSTgSNHDpIxyVu9o9F+0dSNa7WoM84BhmUhCONmyy/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713940582; c=relaxed/simple; bh=pWTvPRblCBNixub9cvr1im1fK9AjWZstRNm/LOmLlSI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=huk6gfTUxOo8cqlrdanczqLuYWwfb3yJ7uSM1JhGYiOiRvipzIkOHnKGoUIrinz/2wBgb+/KWFbWwJyCnvyGHfFpUag+f2C+YKZd6/upQENCyeRyXAxQF4OQqITffQ6f84veEBCRoTHy/KKCfmGlxuwafgwsZWvJWM+CI4Cafoo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kIQPaSra; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF753C2BD11; Wed, 24 Apr 2024 06:36:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713940581; bh=pWTvPRblCBNixub9cvr1im1fK9AjWZstRNm/LOmLlSI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kIQPaSraYPpkNqJDLVq/3V71x9Avn1Y9IoOIrwoekLAQpP3c7BCJokvWe689hhPjt COYj7mpX7bT2DrmY/MaiEftznTdE0IQb+PwDAStni00s/0oDChvHoMRXH2N35tbEjH +vTXzQnQSBs2hXQ6cHZgWzu5yaTyoXS+0TqUqRBZEDosFajGodg3dtGv1DJ/3+Qel5 /LIuo0OYzuuWJptpSDZ4bZDGTQ3LZZYGCyPkd/AkigBZbs4WFyVaCw6LDXSsfNF/jS oWEMEt0qIocGFIf6H0jpwz9yUzCPMnhvf8p2dWRQjGn/f5J9vgX95q7ojmjO5KOY/N xMfRn+sgRCEWQ== From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 08:33:44 +0200 Subject: [PATCH v2 18/19] fbdev: omap: lcd_ams_delta: 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-18-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, Thomas Zimmermann , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=990; i=krzk@kernel.org; h=from:subject:message-id; bh=pWTvPRblCBNixub9cvr1im1fK9AjWZstRNm/LOmLlSI=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmKKftmm3FnyH0c8ZapIjiaRSDuKNvLbICJ53Tu +qqRZuB/++JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZiin7QAKCRDBN2bmhouD 1439D/4pVsJu1f3Xvi8hmVDQuIos/Maf1iCjIvbsiizAkfBoWwXCLqk1SASLj07n928Xg4D9SpQ WBE0WMVTqLfw4u19v+WqNunGMsUkIExGU+AAQZBGEKmVg5VxCLiAdSTnc07Ys8GdLD7S4UuymFb ijeT4ucSJ59hfRJgHHpIhdphNIV4CEYK7dd+hbpEhBYMF7w0ThaQqAxS+X1RMCw2nA1N1+/LyeL H4wKncClZmWa7dZoQMlN/wWeaP4m9rmdRmsSSdOuJhKthMlvQLM4kKIAsub0hbqFgsKR9BaoK1v wfTpyIGN4Ukejfgonf7bl+zV4brZKhGdmtZZMH5Avae76ZltNz7zAp4+ZGFNmbZQT36+gKyudNE YOxajN/1/XbXexKojbn/jxmt2vsqQOD5zf8MXOdPV7iXCJTOGGuc/Jt/a89ynfghenxeYUh1gTS 1gRRzUrIVHGa93CVsI0JO9gSK9KwfWtCik2o2Fx3Iwp+A+erxOenVBDzQrSJgtDKTx2orjlm4OF OUFSay5KqPG34pStikdgKaP7JhV/lSSHIfMt62G6rjRFemrh8qdQPKkG+AY/BfMEdwV/jrdgAcP SLeU4QzlBmsVYZr1fFY/0Zmut4OB2Y9yEM9LaGkb27v2oIw8ro3o0JDOFfSm/1BkV5S/nzMfBCA FpjLE4ux8x06WZA== 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: Thomas Zimmermann Signed-off-by: Krzysztof Kozlowski --- Depends on the first patch in the series. --- drivers/video/fbdev/omap/lcd_ams_delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap/lcd_ams_delta.c b/drivers/video/fbdev/omap/lcd_ams_delta.c index 6f860c814d2c..97e2b71b64d7 100644 --- a/drivers/video/fbdev/omap/lcd_ams_delta.c +++ b/drivers/video/fbdev/omap/lcd_ams_delta.c @@ -76,7 +76,7 @@ static int ams_delta_lcd_get_contrast(struct lcd_device *dev) return ams_delta_lcd & AMS_DELTA_MAX_CONTRAST; } -static struct lcd_ops ams_delta_lcd_ops = { +static const struct lcd_ops ams_delta_lcd_ops = { .get_power = ams_delta_lcd_get_power, .set_power = ams_delta_lcd_set_power, .get_contrast = ams_delta_lcd_get_contrast, -- 2.43.0