Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp580618pxb; Fri, 8 Jan 2021 12:23:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeANjGY5fyfZ/3IN+n2PU1sXgwq4onNWFLLy0UvjbNachaS1aNXB3kOaun1YFxpqX0GFGr X-Received: by 2002:a17:906:f905:: with SMTP id lc5mr3706865ejb.177.1610137409752; Fri, 08 Jan 2021 12:23:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610137409; cv=none; d=google.com; s=arc-20160816; b=n11Zzv8453a8V++PKRv2cAE9v013xbPG5DQ3RZaahkGe6e5GdB/CuCT3mXDeazfRAV aRs6VwxiRs6AM7DpgupUXWRD12X3lQ0PIBf4tevg3btIajQOsQxCKOTh5E0oE6SLB4LA Vv2bWUHHNcTqpMOgJmdCYag3x9HBPkwfsQFT7ugFo0B1LqkC5D1wx/2WbKSu/zLE/ICh qm+Pm0124VmARHauCcelmsSLYRtpsv0MJ8Q23MuauvM4ZCjfqB9vjhEtSI52yfWoUtkU gLMO5BpcexoZEF72cSUMLxWlRMS/1KzotmtHlGxnLoEoqZ5e08BJH1ALrItxjqsJ6lN+ O7Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R1cIGcueVpiwKXCsXAGeLOrVeaRuSdzc2IFkwmNetFo=; b=BdSpaL9XJQysUKN2Ob+bUyiSU67VZoFQRDv2OPuQyL0wsP2U0gEqpXMoXizaHC8VtM W/SSvI5xtJvz7tO2IXHco+1PArSwWvEreAUiZqDIbl/PIPBG/Q1Eo5/NvyhkTl2p1rRo jq74qSWn6oRq0DoNNjWR/6EaMWauKIa+aZRJZdK1qg0M7NpjftAsC3JDgBwmsi0JwBoj 3hnGe65tUbzyPlU8gi/Cacss/1/lRXqawfHMuYvi+ALZm26f3t1jTWeigWYrvFCqAn9J gkGrH5yVVO7DcYJVhnilH59GlEi2P3cAXVDrg2VwAQQ+kt+HdLxItAshEs+8JuSKm87s Hfww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l0LVv8Yv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si4113113eji.387.2021.01.08.12.23.06; Fri, 08 Jan 2021 12:23:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l0LVv8Yv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729092AbhAHUT0 (ORCPT + 99 others); Fri, 8 Jan 2021 15:19:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729259AbhAHUQl (ORCPT ); Fri, 8 Jan 2021 15:16:41 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCA52C061240 for ; Fri, 8 Jan 2021 12:15:37 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id e25so9469639wme.0 for ; Fri, 08 Jan 2021 12:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=R1cIGcueVpiwKXCsXAGeLOrVeaRuSdzc2IFkwmNetFo=; b=l0LVv8Yv2qqohE+nDbzioDjwD7IumU3x0mYo0uB5VLZL4cfV3nC1+PdifOuff89qz3 WBcqrZJc0UxjoiglM15XpESfKjFG9UtPvNDMIoflEAsBeMJibYgpd4gebN/tASO3ncme 9zY3Wwt3gC6Lss/3zX/gE1z6x3mvKqC/W5ebaBBbSiRJ0LahhPvFcxkb1gj2xAfeQ5xa lon5sbPe+45qR9l6juUzf/JmQ/aOJyAidvclSUOZtTTxnZi5Wu3locXDnSeq+R4XWUbP Mru96URrGOFc3ri9j7RrGYKAvUcGQAvyWv9m9ciIxq+jCERzMETtgm5KddxjOnIb6WGb QEsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=R1cIGcueVpiwKXCsXAGeLOrVeaRuSdzc2IFkwmNetFo=; b=TYxSzWLOsPvu6UEFd/J/ZdqenSeNLCJtXzRRVd8J7B4VbsB0h32lv+VtyzLQddE+IR Rkd/lVS14VP2jD14yfx6Wz6ohhZgJ9UD+ZqdnEdm0wbgsy9NFR4/RFajzqdRCKaBWmES E/IfjMMKHfGWCYt9Sm2pspSMSu8RyP2KHlxCVa0/4i4XFt6ofJakcFUpv/A5Hu65iqjT MRWEwwlOGd1qc0T181kSoNmQSYHKbxaSPKqcVwRO6blVpm5/aTRxY5QV5Pp6iB90whUS V9RD4bjcOxnLk/RQLbHQG79j62kfke4e68D+ubv8sBVAsXZ5dSF8Y1j1sFr2NewOSWhg kX3w== X-Gm-Message-State: AOAM532Ne4AhILv2NHXUstr9QLvE7FyEe9EJuUtmtQR24G2767j8CGIi NtmlwbDGq8N8VRLGhuM4LzXX+on9d/BTI6FG X-Received: by 2002:a1c:c308:: with SMTP id t8mr4595425wmf.22.1610136936655; Fri, 08 Jan 2021 12:15:36 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:36 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 22/40] drm/amd/display/dc/bios/bios_parser2: Fix some formatting issues and missing parameter docs Date: Fri, 8 Jan 2021 20:14:39 +0000 Message-Id: <20210108201457.3078600-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'gpio_id' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'info' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'signal' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'index' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'ss_info' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:1210: warning: Function parameter or member 'dcb' not described in 'bios_parser_set_scratch_critical_state' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:1210: warning: Function parameter or member 'state' not described in 'bios_parser_set_scratch_critical_state' Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../drm/amd/display/dc/bios/bios_parser2.c | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c index 670c265838178..9f9fda3118d1f 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c @@ -485,10 +485,11 @@ static struct atom_hpd_int_record *get_hpd_record( * bios_parser_get_gpio_pin_info * Get GpioPin information of input gpio id * - * @param gpio_id, GPIO ID - * @param info, GpioPin information structure - * @return Bios parser result code - * @note + * @dcb: pointer to the DC BIOS + * @gpio_id: GPIO ID + * @info: GpioPin information structure + * return: Bios parser result code + * note: * to get the GPIO PIN INFO, we need: * 1. get the GPIO_ID from other object table, see GetHPDInfo() * 2. in DATA_TABLE.GPIO_Pin_LUT, search all records, @@ -801,11 +802,11 @@ static enum bp_result get_ss_info_v4_2( * ver 3.1, * there is only one entry for each signal /ss id. However, there is * no planning of supporting multiple spread Sprectum entry for EverGreen - * @param [in] this - * @param [in] signal, ASSignalType to be converted to info index - * @param [in] index, number of entries that match the converted info index - * @param [out] ss_info, sprectrum information structure, - * @return Bios parser result code + * @dcb: pointer to the DC BIOS + * @signal: ASSignalType to be converted to info index + * @index: number of entries that match the converted info index + * @ss_info: sprectrum information structure, + * return: Bios parser result code */ static enum bp_result bios_parser_get_spread_spectrum_info( struct dc_bios *dcb, @@ -1196,13 +1197,11 @@ static bool bios_parser_is_accelerated_mode( } /** - * bios_parser_set_scratch_critical_state + * bios_parser_set_scratch_critical_state - update critical state bit + * in VBIOS scratch register * - * @brief - * update critical state bit in VBIOS scratch register - * - * @param - * bool - to set or reset state + * @dcb: pointer to the DC BIO + * @state: set or reset state */ static void bios_parser_set_scratch_critical_state( struct dc_bios *dcb, -- 2.25.1