Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1814621ybc; Wed, 13 Nov 2019 04:51:47 -0800 (PST) X-Google-Smtp-Source: APXvYqypIYwJAc910FbWO+tXbzVNUA6VOtWiMGUNvC2XYnyGD796ToVvgtDPZ8RvjIceVQ1qV+Zj X-Received: by 2002:a50:8264:: with SMTP id 91mr3273844edf.69.1573649507185; Wed, 13 Nov 2019 04:51:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573649507; cv=none; d=google.com; s=arc-20160816; b=qhgPG2Brvb1lAB/s+fibQ/vdalIzqpNrDvnvlvH0f1+Y29acFQUvKQnscf3O0T7QXM M+6W5rWGqJNa3zg0SfFf9+2NwhccHNaYvq9ToKvsVGSnJ2+oraBd+17tGfzrIZ8GturD dhmGf27pOsj18394wmg4FRTHjD+OKZGykc5CTkPCgK02z2juSBkQlUGO3/tUkaIH4ja9 VCyEJA13nufqNGyUi1IHbGPItiPvsOCrQUIgQyF9RwL+vBLUa2G8DgDjOsvtkX+wRgBc hQ4hfGewZY4M+C6eCyR3STbV+wGwPdBW33D2EV16nxjJyF/qPSxdkHMIPGYiok4Jtsvu CZEA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xKNQ7v4yv1nHmpKbLcQIzTqXHeIHYPJhDQUIafBrUCo=; b=Y5rMmz6JiEKraJ4hCC446xWhAkV8cSzoLNiQLZZhWPSHBow4ypU+6iYPP4eTW0DmWG mB1U0xkqlGzopecvax63ntH8d35moOaH1/hyUuczUmEVCI0HN8TPhspW2wAlEC0Ium5C HosubG4JHzejDwd73wyrizuvBj/6cibMmv/YQvkyHFbs9u2zhM30oneyw8PY/YXiJ2eA CUMi02VWb4dXZfVdQH0TqQFhfhafauxxCjRsWhP2uZU57Uh5c+8Xl15hsuIzAaa+Ugtl TAToORYmOvLTmJ0oeiOLFEO60fxJ3Jx87Bb1CEkLTnOv8sXjNyolqgh7P9Oz1W4hCJUJ 2gpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=LM0vB6+8; 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 n27si1094077ejl.272.2019.11.13.04.51.22; Wed, 13 Nov 2019 04:51:47 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=LM0vB6+8; 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 S1726980AbfKMMuR (ORCPT + 99 others); Wed, 13 Nov 2019 07:50:17 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:39533 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbfKMMuR (ORCPT ); Wed, 13 Nov 2019 07:50:17 -0500 Received: by mail-ot1-f66.google.com with SMTP id w24so998946otk.6 for ; Wed, 13 Nov 2019 04:50:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xKNQ7v4yv1nHmpKbLcQIzTqXHeIHYPJhDQUIafBrUCo=; b=LM0vB6+8Ne7H07hxWLkz3Uwzgsdk3gzgJzHbZ37eVIC4oFtORQ85UnfEtJ8FoHHNBE s26758Ku8mxiQnVuIuR0QbmkIPWXeKlItB7UE/KWXjFyFQCjxbjHpJCMoXuBK0+vPi9H GBut02p0Sjb+QT5pRyEuPPKQAI6iKcUCJbYpsKEfJcoV+dhwmhdwA4WMzoHMFSU3VeCV e5OFRB2axfyh7bXT61SNTbdtpbiEgXWtjQLjzgFbSVz/08lIITk6vbIbczOQdmFj6N5j Y0yUOsInw4IDVgMsRybL3sOt1q7n8Fktow4YtoJAKUCbsRvXfROnji+TXlSff9JEF3SJ +/6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xKNQ7v4yv1nHmpKbLcQIzTqXHeIHYPJhDQUIafBrUCo=; b=IgA4OhW6a1dVTZhWicMuWVTV4CL9ye213t3wzSQuF/kgkcfIXv9pM3/9d93TkNzqU2 wTS3ZuvrZiyfyplwdOu8fSm7RQmatjvbCG9XZXoR9CUAJUbZn6uvU4GGo9aZel/GXGjo xi6cT0oTmLv6fsp108SIm1E98qll9qoNRW7hLyFCwMWAFgkQhnQ29KYet8PFg/ntW6RI x5iTGlf58X7XXLGlzU/z7NyyfsdxmsSMXjqyCQPIXFpxDeDM2taFamzCQQx2eRjTsjQ3 6FJmGVYlmucL3b3jaCyrUT+gkOZ0XhjgBU9XpiNgMIbrpbnCX6lJ68/eBP2GhKmeDO1E wz1Q== X-Gm-Message-State: APjAAAVe7S1be5fMHlB3x3/jhRDoU6V9kKwp8Ea6F6HCbU3gwR/Hzd1Y rimkWWh5RdoLtYnWFrWJoOp3WFeDvPw9i0f96Vp8KA== X-Received: by 2002:a05:6830:453:: with SMTP id d19mr2708443otc.256.1573649416541; Wed, 13 Nov 2019 04:50:16 -0800 (PST) MIME-Version: 1.0 References: <20191113084352.GA25535@localhost.localdomain> In-Reply-To: <20191113084352.GA25535@localhost.localdomain> From: Bartosz Golaszewski Date: Wed, 13 Nov 2019 13:50:05 +0100 Message-ID: Subject: Re: [PATCH] gpio: mmio: remove untrue leftover comment To: Matti Vaittinen Cc: Matti Vaittinen , Linus Walleij , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 13 lis 2019 o 09:44 Matti Vaittinen napisa=C5=82(a): > > The comment should have been removed when new GPIO direction > definitions were taken in use as the function logic was changed. It > is now perfectly valid and Ok to hit the return from the bottom of > the direction getting function. > > Signed-off-by: Matti Vaittinen > --- > > Sorry guys. Just noticed that I should've removed this comment in > original patch series. > > drivers/gpio/gpio-mmio.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c > index cd07c948649f..f729e3e9e983 100644 > --- a/drivers/gpio/gpio-mmio.c > +++ b/drivers/gpio/gpio-mmio.c > @@ -386,7 +386,6 @@ static int bgpio_get_dir(struct gpio_chip *gc, unsign= ed int gpio) > if (!(gc->read_reg(gc->reg_dir_in) & bgpio_line2mask(gc, = gpio))) > return GPIO_LINE_DIRECTION_OUT; > > - /* This should not happen */ > return GPIO_LINE_DIRECTION_IN; > } > > > base-commit: 70d97e099bb426ecb3ad4bf31e88dbf2ef4b2e4c > -- > 2.21.0 > > > -- > Matti Vaittinen, Linux device drivers > ROHM Semiconductors, Finland SWDC > Kiviharjunlenkki 1E > 90220 OULU > FINLAND > > ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ > Simon says - in Latin please. > ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ > Thanks to Simon Glass for the translation =3D] Queued for v5.5, thanks! Bartosz