Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp650763imu; Fri, 16 Nov 2018 08:08:16 -0800 (PST) X-Google-Smtp-Source: AJdET5caVrFViIxxzZ9fFuGu/Vi+A3qDtVbtip4eFaGpATOrKJ8F8Qo/KOK0L0W6JAQq7rQfZoPQ X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr2437915plb.70.1542384496344; Fri, 16 Nov 2018 08:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542384496; cv=none; d=google.com; s=arc-20160816; b=qF/QZGHilg+iP4SUjXCVUHHv47q4haaKfaaimLL4+sM0OLwi8pVVf3ynXoJmn/7tm3 Ex5J58gqhb8mBsZEahX26ISKwgpu6aUAnyj25bYgVYaC4OTQdKfLT7krVVfl7w35tcpV whkqzKYxe1P+c02q4LlKDCE4hR3aTJcTWSf94saBbmg8coMWFaiYkzoV6qyyRkjjjVyr ccA5a8CM5kZXoXFvtEh1CQnlzR8F2yP4eyy1FFzdq1JDBOfTy8FDxVh5sOS7UeVwkOBA diyiwB3Fp3ThlkANsoL4QQM7Gfj7cK+Uyta2p9HHfi4c9cSWBxUMn9KbKjlB20eRSdhm jNcg== 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=/LGl1kcDwTjPdhfQ+NizgCox/U/MMM6r0d41XfHMaLc=; b=vJYodQX4+2lvItuQBKhNDZtx+6vUaA8NKgZuthhJgxGCcaMyx7D2jdVW0wxIzB19m2 B4pyTUlfWIogaBXczC2ZHgUO8FybzMQi+9teTzZlCH3TS/SjRDXpFr0Fkwjjp90LxkLo 7kMHAG9GdYQ6Jx1ZW1655FT5o/fKkxcDVTWfNYtntWAnRyzdiagXJi/Xby3igAEqu56U x1wdm8UCqNTCaG2Ow5En1AjqwvucQRBBnzAMBKlhy7E6NIYRpV8Cts4VaxZVSuGjY4HQ DFrNhNU6gB6d4rQZ8j7rmUdPc1HICfruCYWVSGTl2YMcpOoHDnASQigYsmny1iGJdqsE J7sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=XM3UWuvg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g33-v6si4228076plb.54.2018.11.16.08.07.37; Fri, 16 Nov 2018 08:08:16 -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=fail header.i=@gmail.com header.s=20161025 header.b=XM3UWuvg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389981AbeKQCTU (ORCPT + 99 others); Fri, 16 Nov 2018 21:19:20 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:33840 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728169AbeKQCTU (ORCPT ); Fri, 16 Nov 2018 21:19:20 -0500 Received: by mail-lj1-f193.google.com with SMTP id u6-v6so20776137ljd.1 for ; Fri, 16 Nov 2018 08:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/LGl1kcDwTjPdhfQ+NizgCox/U/MMM6r0d41XfHMaLc=; b=XM3UWuvgBqmc8/pjJKu0MEDjzG/oEg6UJye4tDXS3Z/1NCeiny4NJhSHjBhRQTPfvB eHD7SgBcB0vrkAjfchnkORR0EJUPK7eIMo3bbY/pfiz0y+L+eyjkIRiiQtIwcUvSKgoS EZbuLGmRDePFw9huqpl7MgrNG6ztBB7u+87VY5HBTa0Sm9bFIEbrcfTXhnzOxyLX454K Zzr/M4ixG1mCujA+H0q69+xXziBH7m6nCJYrK84T0ZibWK+pDqWDQwPsPz/y+vfpf1kM m+Ijs6aSit+1YCufLz1XIzuHvYXVgeQWIMgxBejvEV/NJgZs53g1D/eTwPbD7pjs5zBL pgxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=/LGl1kcDwTjPdhfQ+NizgCox/U/MMM6r0d41XfHMaLc=; b=IB221v2NT3bU/CzlmsmvIbi5B0dGiKzrQIZFjIQdM2U/E0a1az/3J9YWzdmXMOPKx0 p491KL35eQi0PZQ3erKN9Ek8w3J+9iHtDBY1fTWj4gRywIJ4eI/FgHDrU1nB20lZYRVL DNrF9UjTlRMyfHM6G8XTpbfmVGBgwP4ko4M3cDDp6vco9qUyfz6wXEFb2Lot5lhL7+Pr lNmRiIN93g23xF6IiUiNL77hQWKRlguv1Lo4Qvz4p673cBOcYzm5KVCnFjO/e5dQ0q8d UE1iEBP9/TspaXn57Mbi/ADOSNUz0QRz1h3zBqQC67fUXciTdhpAftxzgPsFjjFRqRri Xl9g== X-Gm-Message-State: AGRZ1gIA/tWNZq1OddY2uVHrXqgrP0vm0HPZiylo0NmndYiHhDx6IBHX meGIx6efnPaoQuOM4avkDfA= X-Received: by 2002:a2e:8347:: with SMTP id l7-v6mr439250ljh.152.1542384381233; Fri, 16 Nov 2018 08:06:21 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id i127-v6sm1226610lji.3.2018.11.16.08.06.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 08:06:20 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1gNgdS-0003wk-Uf; Fri, 16 Nov 2018 17:06:23 +0100 Date: Fri, 16 Nov 2018 17:06:22 +0100 From: Johan Hovold To: Nishad Kamdar Cc: Greg Kroah-Hartman , Johan Hovold , Alex Elder , Rui Miguel Silva , greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: arche-platform: Switch to the gpio descriptor interface Message-ID: <20181116160622.GQ19900@localhost> References: <20181116151740.GA12250@nishad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181116151740.GA12250@nishad> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 16, 2018 at 08:47:44PM +0530, Nishad Kamdar wrote: > Use the gpiod interface instead of the deprecated > old non-descriptor interface. > > Signed-off-by: Nishad Kamdar > --- Always include a change log here after the cut-off line so we know what changed since previous versions. Also include the patch revision in the Subject (e.g. "[PATCH v3] staging: greybus: ..."). > drivers/staging/greybus/arche-platform.c | 120 ++++++++--------------- > 1 file changed, 42 insertions(+), 78 deletions(-) > > diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c > index 4c36e88766e7..a826a1835628 100644 > --- a/drivers/staging/greybus/arche-platform.c > +++ b/drivers/staging/greybus/arche-platform.c > @@ -8,10 +8,9 @@ > > #include > #include > -#include > +#include > #include > #include > -#include > #include > #include > #include > @@ -45,14 +44,15 @@ enum svc_wakedetect_state { > > struct arche_platform_drvdata { > /* Control GPIO signals to and from AP <=> SVC */ > - int svc_reset_gpio; > + struct gpio_desc *svc_reset; > + struct gpio_desc *svc_sysboot; > bool is_reset_act_hi; > - int svc_sysboot_gpio; > - int wake_detect_gpio; /* bi-dir,maps to WAKE_MOD & WAKE_FRAME signals */ > + struct gpio_desc *wake_detect; > + /* bi-dir,maps to WAKE_MOD & WAKE_FRAME signals */ I'm not commenting on the rest, but comments never go underneath what they apply to. Just keep the current comment here, even if it's placement is a bit odd and makes the line be longer than 80 cols. Johan