From patchwork Wed Sep 12 11:32:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 146550 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4708425ljw; Wed, 12 Sep 2018 04:32:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaA05yh6VBPYRmkVr18OaeBPp4M2wGm68y8MuT+wxXcxgjHKCE3BNgsVqlCeSBRrMFtF11y X-Received: by 2002:a63:5ec1:: with SMTP id s184-v6mr1791201pgb.26.1536751937802; Wed, 12 Sep 2018 04:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536751937; cv=none; d=google.com; s=arc-20160816; b=Nh0FAVeXbgAd45WhCwQI1Kypd75jAUrp1SDB/W4Ep5JOqCECo549qcCEWR3nb/tpuP rJ0vOfr/oeJVZV6kw2SMRxthWfe/0VGn6Nwga+TGSH9/4HdMINthIjxThSIQawnRpXVK QFs4+hgnB/iBMsRXc7c3X3OfTJRwcLDkTbkGG0vOUzgKy3ujvY7fiYRztgIrLiuuBX9q tSY8/e01eEJ2IRMTUbySSvhNGUt1GUQziinkG379re2qh+Q7ivuf90dOkNBQ32Nw6z4l F5Bg3ftCef1tRzjWnxQrPjqUgkWpPgcIJuXBV5Wig+QQAi3QmFmOxjyxSQHbAg9N2PJZ Cjfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=3NDQXcdXcfEDAbxxV89gwSIl7m2F4uMsFBrhFLub3cI=; b=VDkrbP9pwipTExyjp1YOSjIs1YdqNDa9X5GJgf5tkro1AjDL2RKfsyZ6k6ufBaqIln 05+Kt8Ko+QdljGjAS1WCGZwv6tZ9QIIoWpDhW0OIn6guZO+opMAxdlDB6a2wGf0OGOTV CsQVi4/6+lWVEhhn+UN/h92LUIT4pyh6FkSshIYquoBlLlsxfoj3ohYUQjv99jpxaPt0 hKSKBBlhrw1JnNAKxp4Oivn/a8cFavynysv945cGv7MyZzNVlbeguR42Zy0mWKC/0eOb pPg8UZRYh2mmb5j6RjtlocWI9VG/mNSoctYAOfSXkdeyFeZyHcA9zF+rDwQ6FLseiWwB WhRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xdz+9IVJ; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 x69-v6si744059pfe.318.2018.09.12.04.32.17; Wed, 12 Sep 2018 04:32:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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=Xdz+9IVJ; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 S1726630AbeILQgX (ORCPT + 5 others); Wed, 12 Sep 2018 12:36:23 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37120 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726606AbeILQgX (ORCPT ); Wed, 12 Sep 2018 12:36:23 -0400 Received: by mail-lj1-f196.google.com with SMTP id v9-v6so1315519ljk.4 for ; Wed, 12 Sep 2018 04:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=3NDQXcdXcfEDAbxxV89gwSIl7m2F4uMsFBrhFLub3cI=; b=Xdz+9IVJ4SObNaS++vS4tx4bA4DEyvZBUcfHwOZCMwLx7ZRIXzUixcrN7cRgwEs4lm 7+Hdl7hRfGXh5ni2iIwVoq7rEjiSS7s9/03KNPfo/L+1kcC9l4OJ+K2XqETEzAx87UxN qXrm3iXc+N+1gQMTkG0/acnFdtxTacofCM0Rk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3NDQXcdXcfEDAbxxV89gwSIl7m2F4uMsFBrhFLub3cI=; b=rrAWwaLNPpXkVnDAv8O+kgz5rr07WaNmot2I+fJIvVL1rqBSEht8R/QMqXc1jy9BDz xYY3sx8fFnLx6KwzwTqGly02NgHPkBjWlK14ay7Id+tJDGWx8QREYdNhOu9nVIwJ6/Zb RJl4UcTWwG+q4OZ6lj2/QZ74Hpyd4atqLferqcna7wNPl6Vx35jpKBbE8tcGYsfvpCOU U02yt+zL7+1Ot9o1Ya7rh6vwP9Bt2Vh5vgXuS1OmYt7T2lKJEYsenFGqfPilwNcL+C0s Zx+5IncMq7KhZaqDEVWsXs0772YOzr4pheK7vYrTb+CCRMpsrkEMFH/UgXQTx8hH5FiX M8GA== X-Gm-Message-State: APzg51ADxXtsO/s+TjEG3g4egcWVrhfuXjP9hyNfySmBw+zl6H7OOhMI tRnN00jlYJSo3dUmW4Fx1T2NlVTALi6WtA== X-Received: by 2002:a2e:6301:: with SMTP id x1-v6mr1158929ljb.9.1536751933575; Wed, 12 Sep 2018 04:32:13 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id q19-v6sm144182lje.29.2018.09.12.04.32.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Sep 2018 04:32:12 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: linux-mips@linux-mips.org, Linus Walleij , Yoichi Yuasa Subject: [PATCH 1/3] gpio: vr41xx: Include the right header Date: Wed, 12 Sep 2018 13:32:02 +0200 Message-Id: <20180912113204.1064-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This is a GPIO driver so include only . Cc: Yoichi Yuasa Signed-off-by: Linus Walleij --- drivers/gpio/gpio-vr41xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/gpio/gpio-vr41xx.c b/drivers/gpio/gpio-vr41xx.c index 027699cec911..7ffb58b0d239 100644 --- a/drivers/gpio/gpio-vr41xx.c +++ b/drivers/gpio/gpio-vr41xx.c @@ -21,7 +21,7 @@ */ #include #include -#include +#include #include #include #include From patchwork Wed Sep 12 11:32:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 146551 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4708452ljw; Wed, 12 Sep 2018 04:32:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaohJ0G568OAP8A3aHWBUk0y/TTl/mTg2QwExSRIxsuEAHTQHC/8NMVFP+b9rgp4h/HAgjQ X-Received: by 2002:aa7:8118:: with SMTP id b24-v6mr1820589pfi.78.1536751939418; Wed, 12 Sep 2018 04:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536751939; cv=none; d=google.com; s=arc-20160816; b=SwwngX8WAPftMWFS7FvhHmPnzXvALW+/L6jmVJOuFRbba64pvDIZlObgDGP/7IltAL TceUzKQWWUmwTY+mcJBfTSCH48yEaBjWLQPstcZxbuMRoU8rZynZY0zMWc/ziJ10Svay iZ9RrdCABi2PUEWE9oRRb1NpNMhKmOQ94t+3xwligbR4rXe2NxaDm8YKQtxdfZJVRN4/ ENXqTq7YhrTIGGrawdJKWPm4ZeuYGu7aR7gCG57Xz4VH4nO/FdLPuVRb1MqtbTmnCiZg vA2O8t/+zS20jEDkx4dxgER0bB1frJhBfXkM9WR2hiQ5lWXVgtQt3UzYkoy1hcNtpmPT QPpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pR42x8AIhEMBTbExVmiy65uEYfsTpfnjsPzSIQbJS0M=; b=zaRMyg+DJf2vZP1sDg1kYnrLg8nDtwVHQn8ImPsENx7dX7EcHSrhz2xe8aqG2S7p02 8v0mYc1/JuJ9W534pRrg8H5Xwfu2DjSrqOtusRs5xXmyV/vKr4TTAG8YUF7AyG+tQ3Ja Adm+EBx/8n1l2HWN9IkYK8lK4nrpdR1cZrqwcFKLnPv4kAj7gSjkUZQOmp0vs5UoREPp /cxuPuoIk17qj36G+Q2UTAl+EBIIoRZsw4iGyMwJcwbpILSco9gH5nXPTzyQVCEPyQKp 16lxeRUgZPJAgKgnaYZBr1+n2C3tI8hvf5WmAD11UULA9g4PQTxhmS0AZqls463acy8P T71g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aUBvBHoa; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 x69-v6si744059pfe.318.2018.09.12.04.32.19; Wed, 12 Sep 2018 04:32:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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=aUBvBHoa; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 S1726642AbeILQgZ (ORCPT + 5 others); Wed, 12 Sep 2018 12:36:25 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42431 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726606AbeILQgZ (ORCPT ); Wed, 12 Sep 2018 12:36:25 -0400 Received: by mail-lj1-f196.google.com with SMTP id f1-v6so1294007ljc.9 for ; Wed, 12 Sep 2018 04:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pR42x8AIhEMBTbExVmiy65uEYfsTpfnjsPzSIQbJS0M=; b=aUBvBHoaolIh1TD5koccfrqnsFV8wVEAjGPi8FDwIyBMMzXR78S2s26Ct2FFiBIbX7 ahfECwIhJD7QjS6XNjbm+ycssVYpq0XG6Zn0gzG3tuotjvwRAtlFKJT2bgxijWE6O7rH +Mfo61HFCzYRSKpExaes4OBpabZukJBeUnRCU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pR42x8AIhEMBTbExVmiy65uEYfsTpfnjsPzSIQbJS0M=; b=XaeC5BhsVtStGEVwwQUBxeFt6bkwus1bywoINiCO0eMajADnEYWgelFV/0Zdju2Skp PqDMhnBoYDd24tSUO6MmxQDRXxU7u9gRNNad2Q4A2Vku9GA98qZw2hYHRPsqs5DfrTy4 voVL/FxhcdPkdxUbnvZTcgNpg02cIjQbnTb8VzHI+RBSe9herSoHKmUoBQXy+8MdFAC6 xoQquu12wy7eIRMqiDgjftcxX3x9n+06mell6Jchjw8NnxcfrjGq6FKe1BtMq8GX8GOv 8S1rbrw2Fay2v12owb1DLJqT9wx1w6lDoVODYj667ClYoLL9ktBlGnzt8IuG/1Afv7ox IdBg== X-Gm-Message-State: APzg51BFwZza18KyjML1BIT9mTyGwzg0TMT00vtuNJHsg/Je9NjtpghD FjHQxdyKU7rx7ZF1d1yppzIDhvwWgZnDEA== X-Received: by 2002:a2e:7c12:: with SMTP id x18-v6mr1074072ljc.71.1536751936172; Wed, 12 Sep 2018 04:32:16 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id q19-v6sm144182lje.29.2018.09.12.04.32.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Sep 2018 04:32:15 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: linux-mips@linux-mips.org, Linus Walleij , Yoichi Yuasa Subject: [PATCH 2/3] gpio: vr41xx: Cut down on boilerplate Date: Wed, 12 Sep 2018 13:32:03 +0200 Message-Id: <20180912113204.1064-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180912113204.1064-1-linus.walleij@linaro.org> References: <20180912113204.1064-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This switches this file to use the SPDX license tag. Cc: Yoichi Yuasa Signed-off-by: Linus Walleij --- drivers/gpio/gpio-vr41xx.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) -- 2.17.1 diff --git a/drivers/gpio/gpio-vr41xx.c b/drivers/gpio/gpio-vr41xx.c index 7ffb58b0d239..7d40104b8586 100644 --- a/drivers/gpio/gpio-vr41xx.c +++ b/drivers/gpio/gpio-vr41xx.c @@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Driver for NEC VR4100 series General-purpose I/O Unit. * * Copyright (C) 2002 MontaVista Software Inc. * Author: Yoichi Yuasa * Copyright (C) 2003-2009 Yoichi Yuasa - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include From patchwork Wed Sep 12 11:32:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 146552 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4708487ljw; Wed, 12 Sep 2018 04:32:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY7gbCrfhHJy2MUoArXrQfqQ1+WRh39vgW1hWuaH5UPEVZhUyfgy32oFj0UkDBtlfKWXaCf X-Received: by 2002:a17:902:9a47:: with SMTP id x7-v6mr1725591plv.37.1536751941680; Wed, 12 Sep 2018 04:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536751941; cv=none; d=google.com; s=arc-20160816; b=GL9PUvPtKf7NwUxTje7dhjETpZmb6T64S0yCeJj/w1WuS1mlB3q7s35VKpBmz/v8ju JAEGgP0a7PJoZmmEerSPTKNXPr5JUZxJDjDtz0mA37uUlqwujLKlSODbdfmlYObe0DnP PYDyFsrgHQCgqMkWLTYd9p0axvdicA/52Q71RAdfSj+XBv/C+JKRERS3kHWiiZ9Jdegk AUMM4qOlB/fLoR2aPr66/aZkGi6/DeZEbHqeimGEQUOYGOr2rWVWuByTGEPdXwWQQBB4 4aa4Xumv1OkX9kfRZmoa5a5RRl60v9Efc/EsRNn3r84gwu3YFmZnwj59uQ/CDKPZq8Jx hyYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=WmDKNuVL2nQEOx4lnKKMauhr7amwXHX432D2ciaX0bw=; b=j/PVoIMg4Kfv2Y773Pcn6JWx0ljAg1+L0ZQQ4LMiGSEqLIybxD4vy3YzDiy/1PR2Ev HnWtA+7DCzxBWC2TUGLu7iJuIL4o2AWlkVP+UjEb9NUktb7pWHu55uROndBmxnvP59zj w8zOXkEYHJSfl6RbBNRUDpHknAQ0uBt/ilUpiFsE9jKlfhPbxlsQeRNe3UCuC0yJjBKp HAwyX9sAfyu29K6MnEKHsjoAG5l7i7NIC4N+L0bSGsro4veqp5vcs8S4jOp2oYUHq9lx h5k0xChGzDNEscW6NwPB16eo2MiRyLo8vCvEav/KoLTUln++iFgCZ50/2lIft1+EP1l0 Drsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HrD+V0Es; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 x69-v6si744059pfe.318.2018.09.12.04.32.21; Wed, 12 Sep 2018 04:32:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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=HrD+V0Es; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 S1726672AbeILQg2 (ORCPT + 5 others); Wed, 12 Sep 2018 12:36:28 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39706 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726606AbeILQg1 (ORCPT ); Wed, 12 Sep 2018 12:36:27 -0400 Received: by mail-lj1-f193.google.com with SMTP id l15-v6so1307697lji.6 for ; Wed, 12 Sep 2018 04:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WmDKNuVL2nQEOx4lnKKMauhr7amwXHX432D2ciaX0bw=; b=HrD+V0EsTf+MrjTIH4eYswSpyPOL7PSO08bFHpYQVdrzZ1PORD4B6NmdS0uXwm0MRO ahzgswREMBpiDcO9d6xjUleZSNRHYPy/g+wo7xaEprCb/HSS0y07tgEJlWYYyVCURDWE VdR+6pjuO6H5eC7iTaB/T9/8vfqwKqRDJFcpU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WmDKNuVL2nQEOx4lnKKMauhr7amwXHX432D2ciaX0bw=; b=IBh+aYT/ofkP9qWqp0gTf82OCNkySHMuLdkS1m1IZ/c3vkf7NaKxhD8R3ifTu9f6bo MsLJv4KGbl2yerczBMR1TCgLqdxBkcd/zHkieszITNcw0gBkJFTcPC2zffmgfSvZdsyg IwsAgncwQJeVVR+F4mHeY5qp65GmU9P4tHvRMVyt/Zu3ehOglJVzFv1ZNgEe33BiLBQN gdUqFpXu7B45tNRWALR4FAA2aYSh+LEL6/NQXAQHbvxA8XohjY4kzi2VJVgQ1nh2h5t3 pAwoLOVKdox+3423tYyvThpgqMtXMFQ40rHKgAAKQWcJhp39hdQdKozeq+D6CX+eCLxo xN5Q== X-Gm-Message-State: APzg51C8Jo3uov9mTDDJ3y3NlRrL5abzPO1ZNrmLXttoGzzUAtdmm/Ev yxg4pTiS0Th0axYHL+0Zh9g1SH6pwBdkxg== X-Received: by 2002:a2e:85d5:: with SMTP id h21-v6mr1090903ljj.103.1536751938551; Wed, 12 Sep 2018 04:32:18 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id q19-v6sm144182lje.29.2018.09.12.04.32.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Sep 2018 04:32:17 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: linux-mips@linux-mips.org, Linus Walleij , Yoichi Yuasa , Ralf Baechle Subject: [PATCH 3/3] gpio: vr41xx: Delete vr41xx_gpio_pullupdown() callback Date: Wed, 12 Sep 2018 13:32:04 +0200 Message-Id: <20180912113204.1064-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180912113204.1064-1-linus.walleij@linaro.org> References: <20180912113204.1064-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This API is not used anywhere in the kernel and has remained unused for years after being introduced. Over time, we have developed a subsystem to deal with pin control and this now managed pull up/down. Delete the old and unused API. If this platform needs it, we should implement a proper pin controller for it instead. Cc: Yoichi Yuasa Cc: Ralf Baechle Signed-off-by: Linus Walleij --- arch/mips/include/asm/vr41xx/giu.h | 8 ------- drivers/gpio/gpio-vr41xx.c | 38 ------------------------------ 2 files changed, 46 deletions(-) -- 2.17.1 diff --git a/arch/mips/include/asm/vr41xx/giu.h b/arch/mips/include/asm/vr41xx/giu.h index 6a90bc1d916b..ecda4cf300de 100644 --- a/arch/mips/include/asm/vr41xx/giu.h +++ b/arch/mips/include/asm/vr41xx/giu.h @@ -51,12 +51,4 @@ typedef enum { extern void vr41xx_set_irq_level(unsigned int pin, irq_level_t level); -typedef enum { - GPIO_PULL_DOWN, - GPIO_PULL_UP, - GPIO_PULL_DISABLE, -} gpio_pull_t; - -extern int vr41xx_gpio_pullupdown(unsigned int pin, gpio_pull_t pull); - #endif /* __NEC_VR41XX_GIU_H */ diff --git a/drivers/gpio/gpio-vr41xx.c b/drivers/gpio/gpio-vr41xx.c index 7d40104b8586..b13a49c89cc1 100644 --- a/drivers/gpio/gpio-vr41xx.c +++ b/drivers/gpio/gpio-vr41xx.c @@ -371,44 +371,6 @@ static int giu_set_direction(struct gpio_chip *chip, unsigned pin, int dir) return 0; } -int vr41xx_gpio_pullupdown(unsigned int pin, gpio_pull_t pull) -{ - u16 reg, mask; - unsigned long flags; - - if ((giu_flags & GPIO_HAS_PULLUPDOWN_IO) != GPIO_HAS_PULLUPDOWN_IO) - return -EPERM; - - if (pin >= 15) - return -EINVAL; - - mask = 1 << pin; - - spin_lock_irqsave(&giu_lock, flags); - - if (pull == GPIO_PULL_UP || pull == GPIO_PULL_DOWN) { - reg = giu_read(GIUTERMUPDN); - if (pull == GPIO_PULL_UP) - reg |= mask; - else - reg &= ~mask; - giu_write(GIUTERMUPDN, reg); - - reg = giu_read(GIUUSEUPDN); - reg |= mask; - giu_write(GIUUSEUPDN, reg); - } else { - reg = giu_read(GIUUSEUPDN); - reg &= ~mask; - giu_write(GIUUSEUPDN, reg); - } - - spin_unlock_irqrestore(&giu_lock, flags); - - return 0; -} -EXPORT_SYMBOL_GPL(vr41xx_gpio_pullupdown); - static int vr41xx_gpio_get(struct gpio_chip *chip, unsigned pin) { u16 reg, mask;