Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp229345lqd; Tue, 23 Apr 2024 23:39:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPAd1cfjcGUPBOe9ULdrw0BQZ5C/51MDwTVRoFiFjsMZp4WlSzB1NfLZBWb8lNOLlalrCaCjc0/Y/7i4PV5b0POmgkZf+0lS9UQyMjqQ== X-Google-Smtp-Source: AGHT+IERVQRwV9p0FDW85Tqhsa1Iu0ZbbJQUHDqlNLBxhYcp9D4ei/9xHho0WhYBtyFuScSqLrBk X-Received: by 2002:a05:6a00:1819:b0:6ed:4a80:133c with SMTP id y25-20020a056a00181900b006ed4a80133cmr2123991pfa.1.1713940765570; Tue, 23 Apr 2024 23:39:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713940765; cv=pass; d=google.com; s=arc-20160816; b=Loe1FlJcf4mDbgiVdq3q+dbSjSfEDGBdmEukw0iradgs5weuEMt6+27HU5CKHPT69k SwAg1J5kBlLYXGqndxSlGvrhoTsJQQPkWvYxxeATfYHy225bGByn0Jt8DLdapufo9iQs EwYoyHlykD4isygwZGW17EkNN0IkPi4lLyav7srzUfjtItw6D8TWatWcijzBBZ2Oqb6a 9ce+tfX94Hj/gAlYauVSTjXD4kPOj91d2lNbO9Z5Tj6Bww0E1IazB4ZL30XFbg9lvsUB ccE7XGD+9QnBmWYQ7OGEe0NscN9WEXiyBdQCuai11X/AtnX3wnZK7IrzbnAWxrqaapfs sinQ== 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=0S385vryW9awOqbvbuvNuzqCYhQkiUYReg4DRqyjGXU=; fh=0EpPU12gGTkiIF+JBMSHH3+/RZz1boKDhjijIzAyYV4=; b=bG3HFnhtIhGy3KNJREK73d/MqXL4DTAnYirbaMusQLvbkw2BBr3Msr6lB3xPd8VzxZ NN5gurBYj+t7sI+O8plA1+CLnxu2Bqb1bv0XGOg3ZtEDA3uxJUap6SONZFmFgXAD4cdP 7mZA230Qx+9IKxyEuzEcjgGImT/T4MTJHzl0qIUGRJpqLXISAPXU7v/kud8dj1xdk3xf YvgmfflodmBusVG0S+Jbd7Vj8rst8Rbz+z4zQtps4h1N7rNkkQSlZYZOAWSJ5QZoPOXU BKM2eoEcioccHW/E2ewTPHra+Wgzgfcuj0Mufhfx+IDpODCFK58ZzaG2wJkntyxvvHCO F/QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CFuT8NXJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156381-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n13-20020aa7984d000000b006ecfa4f8fd3si10656898pfq.272.2024.04.23.23.39.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 23:39:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156381-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CFuT8NXJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156381-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156381-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 37871283898 for ; Wed, 24 Apr 2024 06:39:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8210115957E; Wed, 24 Apr 2024 06:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CFuT8NXJ" 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 9CA0D158213; Wed, 24 Apr 2024 06:36:15 +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=1713940575; cv=none; b=CkpHKxhP5U1142fhjJ01MnmGAjLwe8EZnWoIzydZiBjUlzcG26eYauDkjJMmvyi6hrdClB59UtaAq/ceau2ov60ZMC24r28wk36gIHIjdgiqPUUmg2I4ctqshlsH/ULYDyZ6aSV5ynXAY5AihxmBdpwnb+7usn5gc4rwpOVjEVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713940575; c=relaxed/simple; bh=/YPEE/2rx+omz6upF3/bxcsvp1W87Sbaya8j0gn1t6c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cvSQwoU/ntCtT9nlUtQjvRbXD8gnQ/qzJsghSDRWRWdaV4ubZd5pCPdXEOXBWOfnoqu5uS8bTmw2GJM6862fPx0axjQv52nBInnlPQMBXkMRl9dcUP2q9QqYsKNV6Y9dPmU1kx1+478PAy2SYhMteR6qn5rEmTZiUBpHkuF05Qo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CFuT8NXJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A44D2C3277B; Wed, 24 Apr 2024 06:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713940575; bh=/YPEE/2rx+omz6upF3/bxcsvp1W87Sbaya8j0gn1t6c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CFuT8NXJ/hHnZoY45SJJvt+s5B2CBoVVYP/YFem6QLsn0Rqlqhnmr7v79ZNARUJfR FNjSmuyixH77Bu9hQk07WEc08pFi5mrX8C7S55ZjWS+1BvXFuoO0IzDZT1xgKVVSfs QWEwGQxi9CcpxXfa1CFEGlI3ZMpjX7fBlWBvXe2zNVq2M5NTc6liA5RuBvbye5I5Nj 09O4M9lXKLJoGSLRiQYH4jX8lFr8LrnDSU88n3w1vFkhBnj8usrATzYOAZMtig0Y8T z1rs8iqXKn2nkSh8BqVoZ5E5jVvGA62HCIWtmKipT5ylX83JwJX14CG2rH2lYmLR9o LRoxjzZmdYLXw== From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 08:33:43 +0200 Subject: [PATCH v2 17/19] fbdev: imx: 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-17-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=881; i=krzk@kernel.org; h=from:subject:message-id; bh=/YPEE/2rx+omz6upF3/bxcsvp1W87Sbaya8j0gn1t6c=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmKKfs4bgpP3d2adOd0Ir7rb1GXy79RJ+CIs4xW 9qxa5vheUWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZiin7AAKCRDBN2bmhouD 1/sFD/sFck3lF4eDnbOwltOZWg+sb8FGMQ+UKhyG8MYCkP7iEPDWJ+nvoqoTam9oXUqVV2lb0WP 9VA7xERiTmIqdf9UHS5odRp1AyWKRpjYktpYM3i+OjOfc+5zYyQsCjp1BxBGvfjUFQxW7NyND1Y pnkY2JR3Xzx5PT91BsutcolYkS9ikkuj8cFjPQIox996BZOqu+IqNzy8KwrIpnv5dMYIdLwsz5u kY+qinBwuY7ES7Pxb/kl5GsQ1FK9DrLRv+GwFtRI1xQQvAS2cHzigsq4SLZy+noZpHIElBJmVLb LAoOc7l4EQVD7rZ3OMHj/Clfl5u0TqZrOcqxGOt450Y/IWDnKTrLW7NyFne4chqmm5Tde/d9XM/ gs60ono6oOct7BZJDqOnPJxMl1AGlnoC61vDdTsfDp1qGwgIPENKdMCeH0RC3tPpLXwpRqVKTTP iNNeWSkf8buHSq7vvu+5+pJCwcYOpvQLqDMie4P07gOr7cA2GeSPKQL/5WKCpynsOIsPv8qSkiC pWZ/i4WxD7ntQkg8FtBOQJWNSOEOl5bwfaktFqMRValfbmVUmi49/zuWHwYMcMpBGpSdDHnBbeB hXkFOFihyxRoR6n796SgSO5rLVKi7jcyZGyQnbDW60hXKR6lh5AjCiGDHcW7Anvd8cD+7STNxiK BOYfUd6hCxn1ZeA== 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/imxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c index a4dbc72f93c3..4ebfe9b9df60 100644 --- a/drivers/video/fbdev/imxfb.c +++ b/drivers/video/fbdev/imxfb.c @@ -857,7 +857,7 @@ static int imxfb_lcd_set_power(struct lcd_device *lcddev, int power) return 0; } -static struct lcd_ops imxfb_lcd_ops = { +static const struct lcd_ops imxfb_lcd_ops = { .check_fb = imxfb_lcd_check_fb, .get_contrast = imxfb_lcd_get_contrast, .set_contrast = imxfb_lcd_set_contrast, -- 2.43.0