Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1149576pxu; Fri, 27 Nov 2020 00:29:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+LKctuj6kpLy5HBiP5shp9xQEN4OhPSY+F5Sms318i8LptV+qGxSrv8t5XvHUIhuf1HQh X-Received: by 2002:a17:906:b799:: with SMTP id dt25mr6637255ejb.88.1606465778816; Fri, 27 Nov 2020 00:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606465778; cv=none; d=google.com; s=arc-20160816; b=0QF88m/gX0GMKw6fwi0xylohM1xPkISpum+02jEcitLe8IZTqul/+bLfTd/+V5z64W 3YWpTlx/9c+mjUkL4OKvN3JWBsy1tGcFSYe6UkHeuRXj4wvs4qLG0FikXeYqSqQmgCMA TVETseT3ady6Nqn2tKHZWzvXgwE9xXBBhgrbIQQsKw0jTeXYjMWXCFPtFTKqKdlE/7Xa NkXbDHxZWlCZqnCKC5AL0VBt6DvJqk4/mLjaZ9mKAJmg+QYjn0gHbjOEz03P6N7SLkDU bN41XL2SBBjzlP6Y1s1TZYMIxvxPeCgfMyTtt8O9i0T5sk6eT7FAQGysMbvC1Yw2cVXK ZpiQ== 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=VvOq+Zi/CHrahUTvogxV5HI9MG7ly8TSlygcZpw2NKU=; b=WXw4jcm9i5wv/rjIggEEPMSAiX3+Ba20OuWHGEsM5xHresePZkPFVSxHHJBVvcaS+D cKYt1quP7Ek07wEGkl7fAaKTl0udcj+SINRmPWQ/VA1YOxurFGfaoKvvdah4G+H8AeVs KHsQIBeOYDjSwukMKGRskGrlcWxFcPlQDDqHe/6yNtx4/HK3n3Fq7Kr+PBuMl9X4jpXt OG84y3An74iSlR67c3Hq9/RmTCG2hEtju56bKJvapeoC+wDTO40HEw80UDWED/JrP0sz zPvHKSjoWMBfGh1RKfy+m1JdEWjWQ2cN/4Y9r0fBoM2kdRQyN7USUDw17hmrZhluIL7S 5uvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BL/MSEaJ"; 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 r24si1821612eji.211.2020.11.27.00.29.16; Fri, 27 Nov 2020 00:29:38 -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="BL/MSEaJ"; 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 S2390675AbgKZNng (ORCPT + 99 others); Thu, 26 Nov 2020 08:43:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390631AbgKZNna (ORCPT ); Thu, 26 Nov 2020 08:43:30 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D11CC0613D4 for ; Thu, 26 Nov 2020 05:43:30 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id a3so2447789wmb.5 for ; Thu, 26 Nov 2020 05:43:30 -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=VvOq+Zi/CHrahUTvogxV5HI9MG7ly8TSlygcZpw2NKU=; b=BL/MSEaJ1vyfc+neXkZo3m2nXS6eZ0aJq2FC5IT/mKUL820jhA/u5feEKiEunlhQRe zQrtJgdxtDbBbMGMltY+M+UE1ZOxrt6k/gNz9P0FfECY5oyB4sDDv7+66Ae46DZz4Qp0 b1Ar6OuLKkVNwStteZF2zRBJeM/zrcA0Mtl5wYiafW4xHVcUtedPiY5MYyHCl7cR04vj mb9nYE8psZSo9d2mVOkW2q7GN5lvN+nEfn8jAA06B1euZfaZhEISLXjJ715JbAA/JzHX 3kJc56w90k8d1spd6D5S+No6Ueg3J+iR9U5lQiZXI/MZ+1ZjWTOQgvohp8+OCdo56Whl n3BA== 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=VvOq+Zi/CHrahUTvogxV5HI9MG7ly8TSlygcZpw2NKU=; b=NxcR1PFvX1oenmo9+S5HFvCU3o29N5a+5aWatqUDhWno0urXSha4jFMmZGr3pIa0h+ 8eBYIN///d6chNy3WFfoxdvjcvMoXlXIl2ktLMYHrrc/ZjBBCOkV6miu4NbmET928gUf L0FXvdI/oAKb+GlgUItgUpvj8r8Q/rqauhgXjuO8w6MgDc1xBqO3RH4z6PHRbWqhEUY/ aDRrNTqIGpor+ZK9LD92OSs4o6wD1VuYZnC8PFIfqSqpRhNdr9b7j52CsadmFfr3msS6 dESBxiQF7qAk0GRyw2iieKCxA8ND3QMLcpInpy2o7uULP7K4M9QtTBt3CKbwR8XnPdME seag== X-Gm-Message-State: AOAM5308vCDUPCH3OiFUdZEHn+t7DmmwGogk8MHS3j7DmJw1n6q6k1oh LZNnoQvYX7+xCr2izzSmWQMHQQ== X-Received: by 2002:a1c:ba0b:: with SMTP id k11mr3451218wmf.37.1606398209121; Thu, 26 Nov 2020 05:43:29 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:28 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Evan Quan , 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 29/40] drm/amd/pm/powerplay/hwmgr/vega20_thermal: Fix some outdated function documentation Date: Thu, 26 Nov 2020 13:42:29 +0000 Message-Id: <20201126134240.3214176-30-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126134240.3214176-1-lee.jones@linaro.org> References: <20201126134240.3214176-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/../pm/powerplay/hwmgr/vega20_thermal.c:217: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_get_temperature' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:242: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:242: warning: Function parameter or member 'range' not described in 'vega20_thermal_set_temperature_range' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:278: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_enable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:296: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_disable_alert' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:310: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_stop_thermal_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_thermal.c:326: warning: Function parameter or member 'hwmgr' not described in 'vega20_thermal_setup_fan_table' Cc: Evan Quan 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 --- .../amd/pm/powerplay/hwmgr/vega20_thermal.c | 54 +++++++++---------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c index 364162ddaa9c6..269dd7e95a445 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c @@ -209,10 +209,10 @@ int vega20_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) } /** -* Reads the remote temperature from the SIslands thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * vega20_thermal_get_temperature - Reads the remote temperature from the SIslands thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ int vega20_thermal_get_temperature(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -230,13 +230,12 @@ int vega20_thermal_get_temperature(struct pp_hwmgr *hwmgr) } /** -* Set the requested temperature range for high and low alert signals -* -* @param hwmgr The address of the hardware manager. -* @param range Temperature range to be programmed for -* high and low alert signals -* @exception PP_Result_BadInput if the input data is not valid. -*/ + * vega20_thermal_set_temperature_range - Set the requested temperature range for high and low alert signals + * + * @hwmgr: The address of the hardware manager. + * @range: Temperature range to be programmed for high and low alert signals + * Exception: PP_Result_BadInput if the input data is not valid. + */ static int vega20_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, struct PP_TemperatureRange *range) { @@ -270,10 +269,10 @@ static int vega20_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, } /** -* Enable thermal alerts on the RV770 thermal controller. -* -* @param hwmgr The address of the hardware manager. -*/ + * vega20_thermal_enable_alert - Enable thermal alerts on the RV770 thermal controller. + * + * @hwmgr: The address of the hardware manager. + */ static int vega20_thermal_enable_alert(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -289,9 +288,9 @@ static int vega20_thermal_enable_alert(struct pp_hwmgr *hwmgr) } /** -* Disable thermal alerts on the RV770 thermal controller. -* @param hwmgr The address of the hardware manager. -*/ + * vega20_thermal_disable_alert - Disable thermal alerts on the RV770 thermal controller. + * @hwmgr: The address of the hardware manager. + */ int vega20_thermal_disable_alert(struct pp_hwmgr *hwmgr) { struct amdgpu_device *adev = hwmgr->adev; @@ -302,10 +301,10 @@ int vega20_thermal_disable_alert(struct pp_hwmgr *hwmgr) } /** -* Uninitialize the thermal controller. -* Currently just disables alerts. -* @param hwmgr The address of the hardware manager. -*/ + * vega20_thermal_stop_thermal_controller - Uninitialize the thermal controller. + * Currently just disables alerts. + * @hwmgr: The address of the hardware manager. + */ int vega20_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) { int result = vega20_thermal_disable_alert(hwmgr); @@ -314,14 +313,9 @@ int vega20_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) } /** -* Set up the fan table to control the fan using the SMC. -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data -* @param pOutput the pointer to output data -* @param pStorage the pointer to temporary storage -* @param Result the last failure code -* @return result from set temperature range routine -*/ + * vega20_thermal_setup_fan_table - Set up the fan table to control the fan using the SMC. + * @hwmgr: the address of the powerplay hardware manager. + */ static int vega20_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) { int ret; -- 2.25.1