Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp228194lqd; Tue, 23 Apr 2024 23:35:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSGPngCkPb9PijucyNFYruwIfH1TCzn3J+O8kja5WPmSUvk0I8IAEQsst54C80hR78CeH/1Hm5PVUuup5Xvrln6KcJotLmyQFnpXkg3g== X-Google-Smtp-Source: AGHT+IFhnnVHkDphpH+S//2bnAk8fNJJOi6afnBc6KfM6s+BKKlCXVADoxN+cQtLwAZBvuzf59j9 X-Received: by 2002:a17:902:c40f:b0:1e9:cf94:5bea with SMTP id k15-20020a170902c40f00b001e9cf945beamr1732282plk.35.1713940549838; Tue, 23 Apr 2024 23:35:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713940549; cv=pass; d=google.com; s=arc-20160816; b=IGrX1KbUdKno2F6ewp7Rxz5oCphLfCqT1pSMFzGG3e33Mn2+mKqAmOOvlSBgO4uBik nUOy4baLFpJZt/Knxwo5RS0Fisa/z++osuvopczfAp1Jj0UfLoLlMKJlHgYWg2FnMrkF ITpFbKUj2JXh/aPNho8jKizNuIUIZrg/WbnJmErUNBCV0ShXJhsouiuvw8SvRwzX/sdv LJf1U6iEULpOWZjGX12b392LyBZU+JYKKpUNnZz+8t9kuwMw3pWegYi/hAn9f9rn7bmA lPkjX+gVCuJ9kWvtIuUBlR7Jp7eV9JZ1RsioW08+SuCLm8+Ke94DcunP2XvSiW6cNrFu ciaA== 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=PLqXqBqPLmslTaYRjoXrQ+uTwGJ4MH5LH5p/UpTn5AU=; fh=+ojXJv0/4efHC+ZKQpCuefisvk/g778RKYDrPGgHhHg=; b=MlwPjwjWE/gN3lPRzn9Nm3AHVrX5bgZt+nKgJ97jaZsyMa+apMSuRn/5PLqUELTUHv PfAryUCejP5hDI0Ec/1R8LHJmW51o6DEC1E4V25l84zGfzPf375eTbaoRkV009uL395S vA2CWls7EqlNXRrpe4wr8eOI0foYli+oQkktlpXPU/+rxTJWnW3pzEQLjVB5RKtueStM 8RF/sB98lGsqU0jLWGAXOHK8MuFcSo3niFjijGPC6/2cYulklGIxZxdzMT4bkuE1eFyu BDDnMYFROyOo4rV/8Hyzw7Rh78HhhdTUIo0jE3OXp/D2EqXbvsbfORx3wqtrF2MEcmR6 /4pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iC6lkDvd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156368-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156368-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 e10-20020a170902784a00b001e506539e21si10390009pln.313.2024.04.23.23.35.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 23:35:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156368-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=iC6lkDvd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156368-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156368-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 F0BE1283859 for ; Wed, 24 Apr 2024 06:35:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B0AD36D; Wed, 24 Apr 2024 06:34:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iC6lkDvd" 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 A190141C67; Wed, 24 Apr 2024 06:34:54 +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=1713940494; cv=none; b=Az8eRozYv7C5AHqP6lnVbDXuHXeJj17CUyei/xR5n+gjUzpgDCvBNqwRPBVv2PlyY3RjPOsmKCz8szbyr6SG3jYtaQdiI4RGwq0k0cJ5IPW9a70xAYJOKK86x6nDw8uJcjW+l1dfnGp3TPv8zGbWWuY9sENKQ8o7OpPjvutMJ48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713940494; c=relaxed/simple; bh=NVCidXNtdRLB67P8hr8y4kewhrswWSzn5zoSydb49Aw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fPJMwG/tD30+RMiVG4OVwtj3zQmn08faLtnqvbKHFiffxa6PF3nS7PodppQFGBVau6D9xk0JVa8Tcr0G34zLLy6dYPmIR+KB6r15AaNV7zNq4f3R4zb2PQlzlg/Q3Pi8Gq0a/VVdVKXpyRdkTSdcU92K9ZlxJBPJRqaVlWNlXX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iC6lkDvd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87C2AC2BD11; Wed, 24 Apr 2024 06:34:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713940494; bh=NVCidXNtdRLB67P8hr8y4kewhrswWSzn5zoSydb49Aw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=iC6lkDvdo3BzfOZ8nC9ldvIdK46dWYqTj7Ei1w0kiM1hLFOBQqjX9Q+AEkXAk0SId JFFUQ3/zjomsxsuy2i5UDpCJvm905n5OWon1sl/xnAnZ3EPaji9b2gngsSBfIUG5L3 eazCW23TY+79ys86Yc6s5lR0zXm/XHGE+uNHlSMCeHxMinvjqFGKSE+m13qn+2mF33 /OJVkdpA9omhddjTt9uc9j4Mqv5R16PAGCDXk9AdNdDmZSdGRBDEdwJoGvijZAU9+V 6eYw9rQZmTNoTtVy2ePy/DAVkuCWNSrqKYl9WH1laUVyYjs5jYzLdFR7Znvngi5h/M hEpvF4df2hzKA== From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 08:33:30 +0200 Subject: [PATCH v2 04/19] backlight: hx8357: 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-4-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=801; i=krzk@kernel.org; h=from:subject:message-id; bh=NVCidXNtdRLB67P8hr8y4kewhrswWSzn5zoSydb49Aw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmKKfgTV/fcvZp74csJyRHQ2DjuVoXh0+Gqa6ko 9yq+pZCo9iJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZiin4AAKCRDBN2bmhouD 18H6D/wKsHdxf4mP8bNrqmLewggNw25tOX/NDarTbpWMzhLhYBQVsuWUfeZbims5qUdVcfCKgKU uUDKWtk4ysWbvtR4YC6g78H21o3nHpjls2eobHLtHOhN+nGIxaovz5udv0SAs47B0o4uttyIjYV thMkB7o/QCavb17TcvHUxgCJ0C4TknD8TyzEAge1RvroPOnKlqOuFM438PopEt3aULPItS33CPl MKOKreOVAZ+cLqZX9RaCKcKPrNwMHVIF5hNjxrypuEDOuw/PjR/5FROh7n2sCyEG+jjnCrCMpoh sBXBDylYJ+h67DGMKCm96NX7hSX0SLPBiIctUxRA6FNvHNX3tRSKwDgUXKMU/jiPL1MpQfWW/Lc gFzrpDnSS9Nu+HYXWkfEDJBv/d+b0EYa1Vrg1A7HGjphhA1YNgR9CPjiKM36jXSQ0v5JA1HIPGA RTmsJFpjkuIGAcRzO7SQrHmqBnrgvz9XgBXUC6bpaDQyDWvsi+FfgIp3wneFVUybXAx15E2kBTg +N9CvmrtPRC/uqyu269Puqwjuf3k3slJ8hCMS79S+hs6h4kQTtlt+MtYyhGtzQDoUk9iychIMv4 4vKKDxz9GI3AdeSU2PjgG7+bFN7OhvDkqD8JUg1OFeC3KiZqP+x6NrFGpG8VoQOkH78eHa/fial HOx8tAPlGRITEPg== 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/hx8357.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index 339d9128fbde..cdd7b7686723 100644 --- a/drivers/video/backlight/hx8357.c +++ b/drivers/video/backlight/hx8357.c @@ -559,7 +559,7 @@ static int hx8357_get_power(struct lcd_device *lcdev) return lcd->state; } -static struct lcd_ops hx8357_ops = { +static const struct lcd_ops hx8357_ops = { .set_power = hx8357_set_power, .get_power = hx8357_get_power, }; -- 2.43.0