Received: by 10.192.165.156 with SMTP id m28csp887128imm; Fri, 13 Apr 2018 09:29:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48czhSxLJBquON8GDpQNqQjtyyuHWq4MdMxpAxwiQIJdpSlOt/U9i7L8ppkq68xNlK5ob4w X-Received: by 10.98.202.24 with SMTP id n24mr12207143pfg.45.1523636949722; Fri, 13 Apr 2018 09:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523636949; cv=none; d=google.com; s=arc-20160816; b=gfkJNNyaWUWQdkUcbNV5ypAmq5CpGYbpv2t1/2W9QjgXSLfeHE8g6IJCPg5MK+4XBv qMxrwBKOtJWD/5R7jLn/AfX3FvDQIm2+v0KYhGtCpiPFekfW50GJLw2azFQT0bMmFdf8 Qt/u+zvKT9KUQDdj4fch4mDPEAEhtI4Y+THCU3Rj8m4duJuP756s4j7Cef/KxMLt0Hxr scpRUstUNPKogG6O/FO7UmmrxZjYilzfP223wRZGxiGA4VGJFRnrR+2J7go6MvRcSs9h sr0BQBghWYTgoE6B1RPeuF80+yMwhzgB2sV13DG8qSbPRGEqTn1yA9RYSLwQ3IVRJBYz VMRw== 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:arc-authentication-results; bh=D7WAtUwyjcm94FV0y5D+BsYJ/pofA3vnnpFQJ7GpjP4=; b=Lulvid3IWjyV+shvWkcqyHusNgpD7PLs67Y2fC3zX+Qm/SN+P+9GRZmwCScTUTCpOU sTU3YoLcMqo6XFGqJMrOMUt/VwgH0vufRfW64Q+Sb+cPJa1pMu73pELD64g1APlHQB5t /Ua8O9M67Do9NLtvdr1KuA4lDZtnROnEVgbBHuPJWE62gHsTqvIDLksl5N0LiRrp89X5 oaAQesn/Y5LSQWnMf4GIYm1RYmZnwUZNnJ+OtRQrEFhPHXRFie8d8FUprubNW8epLg6U fe1hNUIiBJpEMy+TQJRVI7KcXQ+/0uyyH/16q6Alzk8ZmfxT0PqmHcZFuEawJOi+IDfy XGWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GpHACT2g; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f22si4805600pfd.123.2018.04.13.09.28.53; Fri, 13 Apr 2018 09:29:09 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GpHACT2g; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752258AbeDMQ1Q (ORCPT + 99 others); Fri, 13 Apr 2018 12:27:16 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43004 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbeDMQ1P (ORCPT ); Fri, 13 Apr 2018 12:27:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=D7WAtUwyjcm94FV0y5D+BsYJ/pofA3vnnpFQJ7GpjP4=; b=GpHACT2gQA995bZRpE4DmyeVr sb+FBOlizOtO9nX6ARroI/JM9k3IzhSX73TeKjBQV3jgQWM9PSFZtGVcZSSi25vLIL9zq4ORR8Cpd LAeS0JjVScxnqTNoFQVbAJ35KWbb5q3BhltrrFBnt2XqIVEnVhkB4Mq8wGASVoEIzHusFmTRfy4Bm BzuhM508MNqW7sLZWFDx3mFaPB2hzFt19VnCaOZw7whA8UxyxoedAYUJZo/Tb/PH2Xdp8HIPba8TQ LlkPiEuZHSIK2+kfcvkdMKL+urg58VbfGXXsfqOm3qdL+tMWYvj0pvsB46AXjfo5Nuw7bNReBCEeF +WIqc8CXw==; Received: from dvhart by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f71Xd-0002MH-OE; Fri, 13 Apr 2018 16:27:13 +0000 Date: Fri, 13 Apr 2018 09:27:12 -0700 From: Darren Hart To: Vadim Pasternak Cc: andy.shevchenko@gmail.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, jiri@resnulli.us, michaelsh@mellanox.com, ivecera@redhat.com Subject: Re: [PATCH v1 2/7] platform/mellanox: mlxreg-hotplug: Document fixes for hotplug private data Message-ID: <20180413162712.GD27560@fury> References: <1522144927-56512-1-git-send-email-vadimp@mellanox.com> <1522144927-56512-3-git-send-email-vadimp@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522144927-56512-3-git-send-email-vadimp@mellanox.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 10:02:02AM +0000, Vadim Pasternak wrote: > Add missing description of dev, regmap, dwork_irq, after_probe in struct > mlxreg_hotplug_priv_data. > > Remove dwork field from the structure mlxreg_hotplug_priv_data itself and > for the descriptions, since it is not used. > A bit of a nit, but "Document..." implies no functional changes, but you are changing the physical structure. This can have negative consequences in some cases, even if the removed field is unused. Someone reading through the git history might skip over patches starting with "Document..." when looking for change which impacted behavior. Again, for future submissions. > Signed-off-by: Vadim Pasternak > --- > drivers/platform/mellanox/mlxreg-hotplug.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c b/drivers/platform/mellanox/mlxreg-hotplug.c > index ea9e7f4..b56953a 100644 > --- a/drivers/platform/mellanox/mlxreg-hotplug.c > +++ b/drivers/platform/mellanox/mlxreg-hotplug.c > @@ -59,9 +59,11 @@ > /** > * struct mlxreg_hotplug_priv_data - platform private data: > * @irq: platform device interrupt number; > + * @dev: basic device; > * @pdev: platform device; > * @plat: platform data; > - * @dwork: delayed work template; > + * @regmap: register map handle; > + * @dwork_irq: delayed work template; > * @lock: spin lock; > * @hwmon: hwmon device; > * @mlxreg_hotplug_attr: sysfs attributes array; > @@ -71,6 +73,7 @@ > * @cell: location of top aggregation interrupt register; > * @mask: top aggregation interrupt common mask; > * @aggr_cache: last value of aggregation register status; > + * @after_probe: flag indication probing completion; > */ > struct mlxreg_hotplug_priv_data { > int irq; > @@ -79,7 +82,6 @@ struct mlxreg_hotplug_priv_data { > struct mlxreg_hotplug_platform_data *plat; > struct regmap *regmap; > struct delayed_work dwork_irq; > - struct delayed_work dwork; > spinlock_t lock; /* sync with interrupt */ > struct device *hwmon; > struct attribute *mlxreg_hotplug_attr[MLXREG_HOTPLUG_ATTRS_MAX + 1]; > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center