Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp350798ybx; Wed, 6 Nov 2019 18:20:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzHhzJBXHynw1F1viUzBMQg6mF78qQ/RtGJ4R/nP1YTJSzRDjn9AXGHx9YaE3LkDdWtesi4 X-Received: by 2002:aa7:c942:: with SMTP id h2mr1096153edt.238.1573093255593; Wed, 06 Nov 2019 18:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573093255; cv=none; d=google.com; s=arc-20160816; b=I3p1zeIxBJmZ2XfvODQ9vv1GJ/Y5tUjPEn81L3YmPuPgBZa6mU30H4OdeSppjO5AGg VmuDGiahJikdbGGfT5nkUbVXSDHuY7BtuL9cmgKlvi1eYgJ1GnXKSgNXloI1EA+YZUTi Mn0GQTbf9QY5Jl++iwmC95iVVZoz9lA2MK7YzqN8WL42pmmeGhrLyPZriagUuJXGICPO lANh+RsDbq3Dd7sH99/hgTH3CmM8DlPQdqpuPzxqkw9cN9vhv0dyJ21UWjKJPdxUkQNO vfkg3CpJ9KsDHkSB4vNC6JomcWSU1O7KnB72k9wd8uG2jcxwiZgDOFYm8/PMxeg9eYu5 vnfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ESzujBJ49FNysqkrVH1S+PaByQD/Q6RQe2i3iP7hmcM=; b=uFDHqRtu/TmLfmesR4xRwCVkEs4+n9klXmufdICwmyJL+1QEP5BkDLurF1KKtJvSvG 6gql7JR6HDwWyhGrrVc2tsSKOOO7YiVwaweZdir0F89hfNVQo9jRMUohobqFLGcCY3ui zhX3DAzf8g2hAZ/kHq8HbMIgXU2z+E79OxSC5912hV5PkHNOKliEhgZYR4eIbEc47HBm 2WliA9xAllEizYWr/mfrI/VlD6wYpjhyARqe0ytivI8q80BVYkzmfTMcd91R4D5B0Sxn od8bInUAEbDHkn0F74ScGl6ZJ5s8cJ91OMOI+i0Khto+DgrGTBnIyV3hvSljELpbxOq9 e4LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CQ+vAjWj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t1si528336ejb.341.2019.11.06.18.20.31; Wed, 06 Nov 2019 18:20:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CQ+vAjWj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1732941AbfKGCTg (ORCPT + 99 others); Wed, 6 Nov 2019 21:19:36 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:38421 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfKGCTg (ORCPT ); Wed, 6 Nov 2019 21:19:36 -0500 Received: by mail-pl1-f193.google.com with SMTP id w8so373091plq.5 for ; Wed, 06 Nov 2019 18:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ESzujBJ49FNysqkrVH1S+PaByQD/Q6RQe2i3iP7hmcM=; b=CQ+vAjWjwKpOYgW5Xyc54KVd3YtC1W1XfT9E7/13c3afe+Gm2USP4E3PiAbquqxZg7 /1670zoX75D9BbW6a8xPRRePRFOK+2c+oTAVaom4A0q6A7wXgaxMev9B6Og+bKDLY10C Vxz6KZiDCsRmdESG+0qB3MTSl7mQpRUTPjQCpBEhB4/hokqLHFOg5+qySvrDNVUnz/Vh 6q4iGvc1ftMGWazfBjEs9SRIOPGFu8kzaGpedFlQYnODyT4q1oTNc9qFVxrsGnFgWtGb MpXOhIxyyt8pCBLTChlEtAhCNmX5uV3mLjmN0jNrGH4JIvcKbJPHDNRxQPRlIfomwzPc UOsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ESzujBJ49FNysqkrVH1S+PaByQD/Q6RQe2i3iP7hmcM=; b=IG0tl6W0vVVagWsIKj4yQoh6wKn0aoJ+7FB5cKCMSUlpyqacONvapDA6qBHIU63AbL fYoYz6jiYJL2dpNkjDtQb7NeztHy+v/6qNfV5IUUcDyEVZGRcK+Uaf0lx3n01QVxwj4M NF3NHaxPQYaX4MnVcOg1BaOtMXE+2rTTk5uTnEFfiloU97Y9yhLlIZ4Il3Ghwrt9Cxkw hDddbqHPTeoajFpayhz4zQUzjnboITu1VtEiVmJq25lVqt+lKHyLLDfLRHt/TGAhGZtZ BgVDQKLx8Yt/gManDfoc2AiCtXZyA1EIcLcHDy/GpGTAToNhI6z+odqhdZTEyQ6NHfrl TRkw== X-Gm-Message-State: APjAAAWpR5ewWI1b37XRJVSJoehBfWw6a8yHjhLPQ1xxpq3XrItCaYxe erTzpkTkR2GCaP48VM1HZegULg== X-Received: by 2002:a17:902:7d8c:: with SMTP id a12mr970607plm.221.1573093173408; Wed, 06 Nov 2019 18:19:33 -0800 (PST) Received: from localhost ([122.171.110.253]) by smtp.gmail.com with ESMTPSA id a33sm394632pgb.57.2019.11.06.18.19.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 18:19:32 -0800 (PST) Date: Thu, 7 Nov 2019 07:49:29 +0530 From: Viresh Kumar To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, edubezval@gmail.com, Amit Daniel Kachhap , Amit Kucheria , Bartlomiej Zolnierkiewicz , Daniel Lezcano , Guillaume La Roque , Heiko Stuebner , Javi Merino , Jonathan Hunter , Jun Nie , Krzysztof Kozlowski , Kukjin Kim , Matthias Brugger , Shawn Guo , Thierry Reding , Zhang Rui , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 06/11] thermal: mediatek: Appease the kernel-doc deity Message-ID: <20191107021929.hsuyzswcl27n7wqt@vireshk-i7> References: <2961e4ac4b32ea7db8b5f6916751a5c02ee85960.1573046440.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2961e4ac4b32ea7db8b5f6916751a5c02ee85960.1573046440.git.amit.kucheria@linaro.org> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-11-19, 18:58, Amit Kucheria wrote: > Replace a comment starting with /** by simply /* to avoid having it > interpreted as a kernel-doc comment. Describe missing function > parameters where needed. > > Fixes up the following warnings when compiled with make W=1: > > linux.git/drivers/thermal/mtk_thermal.c:374: warning: cannot understand > function prototype: 'const struct mtk_thermal_data mt8173_thermal_data = > ' > linux.git/drivers/thermal/mtk_thermal.c:413: warning: cannot understand > function prototype: 'const struct mtk_thermal_data mt2701_thermal_data = > ' > linux.git/drivers/thermal/mtk_thermal.c:443: warning: cannot understand > function prototype: 'const struct mtk_thermal_data mt2712_thermal_data = > ' > linux.git/drivers/thermal/mtk_thermal.c:499: warning: cannot understand > function prototype: 'const struct mtk_thermal_data mt8183_thermal_data = > ' > linux.git/drivers/thermal/mtk_thermal.c:529: warning: Function parameter > or member 'sensno' not described in 'raw_to_mcelsius' > > Signed-off-by: Amit Kucheria > --- > drivers/thermal/mtk_thermal.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c > index acf4854cbb8b8..76e30603d4d58 100644 > --- a/drivers/thermal/mtk_thermal.c > +++ b/drivers/thermal/mtk_thermal.c > @@ -358,7 +358,7 @@ static const int mt7622_mux_values[MT7622_NUM_SENSORS] = { 0, }; > static const int mt7622_vts_index[MT7622_NUM_SENSORS] = { VTS1 }; > static const int mt7622_tc_offset[MT7622_NUM_CONTROLLER] = { 0x0, }; > > -/** > +/* > * The MT8173 thermal controller has four banks. Each bank can read up to > * four temperature sensors simultaneously. The MT8173 has a total of 5 > * temperature sensors. We use each bank to measure a certain area of the > @@ -400,7 +400,7 @@ static const struct mtk_thermal_data mt8173_thermal_data = { > .sensor_mux_values = mt8173_mux_values, > }; > > -/** > +/* > * The MT2701 thermal controller has one bank, which can read up to > * three temperature sensors simultaneously. The MT2701 has a total of 3 > * temperature sensors. > @@ -430,7 +430,7 @@ static const struct mtk_thermal_data mt2701_thermal_data = { > .sensor_mux_values = mt2701_mux_values, > }; > > -/** > +/* > * The MT2712 thermal controller has one bank, which can read up to > * four temperature sensors simultaneously. The MT2712 has a total of 4 > * temperature sensors. > @@ -484,7 +484,7 @@ static const struct mtk_thermal_data mt7622_thermal_data = { > .sensor_mux_values = mt7622_mux_values, > }; > > -/** > +/* > * The MT8183 thermal controller has one bank for the current SW framework. > * The MT8183 has a total of 6 temperature sensors. > * There are two thermal controller to control the six sensor. > @@ -495,7 +495,6 @@ static const struct mtk_thermal_data mt7622_thermal_data = { > * data, and this indeed needs the temperatures of the individual banks > * for making better decisions. > */ > - > static const struct mtk_thermal_data mt8183_thermal_data = { > .auxadc_channel = MT8183_TEMP_AUXADC_CHANNEL, > .num_banks = MT8183_NUM_SENSORS_PER_ZONE, > @@ -519,7 +518,8 @@ static const struct mtk_thermal_data mt8183_thermal_data = { > > /** > * raw_to_mcelsius - convert a raw ADC value to mcelsius > - * @mt: The thermal controller > + * @mt: The thermal controller > + * @sensno: sensor number > * @raw: raw ADC value This doesn't look related to $subject > * > * This converts the raw ADC value to mcelsius using the SoC specific > -- > 2.17.1 -- viresh