From patchwork Fri Mar 10 03:24:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13168661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1595C64EC4 for ; Fri, 10 Mar 2023 03:19:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D208F10E930; Fri, 10 Mar 2023 03:19:28 +0000 (UTC) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on20626.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe12::626]) by gabe.freedesktop.org (Postfix) with ESMTPS id ADF6310E930 for ; Fri, 10 Mar 2023 03:19:26 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lWijqVnflaMEAQLLkzUCAANTpOchOZQzQ3+yvuvREYcbLwgeYgsDZ9zJ6QwJh7TgOxwfQZ28CaAHAADRn0ymAH6Ajo1FABE4Umgz3ePf03reF+btXUCiYUwHBPg6SoNXho7K06+mhEagx3JSw65YrZJH5MGZjkgFAuRj26hrOqjKW8tuwiD/Px73fzhDcdrhUF4CQOixzw944vTNxSlXupMrWy/rrh4ZICWTdE+qcISf1p1hU0fyuJFL71Sr/b9+O36FA4S1cQr00/lXnIEQQ1Os8yQGSTdACZhQpNjG7XWUwJN5y65r4Y0DbYMrH0ZTOdt5m1aTl47lWM2BdJ0vvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r7yH4C3XMeeaCqp0mdVWS1m/sRhKph1tbMUF6m3X5ZU=; b=SvhWUZkhCizQ6nuncGpqdQjfigPlBNZywa5MmsIY/nRioBKpwejhHzgthEpTAiLJuB9nxelJL3Nd6xPA3N81/zFQdzW2/19K0DnZIfwyJAP03tuLgRuXtd0YvFug1PznTDfAdqUwKmf1PXTC4aliwqiATdarTRmtQe80yJzV2FzoFPKXoqzBUSPJmDgPcIP+ii1QALFB6Cp1vawjqtDQhL4nX/yWNrjzShlHLK8eQmc59Apy9KTZk7DkOZf0Fcz0SY/nb5+TpPccl6mL3Pg6h0Z+n+pbVYQUXoTDnB3Cgc49lgpyMTrUwy5G6KbduG9ERixQZrjOtsUabJ/ouagk7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r7yH4C3XMeeaCqp0mdVWS1m/sRhKph1tbMUF6m3X5ZU=; b=nlSmveiKu/TVl20NXSyBDornsUawC9Qdcp4rYdcaEXZeyiH6jrkAhhHwtwE26wzp4rwCAfgD0kJfQCqIBFLy43okqJJ8o7DTs9iXWTvRErxUN8247Fxu/A4npLO+iHIukkl6oENPamO75ypeLtv4H/MV+nZ5mIuBBrVsF9hwVOE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by AM0PR04MB6961.eurprd04.prod.outlook.com (2603:10a6:208:180::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Fri, 10 Mar 2023 03:19:24 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d555:5ebe:1938:29e2]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d555:5ebe:1938:29e2%8]) with mapi id 15.20.6178.019; Fri, 10 Mar 2023 03:19:24 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc Date: Fri, 10 Mar 2023 11:24:17 +0800 Message-Id: <20230310032417.1170476-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI2P153CA0036.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::11) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AM0PR04MB6961:EE_ X-MS-Office365-Filtering-Correlation-Id: acf88056-ac3e-41e4-5662-08db21163f71 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xjz8O5jrS8+IJTZ6nWW0T8NjkCXbImHbOGqvmPd+6rGXZ0tGf1N7UYLA7jrNhhjmpRcRI7bteHRW6FxJpsb1Ewgt9RiOfqXzfPqlKAyEgIT8ef85DtlgFI+AEAtJJOC+tAmZUK9UGkFPTFqkISpKC0b2b5Ip4U2yt0GNewYIngkKs7TzPbujohjtsCvQib6C274ZI5bjqVk44IUQpCPP3GaeT9P7F4r2iK/HKco+zMMXTYh3s/MkROojkzvlJvg67rvz+YQQ0dsdNsTw/MMhSlIAol49QGcjCP0rLgp2+09akQVWAMddUXyehkEN0q/zyFWGMj1Slu7A5mAssDQBiMt83yvJj9SmPYR0KWKy6XV+ILVUddmdk+OpZaB88ljf7j/EmbrGkbKe2qJI7lu9q8+/jXEoWmXPQkuCrakwjPIq81cu2ZcFBzJfHa67rOT6y3OIxuQ7pc4SWZ5ZV/1AhkJ17bifvswm4UTj+dRO7lrSXS4n9qtA6a6Nhd7zwkqdYCX3WYxO+tL3jdY1nWe3fR+blSoK6941eDuHFyPgvzqYXu3TFMD5Dbo/myTYJOIBCCcwi4iKXPxHyXvwKLotZaeUQgZUfOeIq2FNohRIdmefRozaJX4WHtkssRbvrKPnZ2ZRj3R57QYSnxpJ9gTy1aKHvxdnQdtfkz3HaNRghglkpqAMlFvTnUjsCK2zHYBmY+3ZMDcPBFnDE5mt7uRgrw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7046.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(376002)(136003)(346002)(39860400002)(366004)(396003)(451199018)(36756003)(316002)(38100700002)(6486002)(52116002)(8936002)(5660300002)(6916009)(2906002)(66476007)(4326008)(8676002)(66946007)(66556008)(41300700001)(86362001)(186003)(478600001)(38350700002)(2616005)(1076003)(6506007)(6512007)(6666004)(26005)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jsksaLfnu3UEedJpqd5PjZ1vltSxLnwWDuQh5vgZJXLeJ1q4VT40AxzaSRogk2qfL7uhBa1SyN91xCRr02Me0rabL60X6hIPuZAGlHypTITNXafncWRm8EBUeYYUZhzGazWznQs1z7MrfJnjkeqMWAKBUVgZtQ6IFE4G6Rr17tUchQJDsdTkusWyuLIFLNRjrhuAFhvlqXmE6Va1oJUECWSP2KMo14c1Y1eLf0En3Cz3eUegrRjksmuGzqZwrTiWHFPoNugxhGUtVhuM03uFWej+gM/sQF63tRHwjZXpplpF/bmMhdOcvIJhFCmu6+vUpoBvx0pCpr7BqPrvY0+gJ82bWYa2wuy6cEzpBMSXnt7sM5rdRR9/+fYTTD4Pgu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Y/WusxWATvkZwZEhaoxkzL+OQAf1zYxnF0fPrHwYSmY++okFspMPjCcIUCD7SjVoL4WmjqQDPiQJpYC3GYUnVQJcyNdQWb0Qc0YgrtYlN9sWGg1/9FKN4NBxtq6W/arciM/Q0Yut X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: acf88056-ac3e-41e4-5662-08db21163f71 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2023 03:19:24.2321 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4F8hD1pVzl0pXOkM3i7+fz1ZMpmGW+UdTXvXj5CRJ3s0gz2mvZqnhOz3lCNMrQVMYa+/6vj6C27rMHoDHCWQiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6961 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tzimmermann@suse.de Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The returned array size for input formats is set through atomic_get_input_bus_fmts()'s 'num_input_fmts' argument, so use 'num_input_fmts' to represent the array size in the function's kdoc, not 'num_output_fmts'. Fixes: ("91ea83306bfa drm/bridge: Fix the bridge kernel doc") Fixes: ("f32df58acc68 drm/bridge: Add the necessary bits to support bus format negotiation") Signed-off-by: Liu Ying --- include/drm/drm_bridge.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index 6b65b0dfb4fb..288c6feda5de 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h @@ -447,11 +447,11 @@ struct drm_bridge_funcs { * * The returned array must be allocated with kmalloc() and will be * freed by the caller. If the allocation fails, NULL should be - * returned. num_output_fmts must be set to the returned array size. + * returned. num_input_fmts must be set to the returned array size. * Formats listed in the returned array should be listed in decreasing * preference order (the core will try all formats until it finds one * that works). When the format is not supported NULL should be - * returned and num_output_fmts should be set to 0. + * returned and num_input_fmts should be set to 0. * * This method is called on all elements of the bridge chain as part of * the bus format negotiation process that happens in