Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp353674ybx; Wed, 6 Nov 2019 18:24:20 -0800 (PST) X-Google-Smtp-Source: APXvYqx2zy5yLniKQeuG8AuGym8M4adJ+0z9O1BLQGbFofIwUrcykliA/iECGgppvqxE9k0HuT20 X-Received: by 2002:aa7:cf8b:: with SMTP id z11mr1045059edx.294.1573093460738; Wed, 06 Nov 2019 18:24:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573093460; cv=none; d=google.com; s=arc-20160816; b=kTjCWQkR71oxZcGpD5OFNAcBpp5uDLJQdyzhqAcgps4sXWQO2r+f8uHPE0kclJrqU6 QTMj0TABRd76PezqKJgc5ZAiq7DcoCCH+Uh7FLYb1PJ9pn01+ybNCQRCqcN1Iu2SYJY/ aqlXze2p7xkVuBqRgjytn9J968nf+fnS3X4ww3ee0YAydw+lSzOAaMOULtIXpLWdn1/Q iRlYVofNy3Q5DTbd9yLNUO4DL4ohMpIqBxqf/OhOiDob5eL/kOjhjDeNqiu6Dg4xQgLj McA1ORXwrJl3booAExcIKPJYBXy+UFFhH6vKg/8ol62B7TwlBkitLC+FB3jVEs8jl1WJ yIYA== 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=7nVUVPTizlGkprPOHGMGuKiTavG+4pamQJDarm5kvv0=; b=lN5hqMNuxYlX9qgcWmxIBfzQQDjXVaSGuBoO9ifZy/MOWSlyKSkmIPGNiPwyXsZwwM QGLMs2/sQC7WvQzUKJsHX7hVETKogdNnXI8g/rywzuN1BaH75kZiDHMkjYmiURCeIWzG KM8OClqfoCv3EL3zIYT9d6KsAPZUXXwdlUWrRgWoa9LdHkbdkKJFnJS2900VfBDlTCS1 DrjYZnMyxwN8hRGnywACE6esob77nsYDL3gxnNcihbdLHLDADig9vPY4pc34hQvsycvo I8sJRAvucDCYfMLCXLZPtQpVL38LrfDyOM4L5LPEsTzG6IjMLmPt6D6x8k3vecCtF4ay D0QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G4sld1Cn; 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 l8si352373edb.234.2019.11.06.18.23.57; Wed, 06 Nov 2019 18:24:20 -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=G4sld1Cn; 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 S1733027AbfKGCUi (ORCPT + 99 others); Wed, 6 Nov 2019 21:20:38 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43138 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfKGCUh (ORCPT ); Wed, 6 Nov 2019 21:20:37 -0500 Received: by mail-pf1-f194.google.com with SMTP id 3so1109007pfb.10 for ; Wed, 06 Nov 2019 18:20:37 -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=7nVUVPTizlGkprPOHGMGuKiTavG+4pamQJDarm5kvv0=; b=G4sld1CnF+WGUMEYhkeg7b2c/ddWHkENgd9t/sjURqESd/spTRn3DckkUV+ggVqpxs DX9+prVgoROWZ5ZTikOoUSh3NE/f56x4Np5XPl2GPeFRBsBi+riqR1pLcOWV0xUehBKf wmp5tm/wSCDSFyRRXxKDWl6js6NUHbeQ5AnxmEHoYGfK13eYs+rAXMrJjSP7M7pX2ldn i0v+116tgdd7LnHQ8iJ9Grkx8U7+zNxOumG3V2S6JaYKQm/sTmaVAi9KggcL62NTKoNH sKC2yS3w1LireYqKif9W7OwD+6eWDWBfqJVc/eB1HBlNPY0DLVBj4/tFqdZKKbhpfWpk /BoA== 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=7nVUVPTizlGkprPOHGMGuKiTavG+4pamQJDarm5kvv0=; b=an9RzyulxsalSklCgJO+MY/wbziOpOnjHFqlanrlMIhQOenaRAd7KRK4kSiU2OBFKl I+uuMuGDKNcSvyPUrXNqG6BhZHfnaj+yvHULRliTkwT3clleyDo/vckqAjynj3nkE7LE HglAawwcK+Q1C9aS3CuTGmOAJY3fuWRwLY5ckpU/bWJVBCsaX/7hJZlzyf+iDhHUN2nK O7bmpn6JmoCxktLCtos8Z2czey8jusG9Yf7iH/6ATx+T9qFukzrP9jOBp5/9KKKUD+m2 t83QS6dmcV8fx4GjWw4BYxDmXHl/xq5f4u9b50Sw+oOAW5Dfe/g2ctYkthrqSMm9iWAS kVmw== X-Gm-Message-State: APjAAAUtUkEcBUIVrXnCVvDDvadBr5yC1bNgr+fnNLesi/fgGi8poy8J jMrw8WGFe0NiXrnTIZBQ3D0CsA== X-Received: by 2002:a17:90a:634c:: with SMTP id v12mr1614939pjs.27.1573093236794; Wed, 06 Nov 2019 18:20:36 -0800 (PST) Received: from localhost ([122.171.110.253]) by smtp.gmail.com with ESMTPSA id w2sm342736pfj.22.2019.11.06.18.20.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 18:20:36 -0800 (PST) Date: Thu, 7 Nov 2019 07:50:32 +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-rockchip@lists.infradead.org Subject: Re: [PATCH 07/11] thermal: rockchip: Appease the kernel-doc deity Message-ID: <20191107022032.feqnv3gguywai6cj@vireshk-i7> References: <290895a22aa8a13c13b3a4ae77c13244b4ecee58.1573046440.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <290895a22aa8a13c13b3a4ae77c13244b4ecee58.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/rockchip_thermal.c:27: warning: cannot > understand function prototype: 'enum tshut_mode ' > linux.git/drivers/thermal/rockchip_thermal.c:37: warning: cannot > understand function prototype: 'enum tshut_polarity ' > linux.git/drivers/thermal/rockchip_thermal.c:46: warning: cannot > understand function prototype: 'enum sensor_id ' > linux.git/drivers/thermal/rockchip_thermal.c:56: warning: cannot > understand function prototype: 'enum adc_sort_mode ' > linux.git/drivers/thermal/rockchip_thermal.c:123: warning: Function > parameter or member 'chn_id' not described in 'rockchip_tsadc_chip' > linux.git/drivers/thermal/rockchip_thermal.c:123: warning: Function > parameter or member 'control' not described in 'rockchip_tsadc_chip' > linux.git/drivers/thermal/rockchip_thermal.c:167: warning: Function > parameter or member 'sensors' not described in 'rockchip_thermal_data' > linux.git/drivers/thermal/rockchip_thermal.c:608: warning: Function > parameter or member 'grf' not described in 'rk_tsadcv2_initialize' > linux.git/drivers/thermal/rockchip_thermal.c:608: warning: Function > parameter or member 'regs' not described in 'rk_tsadcv2_initialize' > linux.git/drivers/thermal/rockchip_thermal.c:608: warning: Function > parameter or member 'tshut_polarity' not described in > 'rk_tsadcv2_initialize' > linux.git/drivers/thermal/rockchip_thermal.c:644: warning: Function > parameter or member 'grf' not described in 'rk_tsadcv3_initialize' > linux.git/drivers/thermal/rockchip_thermal.c:644: warning: Function > parameter or member 'regs' not described in 'rk_tsadcv3_initialize' > linux.git/drivers/thermal/rockchip_thermal.c:644: warning: Function > parameter or member 'tshut_polarity' not described in > 'rk_tsadcv3_initialize' > linux.git/drivers/thermal/rockchip_thermal.c:732: warning: Function > parameter or member 'regs' not described in 'rk_tsadcv3_control' > linux.git/drivers/thermal/rockchip_thermal.c:732: warning: Function > parameter or member 'enable' not described in 'rk_tsadcv3_control' > linux.git/drivers/thermal/rockchip_thermal.c:1211: warning: Function > parameter or member 'reset' not described in > 'rockchip_thermal_reset_controller' > > Signed-off-by: Amit Kucheria > --- > drivers/thermal/rockchip_thermal.c | 22 ++++++++++++++++------ > 1 file changed, 16 insertions(+), 6 deletions(-) > > diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c > index 343c2f5c5a259..9ed8085bb7924 100644 > --- a/drivers/thermal/rockchip_thermal.c > +++ b/drivers/thermal/rockchip_thermal.c > @@ -19,7 +19,7 @@ > #include > #include > > -/** > +/* > * If the temperature over a period of time High, > * the resulting TSHUT gave CRU module,let it reset the entire chip, > * or via GPIO give PMIC. > @@ -29,7 +29,7 @@ enum tshut_mode { > TSHUT_MODE_GPIO, > }; > > -/** > +/* > * The system Temperature Sensors tshut(tshut) polarity > * the bit 8 is tshut polarity. > * 0: low active, 1: high active > @@ -39,7 +39,7 @@ enum tshut_polarity { > TSHUT_HIGH_ACTIVE, > }; > > -/** > +/* > * The system has two Temperature Sensors. > * sensor0 is for CPU, and sensor1 is for GPU. > */ > @@ -48,7 +48,7 @@ enum sensor_id { > SENSOR_GPU, > }; > > -/** > +/* > * The conversion table has the adc value and temperature. > * ADC_DECREMENT: the adc value is of diminishing.(e.g. rk3288_code_table) > * ADC_INCREMENT: the adc value is incremental.(e.g. rk3368_code_table) > @@ -80,13 +80,14 @@ struct chip_tsadc_table { > > /** > * struct rockchip_tsadc_chip - hold the private data of tsadc chip > - * @chn_id[SOC_MAX_SENSORS]: the sensor id of chip correspond to the channel > + * @chn_id: array of sensor ids of chip corresponding to the channel > * @chn_num: the channel number of tsadc chip > * @tshut_temp: the hardware-controlled shutdown temperature value > * @tshut_mode: the hardware-controlled shutdown mode (0:CRU 1:GPIO) > * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH) > * @initialize: SoC special initialize tsadc controller method > * @irq_ack: clear the interrupt > + * @control: enable/disable method for the tsadc controller > * @get_temp: get the temperature > * @set_alarm_temp: set the high temperature interrupt > * @set_tshut_temp: set the hardware-controlled shutdown temperature > @@ -139,7 +140,7 @@ struct rockchip_thermal_sensor { > * @chip: pointer to the platform/configuration data > * @pdev: platform device of thermal > * @reset: the reset controller of tsadc > - * @sensors[SOC_MAX_SENSORS]: the thermal sensor > + * @sensors: array of thermal sensors > * @clk: the controller clock is divided by the exteral 24MHz > * @pclk: the advanced peripherals bus clock > * @grf: the general register file will be used to do static set by software > @@ -590,6 +591,9 @@ static int rk_tsadcv2_code_to_temp(const struct chip_tsadc_table *table, > > /** > * rk_tsadcv2_initialize - initialize TASDC Controller. > + * @grf: the general register file will be used to do static set by software > + * @regs: the base address of tsadc controller > + * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH) > * > * (1) Set TSADC_V2_AUTO_PERIOD: > * Configure the interleave between every two accessing of > @@ -624,6 +628,9 @@ static void rk_tsadcv2_initialize(struct regmap *grf, void __iomem *regs, > > /** > * rk_tsadcv3_initialize - initialize TASDC Controller. > + * @grf: the general register file will be used to do static set by software > + * @regs: the base address of tsadc controller > + * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH) > * > * (1) The tsadc control power sequence. > * > @@ -723,6 +730,8 @@ static void rk_tsadcv2_control(void __iomem *regs, bool enable) > > /** > * rk_tsadcv3_control - the tsadc controller is enabled or disabled. > + * @regs: the base address of tsadc controller > + * @enable: boolean flag to enable the controller > * > * NOTE: TSADC controller works at auto mode, and some SoCs need set the > * tsadc_q_sel bit on TSADCV2_AUTO_CON[1]. The (1024 - tsadc_q) as output > @@ -1206,6 +1215,7 @@ rockchip_thermal_register_sensor(struct platform_device *pdev, > > /** > * Reset TSADC Controller, reset all tsadc registers. > + * @reset: the reset controller of tsadc > */ > static void rockchip_thermal_reset_controller(struct reset_control *reset) > { Reviewed-by: Viresh Kumar -- viresh