Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp968482lqs; Fri, 14 Jun 2024 10:35:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvhN3AksQ0bFDKLuMnFoA2DYApCqeUWc+8K4aIgCj7CLeopgmGXAT//xJLoQtlWm4Lw43IQJ0sgOGwR/AMkwShGgH7bvqxuqWbF8weDg== X-Google-Smtp-Source: AGHT+IH3coF90OJ5uFGUY7W3OEJKJkUkjMRXDHaDf4waOdNjUpaPLNRnT9oeR26evqVhk+pFBOff X-Received: by 2002:a17:907:6b86:b0:a6f:6d0f:1474 with SMTP id a640c23a62f3a-a6f6d0f1680mr114747266b.47.1718386524934; Fri, 14 Jun 2024 10:35:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718386524; cv=pass; d=google.com; s=arc-20160816; b=e6rvCwwEAbdBgCPws7mGNadYqkfqHr39FmjwXGeBke8hvSBAS9sfhxpLCZXLU3ZXSL lmlY2ragGcoRbPR+GsUsLXOUTWuiGACtlHEKGpvEa2bPqVT4m84OTmWsJ6yepDhZ59yO WPeHayp5/dwLDhhlxUDf7S83VU1QGH0aPCUmWzU12/ao3JQaFhtdjLGRpJIG6MJLkUf5 7q+tRLa/mYp+qeTY7YACb5spYeTgsZHntWPdxIzMe9EYNEaPAwfASXJMNaYzN5Z4oGyk BRSh54LOxvy9yIZocgSY38OhW719Wl2raLuGsx/JgCG5YybungNMPrLPI3rxVjdTf72U eHTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3ETpH9U3zJAUx8gMI+S0kUDXLMTaIq1vXRUaXwjXffw=; fh=bujJSrd+k1h/0aZbC1LeFD2/cY2NpcCgJFppOaBslqM=; b=QdNlEiZgCrlgU6dl2ko686QR8F1tu/EExvsNQ5pcwcGETqy4K08YLDVHVBSS6ORaZu CB0r+Cw68DX+FS70/v4DFG5cyIePTRrmeYONw1FruoOLA0u/ERv79OGdJFUDVQIu5Kl7 sc1mZbYrNJDJypYVO/48jRiMiviRqGzOorXMhuSElBSd2xHTPz8qFrH4danIOYSMS5Fz fWJgGTjsaJfBaF9LUu5Y8Tdt1n1c+SsSUW75U0pCRWqXFyYHPXPrCi6a8AT0CRUgPi3v mpb18T90RTBk3HSlNI5vVG6lLBUk64Ncmt0K7nrDnBn7LVp+q5t/LGcdu0eJITzviDbj Ajsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=j9mZJCji; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-215369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56dd647bsi183112566b.444.2024.06.14.10.35.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 10:35:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=j9mZJCji; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-215369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 A3C0C1F22C8F for ; Fri, 14 Jun 2024 17:35:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F59E1AC23B; Fri, 14 Jun 2024 17:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="j9mZJCji" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 2D6A71A2FB9; Fri, 14 Jun 2024 17:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718386378; cv=none; b=L7oFe04NT3OrrkyvWG2Q+q2EtYVxkzNiooozasRkibXeB029pMrY67Qfnug8X69zLESB9yDyweu0+VLRHbCxOM3D2p+UVBxCoU+hGu8E4ITgCwamcon8Nc1MzdpxORsXH0Sc0EZCLFeMrsNPN/znBj00rZM6G+F0fjImFn6dU9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718386378; c=relaxed/simple; bh=jCoNvzNYdAlBtWeLwq9+MucCPKALc9tEZvAvUc+Vmj8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GibUh8BHYJJ/W9zaUnfNKzXZrzzlk2UgC5+1GR8jG9ZCQAr8i8Mt7p1xhsrZBfIVE7bIKBVnRv92lcZCitQSD1F5238WX1Z4Fi3l7xper6rD0tt/S9Y/RHb4ZP7NcH9ihDEW107joqHQufyts7vAQT3bgIleKPg5Z7w+IkTbPGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=j9mZJCji; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPA id 8A994FF807; Fri, 14 Jun 2024 17:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718386369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3ETpH9U3zJAUx8gMI+S0kUDXLMTaIq1vXRUaXwjXffw=; b=j9mZJCjipsjNo9x7akuPGHHDXKc0Wm1HJ4TWq+w5/oxvjSXJeUY+HI4VGcrdMaAoDxP+sf vjpuSZ2vzgCxSbmmbnmNnyBDB+XHxQWKG8KuiZbd0HAJ3Yh93hcoENeyGrpSzUa9yJtufb crnSJHlhie1of9gkpFRwnOnGLsOiVUXyMJPhQSzGrDrS2y3g0tJRrShODauoGhpzLlAt2q ETxw6v4nimxi2MFQx/Y1I+tShZ7zG+bTZy703umJLkihTezVbrD1jtcp+1yQzLIUEoQL6F qHXckEQOvxIF/VFUHFzQbnqrL6oEjC+FCQnjr4UeaZyfu+Y6Scc+P8vc68kiZw== From: Herve Codina To: Matti Vaittinen , Herve Codina , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Weinberger , Anton Ivanov , Johannes Berg , Marc Zyngier Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-um@lists.infradead.org, Allan Nielsen , Horatiu Vultur , Steen Hegelund , Thomas Petazzoni Subject: [PATCH 04/23] irqdomain: Constify parameter in is_fwnode_irqchip() Date: Fri, 14 Jun 2024 19:32:05 +0200 Message-ID: <20240614173232.1184015-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240614173232.1184015-1-herve.codina@bootlin.com> References: <20240614173232.1184015-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com The fwnode parameter has no reason to be pointer to an un-const struct fwnode_handle. Indeed, struct fwnode_handle is not modified by the function. Be consistent with other function performing the same kind of operation such as is_of_node(), is_acpi_device_node() or is_software_node(): constify the fwnode parameter. Signed-off-by: Herve Codina --- include/linux/irqdomain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index ab8939c8724d..a3b43e357009 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -314,7 +314,7 @@ static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node) extern const struct fwnode_operations irqchip_fwnode_ops; -static inline bool is_fwnode_irqchip(struct fwnode_handle *fwnode) +static inline bool is_fwnode_irqchip(const struct fwnode_handle *fwnode) { return fwnode && fwnode->ops == &irqchip_fwnode_ops; } -- 2.45.0