From nobody Thu Apr 9 20:28:25 2026 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 D117F2F1FE4; Thu, 5 Mar 2026 20:59:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772744345; cv=none; b=SAdxnqLV/Otej3mGW2+2S3EO81uTrn8CaQE3GsNILN4hNCVMPz/e8o/A5UgtJ642U14SOPKGUtyuX3DAHn/xDJhmUfvG3Wg5X5kubrMZZ5CMZ8cGMP3bd8Mp5ardI3c18CF5fWgDNxRK1spjpZClEj2VDPu6AWHHTG37J+nSKYI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772744345; c=relaxed/simple; bh=jPBdXMqfUo7wwEIj2HJo9F19V8ubUhRdIXmXwoAiyZk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bjE6jCws1vfWLa2J1EtPUaf3vpCQaxwscWm7y8mtZ6UlA3l2hwukGYW8NmZERcH/K/f11bVNkeNnQmOly7qcCkPl0NnV9hjGk8Th+NmsFIOT18S/eIZpRWntIKnbrzz0mN1fPbB1lCffNuiytgUfmac5+edUZmNt61xBZHu0LIY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=w+Fwnm7c; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=V8cmIE+8; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="w+Fwnm7c"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="V8cmIE+8" Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4fRhjC4z1Mz9tpn; Thu, 5 Mar 2026 21:58:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1772744335; 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; bh=GyEq1uEoXZyZP4GaI0/iSVZpkJoA/M6saV77VFx5CQ8=; b=w+Fwnm7c24w57/Q4ryyq7ifG3FvrjPaiS2hVmMzaEdL2aQPtUdI7PjUvEVjXR/CK4NE/lv vRgGTQQn6BZFYhSQL1Z5DgDHZBnXlGCbvhdgnEbYnUD0FQnAzj9gRjebmkuT0xW9MWvoZF Adl93Fl+vjEgdZTEbpZWeagSLNgFNCAj+2zXC+iksDOoJiV4dRDpYyeBtvWoJIvgxGkt+U PnJ+GbRovqRoPamKOscnmCuKF1M+jS0Cnyrn2bKqfl5SLlraXH1kcXPLO7KQ3lm1QfWpq1 gSjICAcUoaORXh1KEd4V7ASMWLIdIzzq6/BKNZlyuPY50rhEZKVD/qJLInH+5w== From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1772744334; 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; bh=GyEq1uEoXZyZP4GaI0/iSVZpkJoA/M6saV77VFx5CQ8=; b=V8cmIE+8z3iLHeLmaFrOPA9uUN/iO2VASNI24vgU08tnEeAsetQ27NoIzScNmRJ3XwlGPF oIsnE39PfWTI5Os1vfPu+R5xjd2f+4m4fittJaAzyOIqe0hZG5nf+zRJM2768Uzt840zYU jHxvwiWmtodMR0F7+p1m2hyiS3+w2BefduItjz9HKJT0TPNcCNDuKs3KPSIMf1GQ/OusBv woKG0drBW1/iAsCtG1lkLvUSh8W7FzNYpDZ83dHwEYlm0EljDwecuZvBy5dJfYAxk1eqcQ ngWBIZuMGx48MTg5ajYJ+9C7J3Zc+o+TMYvxc0FVUfGXuZhS1D5Dzwgg8nqbOA== To: dri-devel@lists.freedesktop.org Cc: Marek Vasut , Geert Uytterhoeven , David Airlie , Maarten Lankhorst , Maxime Ripard , Simona Vetter , Thomas Zimmermann , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v2] drm: of: Fix drm_of_get_data_lanes_count_ep() return value documentation Date: Thu, 5 Mar 2026 21:58:15 +0100 Message-ID: <20260305205840.95978-1-marek.vasut+renesas@mailbox.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MBO-RS-META: zkedbg6co371x7ef5sfns7p3bkmde69j X-MBO-RS-ID: 6718394f5440abbd735 Content-Type: text/plain; charset="utf-8" Update drm_of_get_data_lanes_count_ep() return value documentation to match the drm_of_get_data_lanes_count() return value documentation. The drm_of_get_data_lanes_count_ep() is only a wrapper around the drm_of_get_data_lanes_count() and therefore returns the same error codes. Simplify the return code description of drm_of_get_data_lanes_count() and drm_of_get_data_lanes_count_ep() to -ENODATA and -EINVAL. Fixes: fc801750b197 ("drm: of: Add drm_of_get_data_lanes_count and drm_of_g= et_data_lanes_ep") Reported-by: Geert Uytterhoeven Signed-off-by: Marek Vasut Reviewed-by: Maxime Ripard --- Cc: David Airlie Cc: Geert Uytterhoeven Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Simona Vetter Cc: Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org --- V2: Simplify the return code description of drm_of_get_data_lanes_count() and drm_of_get_data_lanes_count_ep() to -ENODATA and -EINVAL. --- drivers/gpu/drm/drm_of.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 4f65ce729a473..e99645103b23d 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c @@ -507,8 +507,8 @@ EXPORT_SYMBOL_GPL(drm_of_lvds_get_data_mapping); * * Return: * * min..max - positive integer count of "data-lanes" elements - * * -ve - the "data-lanes" property is missing or invalid - * * -EINVAL - the "data-lanes" property is unsupported + * * -ENODATA - the property does not have a value. + * * -EINVAL - the "data-lanes" property is missing or invalid */ int drm_of_get_data_lanes_count(const struct device_node *endpoint, const unsigned int min, const unsigned int max) @@ -539,8 +539,8 @@ EXPORT_SYMBOL_GPL(drm_of_get_data_lanes_count); * * Return: * * min..max - positive integer count of "data-lanes" elements - * * -EINVAL - the "data-mapping" property is unsupported - * * -ENODEV - the "data-mapping" property is missing + * * -ENODATA - the property does not have a value. + * * -EINVAL - the "data-lanes" property is missing or invalid */ int drm_of_get_data_lanes_count_ep(const struct device_node *port, int port_reg, int reg, --=20 2.51.0