Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5A6F4274B46; Sat, 12 Sep 2026 14:53:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789224809; cv=none; b=iJXsJAj8M3w9jp5C3RkAHoi017JYizmKDzFntHXuNn2igkWQmL1F6vtgl2ejGGnwf6kDmVHIYS+5u0fyd3xfc4CslNvY1hpQwO76/6ifFIYrAd92Tgy9BeNITWER4Ln/mX4jelIXChVS9WF2Y0lv6rUn3NvsOPIPT/SHuiAI0v0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789224809; c=relaxed/simple; bh=5GHuEOCYa2apVUNK1fkMtTS5TR1TBeg2NopHSfCvr/I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zuzx2aWPTqRNYjpbHHnAdUE3Y5lI174XoQnLMpDvY2knCGdwRJQ3r/jrHmeq5pt/N2mhhLM+qhQ6QY7Z6xxHsS30jptbrr0CEwApwpGtTJl5sskmdF9ZnQqTXmcu9akG1k0jbH86gAzcreg69zFWDrg5nTwWeJPSvd2NjmZgDZo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=chje+8ro; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="chje+8ro" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0968A1F00893; Sat, 12 Sep 2026 14:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789224807; bh=Rb7qBqvwILWzjBhvnCnDj2dg6ES/1ELiqkry6MoKB1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=chje+8roht/lK8Io6d1E3DpLOw+6oB4n7sjrxtDdwV9hGC5tY3y49ayE5s89Fly4l h13FYQx1eudC+IDUTOhYwaEHn5qtPNV7MPwRDzKwILj9QkjLA5NXCy3uRF733hYGHj D2YHTECetLzfy3Qi2KtGo6M2KKrlJEla5oIVweuQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kuninori Morimoto , Laurent Pinchart , Rob Herring , Sasha Levin Subject: [PATCH 6.6 1069/1424] of: property: use unsigned int return on of_graph_get_endpoint_count() Date: Sat, 12 Sep 2026 08:58:21 +0200 Message-ID: <20260912065631.243673655@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.279695368@linuxfoundation.org> References: <20260912065607.279695368@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kuninori Morimoto [ Upstream commit 574849054d97cee5be78d6c149d84685647fe774 ] Because of of_graph_get_endpoint_count() doesn't report error, just return count of endpoint, the return type should be unsigned. Tidyup it. Signed-off-by: Kuninori Morimoto Reviewed-by: Laurent Pinchart Link: https://lore.kernel.org/r/87plxbcvzb.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Rob Herring Stable-dep-of: 62bac3202042 ("drm/sun4i: tcon-top: Keep mixer routes distinct") Signed-off-by: Sasha Levin --- drivers/of/property.c | 4 ++-- include/linux/of_graph.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/of/property.c b/drivers/of/property.c index aaaab76ad4179..225b5c986cbd0 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -819,10 +819,10 @@ EXPORT_SYMBOL(of_graph_get_remote_port); * * Return: count of endpoint of this device node */ -int of_graph_get_endpoint_count(const struct device_node *np) +unsigned int of_graph_get_endpoint_count(const struct device_node *np) { struct device_node *endpoint; - int num = 0; + unsigned int num = 0; for_each_endpoint_of_node(np, endpoint) num++; diff --git a/include/linux/of_graph.h b/include/linux/of_graph.h index 4d7756087b6b6..a4bea62bfa290 100644 --- a/include/linux/of_graph.h +++ b/include/linux/of_graph.h @@ -41,7 +41,7 @@ struct of_endpoint { bool of_graph_is_present(const struct device_node *node); int of_graph_parse_endpoint(const struct device_node *node, struct of_endpoint *endpoint); -int of_graph_get_endpoint_count(const struct device_node *np); +unsigned int of_graph_get_endpoint_count(const struct device_node *np); struct device_node *of_graph_get_port_by_id(struct device_node *node, u32 id); struct device_node *of_graph_get_next_endpoint(const struct device_node *parent, struct device_node *previous); @@ -68,7 +68,7 @@ static inline int of_graph_parse_endpoint(const struct device_node *node, return -ENOSYS; } -static inline int of_graph_get_endpoint_count(const struct device_node *np) +static inline unsigned int of_graph_get_endpoint_count(const struct device_node *np) { return 0; } -- 2.53.0