Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp414915ybh; Sat, 18 Jul 2020 07:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc35i3T1FWq7fdAAGjMV05WIXYo5pgoBrPaL5Zg/zq+pId5UClfdG74xX+tQP987aWcras X-Received: by 2002:a17:906:6606:: with SMTP id b6mr13815676ejp.102.1595084316448; Sat, 18 Jul 2020 07:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595084316; cv=none; d=google.com; s=arc-20160816; b=ii3uVIORQMeUFQELwWnGY4bfyisvGoatPmNukBNCtO98xIzDCKWlkr4Gzn/Csggw0l Uqe6xphGntrv4QAqDDoDqRKyeyRMAvuhRkH7ybLoybVM1PYM7lchpN+0cDHyaB5qnEZ4 rcgXbjFhvMGJ0SPM4G32iY9T+qxpSKdv1ZxETygft8bMKEPJsIQ5ZPfVXrBfq509p42G QiP7XMW4b03dF5Kx5ywW9/4rK8FtqDtSa3+UtN2jh0iIte0XOeahK4sBr/sosnpOegeS 8q+kCbS9YBHs4nkDstOOrOsq/pFpUR5NGycOiwKiOXBUTWSkUASZioOdyjDWSTe6hOQe iybw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=YnWod94oNlxkOs95LNYGeSPvZJHvbjWgNYE2MDP0j7Y=; b=XPZs9Ir+Tk/kmrr973chsfZSmO7cihcNTTQj0TLDIujNnwDzhAD0zMZwb7nwrYTgQl bIWCFnvvZxsN62s1852/AI5vnD89x4wKybqVfwudwphMQmCBLT9R+YtyLkMP2bvpBBVC DtnJrC764Cx70N3qPfiBrTAZPXA+CEkKP0InY2DgvBmkTKbOl7lYeNGVRBLOQs0pLsVQ HYwUENKepyJkmFt6mMcSOTBtrNtuyUZ4D3jgjuSGg9tr3oFOoUrxHDk/pKUi1MPHy6/d aX/hwLM6cdm7l0SsH5TGYcayfeaAPLtnamexT69tjmxFp0KYvElACaT0ZkQYBXCpSxi+ cjUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mYFSpyom; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si7182106edy.599.2020.07.18.07.58.13; Sat, 18 Jul 2020 07:58:36 -0700 (PDT) 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=@kernel.org header.s=default header.b=mYFSpyom; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727925AbgGROzo (ORCPT + 99 others); Sat, 18 Jul 2020 10:55:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:34398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbgGROzo (ORCPT ); Sat, 18 Jul 2020 10:55:44 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 88D6220656; Sat, 18 Jul 2020 14:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595084143; bh=kjZhliArAupsgIQRojSt1mgRcPYN3aZHfo2EkpA7vg8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mYFSpyomkpTz4MVFl/SQ7vvPF/V54xzhpgc1ehuw3X3BY+Kr8Cz8mMK88/N0XesoP mgk069jE0kqOkmTlVgQ4p3eOZAGC6F9wdqHfLOUEn2+yyT+3Am7htoxWL7Hdi/444C o83OjwOBfSGHV0ah4NEIQNicRJTg565NQIVg/8Wo= Date: Sat, 18 Jul 2020 15:55:39 +0100 From: Jonathan Cameron To: Lee Jones Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH 13/30] iio: dummy: iio_simple_dummy_events: Demote file header and supply descriptions for val2 params Message-ID: <20200718155539.48913015@archlinux> In-Reply-To: <20200716135928.1456727-14-lee.jones@linaro.org> References: <20200716135928.1456727-1-lee.jones@linaro.org> <20200716135928.1456727-14-lee.jones@linaro.org> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Jul 2020 14:59:11 +0100 Lee Jones wrote: > File headers are not good candidates for kerneldoc. > > Fixes the following W=1 kernel build warning(s): > > drivers/iio/dummy/iio_simple_dummy_events.c:21: warning: Incorrect use of kernel-doc format: * iio_simple_dummy_read_event_config() - is event enabled? > drivers/iio/dummy/iio_simple_dummy_events.c:34: warning: Function parameter or member 'indio_dev' not described in 'iio_simple_dummy_read_event_config' > drivers/iio/dummy/iio_simple_dummy_events.c:34: warning: Function parameter or member 'chan' not described in 'iio_simple_dummy_read_event_config' > drivers/iio/dummy/iio_simple_dummy_events.c:34: warning: Function parameter or member 'type' not described in 'iio_simple_dummy_read_event_config' > drivers/iio/dummy/iio_simple_dummy_events.c:34: warning: Function parameter or member 'dir' not described in 'iio_simple_dummy_read_event_config' > drivers/iio/dummy/iio_simple_dummy_events.c:123: warning: Function parameter or member 'val2' not described in 'iio_simple_dummy_read_event_value' > drivers/iio/dummy/iio_simple_dummy_events.c:146: warning: Function parameter or member 'val2' not described in 'iio_simple_dummy_write_event_value' > > Signed-off-by: Lee Jones Applied. J > --- > drivers/iio/dummy/iio_simple_dummy_events.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/dummy/iio_simple_dummy_events.c b/drivers/iio/dummy/iio_simple_dummy_events.c > index b3abaaca6f5ef..63a2b844be508 100644 > --- a/drivers/iio/dummy/iio_simple_dummy_events.c > +++ b/drivers/iio/dummy/iio_simple_dummy_events.c > @@ -1,5 +1,5 @@ > // SPDX-License-Identifier: GPL-2.0-only > -/** > +/* > * Copyright (c) 2011 Jonathan Cameron > * > * Event handling elements of industrial I/O reference driver. > @@ -107,6 +107,7 @@ int iio_simple_dummy_write_event_config(struct iio_dev *indio_dev, > * @dir: direction of the vent whose value is being read > * @info: info type of the event whose value is being read > * @val: value for the event code. > + * @val2: unused > * > * Many devices provide a large set of events of which only a subset may > * be enabled at a time, with value registers whose meaning changes depending > @@ -136,6 +137,7 @@ int iio_simple_dummy_read_event_value(struct iio_dev *indio_dev, > * @dir: direction of the vent whose value is being set > * @info: info type of the event whose value is being set > * @val: the value to be set. > + * @val2: unused > */ > int iio_simple_dummy_write_event_value(struct iio_dev *indio_dev, > const struct iio_chan_spec *chan,