From patchwork Fri Jun 29 06:35:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140508 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465113ljj; Thu, 28 Jun 2018 23:35:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJJVq0cNbEkscqhiaXceAR3qRGdTQdOkEh65Grhns8hPuXMpHYWrhwJPRBIK0998sS4CS5a X-Received: by 2002:a17:902:b08a:: with SMTP id p10-v6mr13846683plr.0.1530254150701; Thu, 28 Jun 2018 23:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254150; cv=none; d=google.com; s=arc-20160816; b=gHKSRTSY/FJM1Su4iLPK6j6kV/e+OUBHa8JBq5S765031VPEXuBuTGIvdUEGc1dH4u Y4G61b+O/nlQ7rZYIk5sCsPP2f09lfzRGAEaQXEqGe/hUo9Rw1QQnly+ZofSC4bsUY/1 x+krk/hkT21r4uv0Rx4dJRRJk6xAl0WqLAL2nvBcXw4g1xpnlgKnd0WXmKtR+w1rH6jc HheLkKMgOSsua4YP2EPWdzQ3LbMBVVwJY3sY0ott5PgV8tJR6xMEYxpAfLLve2zEC18Z 2BHlbxffloN3KER2q/sluxlVAW7g9K0xOgQl4nr9U/6gl0vkkI4ES0CURWmSXt0cfClb z3+g== 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:arc-authentication-results; bh=gyb/S1uxzKb/9VpmC9jTHtY7rfVZTgI26WjcE0f1nJQ=; b=kTGPvb+z8qiTFfvd4o3V1tYoqTvA0bodt8XgmmUkbR/2U8ha+hVwZeiHQHdN12yRe/ TrIoWcOo0kbc2MjDrOwyKEfDNJCZGKCaP9bJ+bVBPKwJzeNVrlwj5WVJIf3XTJP3kAPI sIWIz4IAafX4pViaENv9WbWyL1SLmPZAbyL3MsgDOf73WNm4AGkQIbn8+pONTa9qk66s dgOVVpCnabU6J2Me4XS0YJD841MgTrErKKPsY3rwUuFu2O2hCcZzqTG/LQQLLfDeOJ7P tyP4Jg0DlATUzwkF/5N2GnqUb8sJ/2WylJXX/y/crcaDPEg9gKkUu4zk1IJe7+Y/qJhg HW1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZC5+nTf5; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.35.50; Thu, 28 Jun 2018 23:35:50 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZC5+nTf5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752617AbeF2Gft (ORCPT + 5 others); Fri, 29 Jun 2018 02:35:49 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:43690 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbeF2Gft (ORCPT ); Fri, 29 Jun 2018 02:35:49 -0400 Received: by mail-lf0-f67.google.com with SMTP id m12-v6so5418952lfc.10 for ; Thu, 28 Jun 2018 23:35:48 -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=wb5eNOC3rHpWBhz3Mm/LLW2mycBt/lFIfvICTW05KHc=; b=ZC5+nTf5aZXNleSP8PBYrbbN/mkd8nD9mp2Kvo6OsFasvIQIhvU3qDUC4nhwfbhiNk ndDXKS8RfA82PR9x9pSmFEk3a8ayWscUaEngWvMZ3dIVfzp0SVv7VWmqEffmmX95x9zS UoCb4L8Ps2C3BVH00VMpEV2n1Wdv95jf0cjYA= 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=wb5eNOC3rHpWBhz3Mm/LLW2mycBt/lFIfvICTW05KHc=; b=NJ+ZPXaWYObp0Ok89I28jESrqBoePP0B5F0bLpBgrz/tuzuAx2eqOLQGIwX1IiUp1k rbjnBaPTZFT74tox8xqNoxO7MhWEhO/EwlEbuQXwhpqtKcNe2R0+2HT8n0wWR0Xgk6pH yfBHhS+OAZ0/ev9EBfdwgDlvN9gguZjq/uxwa5iRCnD3BAQBIiqMszaGRR+KHbXrcXMw hGdpzTRBl+qrg0VyxdbbtHEy/Ncgqee+WQ+FJzrBWezjKkh9qWKSsJCzjc43PNIOKufi 8cLIS7/ohDhIcSqHdBT/9BR7Eg2MeOuhB+Wby+lsE3x9Hl50EXP32uK9nbpzkQrq8TTz AHXw== X-Gm-Message-State: APt69E1BMx72bC9R+LdCFZEUiNJoQtfdQ3z0xZKcRdLRO4lLjt9F9X7N PZnaVD+DXa5nyClg3JHJoruZDlXyiAY= X-Received: by 2002:a19:1604:: with SMTP id m4-v6mr9220568lfi.120.1530254147760; Thu, 28 Jun 2018 23:35:47 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.35.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:35:46 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 01/18] gpio: rc5t583: Include the right header Date: Fri, 29 Jun 2018 08:35:27 +0200 Message-Id: <20180629063544.3826-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This is a GPIO driver, include only . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-rc5t583.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-rc5t583.c b/drivers/gpio/gpio-rc5t583.c index 3b4dc1a9a68d..a499c633a6c5 100644 --- a/drivers/gpio/gpio-rc5t583.c +++ b/drivers/gpio/gpio-rc5t583.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include struct rc5t583_gpio { From patchwork Fri Jun 29 06:35:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140509 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465136ljj; Thu, 28 Jun 2018 23:35:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIUS+FrDk0zLV7GvcSaW7lXti3nI9UavgtTazSQN5rH8ZTlrmmJ+8djCArbGw4uXZFb1M+k X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr13518244pls.169.1530254153030; Thu, 28 Jun 2018 23:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254153; cv=none; d=google.com; s=arc-20160816; b=qE60nXEXFsBY35i8y5XRkUEm7Y0q2akmnYt5AKTnxb5mlQW5sI2uwC+SMURgjPXA0a V2rquA4DF6vrAY/bMmMkIq0LtwlIbzSdabYUByIEUjnAbAs+0aPH3rJ2Pmh5wRf4QlLW 7hpu6bI9FWnJV7EXicmeJ8+Q2DTFL43kj5OzAnxRPFX3LB8k+4yFBVn+X8s2uIID8vHr F8TgfKXFTLPN6sD6uEcVkHtMqITXknAw2LC2a6t3GjYyZ4ilekP6TMy+rClTdqCF7di/ felspsiHRxkBAx6VQ4rshQLfQl5uUNO0uToxsq3lug6oDaz46EaNQHzRB3LBJg2VDjUi T/6w== 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:arc-authentication-results; bh=l7jAeJujn1tgLokwQjCT86EnfXmfnnV9tDFNnomTRsA=; b=Tlb6qXNHykvN7LblSzWJjCVvQqygsNQtFFcUNumQQBjDneI/10uNMIByhrantVd3c4 dk4AY43xcQBc4xrDMXBKPLXgzzXq/SflTXyoQaBRgkwFRc5hM11Fqs081+G1jtvgBXoK Jz1DTkhOF9ce3gGY8eAZWzGqG4k9q9ejB4rs5FLeSelBlMrsu87LhZR8bqF+Hz8czeRT ry6lDCrg2Ly6xdLnFO6TbO/2pxb/68o5WhwCkD497Xf27Qfc+Im8g6MUbpZ3s15YqVkT XZ7F3iluRbAAt7hPlAvtPYhmAZEtzQoesrnia0duhd6nIa+haA2HLTMGbHbr97Y2GijU zC3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=N22R0hU9; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.35.52; Thu, 28 Jun 2018 23:35:53 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=N22R0hU9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753044AbeF2Gfw (ORCPT + 5 others); Fri, 29 Jun 2018 02:35:52 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:38960 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbeF2Gfv (ORCPT ); Fri, 29 Jun 2018 02:35:51 -0400 Received: by mail-lf0-f66.google.com with SMTP id q6-v6so5973720lfh.6 for ; Thu, 28 Jun 2018 23:35:51 -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=3SqCJwXjVJAJvGuY76VJmMZmzt85RcuDgOaSdWt1a5E=; b=N22R0hU9tWK/BoOCCRM94W8e/vAmAo9WE4QMRlszyjd48nOS8US+JJ4yMY+Ek1nejC ih1rnJKxzT/4uoVGRmeo6oXCnM4zzNaMOZQAvlnS3HEy7j2gNIOdwUQn/FYWktbmCObR a9mUtkZKm2KUGSLZtV+knXZIf5yqBHCE8Grps= 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=3SqCJwXjVJAJvGuY76VJmMZmzt85RcuDgOaSdWt1a5E=; b=Ka+6px8MYioKC4Ylq7CYTH7VcYVIbquUvJluupwrPz0VepF5F/Yiyjmo4TIeDCHCMI mH6rW8MkCEG28EknQllWXGxWs8981FVcmmAktsMsWam5wbWXzslGOgMjBkFUCItBl8XP gNPnlAcBQww3X8TuMcmu/h4JWcgXb3Q6/cllA57Eq/LlcuOJqHjWbJA+CL7DE3Gwh+st se5EhxX3U97BJt2VyDVS6Y80stZHctkB818i0+f6qtj9/WNe6l4t4fnwsuTC0v8cFrC3 M4OKGnS/3I5KToeCPg8QJf9AQe9AxOTHvGtw+JzFKJ6zsLLxwST4R+8+oDg32n7GjhiQ UJ2g== X-Gm-Message-State: APt69E0By8+h8o42jHCsB86dETOMb1XBfHxwSsYat0swJOL6xX0AmaSr d9IsfD4uCAh4t7MsRxGGBofBeB3GkLw= X-Received: by 2002:a19:d245:: with SMTP id j66-v6mr9241514lfg.139.1530254150304; Thu, 28 Jun 2018 23:35:50 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.35.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:35:49 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 02/18] gpio: rcar: Include the right header Date: Fri, 29 Jun 2018 08:35:28 +0200 Message-Id: <20180629063544.3826-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 350390c0b290..2c9a4fc92dc6 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -15,7 +15,7 @@ */ #include -#include +#include #include #include #include From patchwork Fri Jun 29 06:35:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140510 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465179ljj; Thu, 28 Jun 2018 23:35:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdMUgr/aR97mHAya5hZHdna1/UQpbfP1nZwjQ3zMs+D9u/2ZzTlkxCUsdKT7WhDff7iODtM X-Received: by 2002:aa7:864d:: with SMTP id a13-v6mr13013244pfo.247.1530254157699; Thu, 28 Jun 2018 23:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254157; cv=none; d=google.com; s=arc-20160816; b=VMETy8DWpiPOAdAiJ1A5H+sK9439qgr3n/S7PnGISqiL5RwbeVUs5A97Sg1lC37qM/ 0IXfAqerQgGOuSNvVnr9ED5h+n7amQ0N+97cWLK5hm69OFtvY1KkYlf574eglgMcYp4Q nP3AvDY5W9FG6VnyRN+elQtizfzXoyS9+PbWnsGPZHNlgNMzAR/nEuJ6sXhL1z/Dy29Z B/Ji8ZjRuQB+D9MZGRsk9O3y+ZUUW5WLEOgCP+PF6LQTO+QFLDgis+n8c/1t1pHcQjjp WRjkIKE+aAnhVc60/LIWqlZ2izhbGL51bqzTpdgeTncZnoXRyFNYFn0Bd1h7OEOnS1Ag aISw== 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:arc-authentication-results; bh=yPVOhjrGpRIGo3V+VOTCLl7JjxTK1q+inHF4OVIrsSs=; b=D5mMfOftuN7lJYKc2vSyueZZYUwLAz7ZJSmPw5q35iUhdf95qYSCfv3Wy/9XIwz3dc ZDTy8UujA9x7coeb4bxcS+3DbS0/7EcJCJGDgbZJWTbNeCEbUK5ORuezV0xSOQJJl+Xo CfgUD/9q+//3rPHnisGPCpc0yoQoHsb/iJXHQwbrk//8nkCI/KA5M1OTxTQZN5TUH6Xj ygUXmtzWqCUId6nRvC03U0ov643Uc6/HyyG4OIslv9rda4NTOo3QsIr6Fs/DOliFPOd6 +u7hyR+TpUIRhlwhxR/UVQrgOIYcRLG5U5jwks/XynP17a90eoXPW7b8PbjJfvPzVkiG wIeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eBZ4NRgD; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.35.57; Thu, 28 Jun 2018 23:35:57 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eBZ4NRgD; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753166AbeF2Gf5 (ORCPT + 5 others); Fri, 29 Jun 2018 02:35:57 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40703 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbeF2Gf4 (ORCPT ); Fri, 29 Jun 2018 02:35:56 -0400 Received: by mail-lf0-f67.google.com with SMTP id y200-v6so392542lfd.7 for ; Thu, 28 Jun 2018 23:35:55 -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=Xwc3xQl+szWxQLWmpfPHbAxlIKeRo7nTIU7/52F6Xto=; b=eBZ4NRgDyqMok6B8kPHtQvgneQdD/JQWz2Vgwy1ehxT+dXoVJwql+h+rspQOMjo00Z DRiV75setP7iZbtvkTZ/4umF85T8N4iWTxjdGyatJXCa6YiIVU+KyIKeJayUvkkY4IBo Oec6kOUk2q24abbJrQLEeJOFIwFGUyV3d0QHA= 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=Xwc3xQl+szWxQLWmpfPHbAxlIKeRo7nTIU7/52F6Xto=; b=poUuyGaYBfvleCJoMy0zxx8iIuN3yMsvLdpxgs+pmaQP5+z310j5zWqZ4heIR21m4P GGuwpRDTGwkIRqD0q0Nyc4Je9b0aKgSc+260uYBW1hE5qk6aSF648adY/wwcLb0ZAc6x Awg8uIuPOe0G2tZqguw99iM3lkF/gO61ifLdQBdRxmdMmHjpZknTkI4rNu0SrpR9pShf OVl+x4k8bsc3PxwGYR5xOsJLSNk58U68MxkzzL5SUUiOwDfCdV0wz6iVdFtK4dbfLn0l b4+pjiXCLmYrl/TNku4oiT4laN7uR8iDZ/zCLhbV77HPCiAv3J4r8ch7ZluYm/HbCl26 y30w== X-Gm-Message-State: APt69E0zmGufkO3PiGEvO2FXRh4Z/j60V2CUddCVwOTcY/9RwxSAJq3y 3M7aZGwPqAsecdIOKcMl4q62Dog7A94= X-Received: by 2002:a19:ef0c:: with SMTP id n12-v6mr8710110lfh.48.1530254154752; Thu, 28 Jun 2018 23:35:54 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.35.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:35:53 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 03/18] gpio: rdc321x: Include the right header Date: Fri, 29 Jun 2018 08:35:29 +0200 Message-Id: <20180629063544.3826-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-rdc321x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-rdc321x.c b/drivers/gpio/gpio-rdc321x.c index cbf0f9e6465b..2938217566d3 100644 --- a/drivers/gpio/gpio-rdc321x.c +++ b/drivers/gpio/gpio-rdc321x.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include From patchwork Fri Jun 29 06:35:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140511 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465211ljj; Thu, 28 Jun 2018 23:35:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJSQqcgCm7b/I+bEnfkdqDz3uojHkb9OdK0cs/3FJApjTgLprcrdWPGK67XHM3cvJ1Qp/0V X-Received: by 2002:a63:a809:: with SMTP id o9-v6mr11718189pgf.313.1530254159824; Thu, 28 Jun 2018 23:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254159; cv=none; d=google.com; s=arc-20160816; b=Z/LgpBRBrecH9jTg3sxdcs6FnZrey8YHfAi5SEhuNGbY1tL9KWVcXbjvzCEiyzoCn2 udTIsDoeny7sbp7aUT/6ewNYRv2n2yDEorvsjKF3dCHAfPhpRlHZRDIgKv/GQM8ixt8+ PsUSa74+MG3RUel11WiN9bOclXNfffThb8r9R5BCT1R2DhwNUpGaGapGMobWTs/3DSoq t1KZNPJUTIVfkHsC5VitG7Q6x32GFSU2RgNHQw9TnAVXT55QHaRlSG0iQwLmsL6ZEqY5 p2zWPrfFHpsqZJPvbbHghD/C9S/LWi8xCYG0yyIQv5Yu+F87yHFZsZU6hadU+k1YpSxy DfGg== 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:arc-authentication-results; bh=mcEikJHbprrYLuKLP2p1xHmFBwQEe0CUwwKBOUTuw+s=; b=QVsqS4BtLckBlVYbqs7/QB3+kE0eAqNk/ks12z9dyS2X+kKUdfYYTgkyjx7u9xZEEe NcuDcRv2RxPAnuv4492N7vzX9JiqPnhQUeMpwk6XIQMLRm3rNgoAIuirbkIFyTcRQS+n RGfF5EhhzJ0hButK+MCXKUB7XFKO0ovzS/UWvhwgsnzYRI2wBAqaH+cPMmGHZ4n50GxE GMEnK5b5YnonMOBxf4JsrqTa1UIyEqmFbUl1l5gXC4iG5bpGjwg2iTdOR2gO7rqL+PoM V2gUAehqtW+RJAn/iniujBgJ/+sNE6CBtZyfR5ACLBo1HndQTPjMNpwehvmrY8gyhgzF AXIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BYbEzOTx; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.35.59; Thu, 28 Jun 2018 23:35:59 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BYbEzOTx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751283AbeF2Gf7 (ORCPT + 5 others); Fri, 29 Jun 2018 02:35:59 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33760 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753169AbeF2Gf6 (ORCPT ); Fri, 29 Jun 2018 02:35:58 -0400 Received: by mail-lj1-f196.google.com with SMTP id t21-v6so6418249lji.0 for ; Thu, 28 Jun 2018 23:35:57 -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=33XF4Unv0QZHnn66ZpeEtDrAXsdPn/fRP1iUKx9ek0Y=; b=BYbEzOTxCdniOF66bXaKEczLf/HDSIhZgn5hdSPI4x3BMDBsviFQUhAPf30/WPgjtN 1bE6ACV9c2YxExW/uO99rC/FJ5B84fJRZdJ37TOssDkXljvZG/k60Zzw+gIsWIP/qNoY gg8S1enhVrMvJKJEd3WXxM4MrQTuoMbHNKW9Q= 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=33XF4Unv0QZHnn66ZpeEtDrAXsdPn/fRP1iUKx9ek0Y=; b=TEdO9VhUKew88uG9zb86RgF7cdbp/GJQYCj60XN/n8nnZ12p7YsbOtF+99CJLaxbpu fr/+cjuI1+ExzxgRjoaerMMtsTZQLNa0g9EKXev6Fts3F6uieCidXTHf8KBhsl4wa2LE p31mUQ9vu89cl7k2HQC4bFW9FuszC4yzHshqzb+w1CjbLo3kRB9un1IQidmh6pO1LMiN J+R82vdDuug4xk7CnXytf1ZRFRrWf9UJavUkhrvKzDtR7zI7YzJ/9Dl8AFBqXw5GSW5H kYYA5quws83JQYg5cAu3QGlTiwWKTaBabRu8fvIilJbX8tSrBFvjX+xRPEMKf0lsrKps jX8g== X-Gm-Message-State: APt69E0+fkl0esm70rc0QIp/A0QfULL7hOkn49Su5TAYs662eoRl07ck wl1a8Ja64ScQhmwaCEFbOsh1CacMDSg= X-Received: by 2002:a2e:8051:: with SMTP id p17-v6mr8972176ljg.22.1530254156835; Thu, 28 Jun 2018 23:35:56 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.35.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:35:56 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 04/18] gpio: sa1100: Include the right header Date: Fri, 29 Jun 2018 08:35:30 +0200 Message-Id: <20180629063544.3826-4-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sa1100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-sa1100.c b/drivers/gpio/gpio-sa1100.c index 249f433aa62d..986eb3b231ac 100644 --- a/drivers/gpio/gpio-sa1100.c +++ b/drivers/gpio/gpio-sa1100.c @@ -7,7 +7,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include +#include #include #include #include From patchwork Fri Jun 29 06:35:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140512 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465246ljj; Thu, 28 Jun 2018 23:36:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIwj+bIp9n/L9aXFnGiuKG5DshI5i38H4QBJG2VaXFELW8z8kBpZJR2N/x4UO0f0q6izGCB X-Received: by 2002:a63:2404:: with SMTP id k4-v6mr11414783pgk.191.1530254162020; Thu, 28 Jun 2018 23:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254162; cv=none; d=google.com; s=arc-20160816; b=FlSjiS7AUr16u4YvvEcu6Ly5I/d4cz79yn3APjgd8gPtR3nsOIU9anCJ8aBTlaBKUZ qbIz6id8sNezILbRHvgtSs5nQ2BsEC/Y8bLdV/nMPjue0o70DmTXItwfSv+5Bf0ld+E1 WjYhYf/tmDorwaPNlD7p2MBLJUGURWYDMj825pSEyVL+L6UiiBaka0Bc+eDVIwZVjB+S x12jF0ss3GdnLplRRrJgeegA5+EW4Km/Xk3p7Xf+g02WOUFy2/WrtIVFxQnwlDZY/JHE 5MwcFrj2L4hlhJB6IMVTlo6dmyfvZAOjX1c2aBqEr5JEjD/sLtzfq6GZB40UnGUl4EEv 5jfQ== 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:arc-authentication-results; bh=tvUvaCt1/u3c9yH8Q6VMzjzPgAVUpguoM0LULhm0Hh8=; b=poWnzbWhbNS3soXsauuEbR5YMOJRxPpl+TL6O5jYq/oUoTEXkSo+qSBu3vi2eNqCiC bZfyhqO6lm9QQhMUF8oEUx9vJn1a6mzMO8Iti+PXf1mV1q6Ggl48Evbta4LUFt/g6ZB3 Wge5U/70LcQL7F+AlZxxKtOVp6GRvsKZV1XFcmsOGISMddRUVxqA4XJcKNxxZC6WZVT4 NP5YLDvZUECuufiIGsM8wB8X0oaMz54SAbamqgfKOA/EC5Zn02kFG5i8qn6RejC5ISXX 7hpF5Cck7N/FhIxCphiuwgEKfN6F8j7eMJDhKcmeljSPGJNOlu92hHtLkibhxvBfyrBl Ricg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e9KZGDIG; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.01; Thu, 28 Jun 2018 23:36:02 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e9KZGDIG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753178AbeF2GgB (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:01 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38104 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753169AbeF2GgA (ORCPT ); Fri, 29 Jun 2018 02:36:00 -0400 Received: by mail-lj1-f194.google.com with SMTP id v15-v6so6418086ljk.5 for ; Thu, 28 Jun 2018 23:36:00 -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=VfvvT/tAU1bGPOP+fYqbuA4cslFj0sIJsUZFPREJ5XQ=; b=e9KZGDIGcD/HMkupxHOzB4nnH26/a+icr8f1EhgRoCtrHXJJFfVcek+fCl9ZN8uX/p F+mwAQRTa6zE0wCj/y2CNtQoM4cIhS9tPHaLaP1HuG3dgirfQQOoPDwlWMoT353xbblP rJ1Tlo9rbksJQ/i5swmWuLtwNX2OoLPR/fC+0= 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=VfvvT/tAU1bGPOP+fYqbuA4cslFj0sIJsUZFPREJ5XQ=; b=gQPiX2ecyOvN6ycovw3WSz+pcjaX5kLaX7TNk40rwIK7I4OJEaPrl7L5nNHJODCr5i kJKQ0J1w6E+PsfXTJr4RVEIbyQOU8pjM6DNAqzFHV4eBLqBSDhfdVxIkIri44U5CcU9g FYCq6suNYH+f3KI0zJVLP80kdPGaKshy0NdzA+2OpKHyKcdiKiubEWoxNtwm/693PdPo TGz8Xi/dVplje6MZ5AuGfPgnpcHd/7oRoSNhCK2v4NbOYrqCS2VSWTJ6MJF3RjGzcOME yinsIGC3d0knE/7yyAdXCt4rpgVLLs72h19bcpfqZeuDKluaBVm3tamtl9QgwBge7KKR E/cQ== X-Gm-Message-State: APt69E3iQFgflz0woD682KAy40lA+AVMBnQuJLRW9QE+ZpukJJJtkUwM Q1RJJ6xT8P9g78n9QzWKmXr4XerhheM= X-Received: by 2002:a2e:500d:: with SMTP id e13-v6mr8740415ljb.70.1530254159290; Thu, 28 Jun 2018 23:35:59 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.35.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:35:58 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Denis Turischev , Daniel Krueger , Mika Westerberg Subject: [PATCH 05/18] gpio: sch: Include the right header Date: Fri, 29 Jun 2018 08:35:31 +0200 Message-Id: <20180629063544.3826-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Cc: Denis Turischev Cc: Daniel Krueger Cc: Mika Westerberg Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Mika Westerberg diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c index 545004445846..26e9b1cd2c78 100644 --- a/drivers/gpio/gpio-sch.c +++ b/drivers/gpio/gpio-sch.c @@ -26,8 +26,7 @@ #include #include #include - -#include +#include #define GEN 0x00 #define GIO 0x04 From patchwork Fri Jun 29 06:35:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140513 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465290ljj; Thu, 28 Jun 2018 23:36:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfPXmnK5uMc5hdMcdfkjAHCW3ZooQHfxMCaEGMYOYiXcFNfopkJwLHZ14vruux+sP1EWC/I X-Received: by 2002:a65:5a01:: with SMTP id y1-v6mr716773pgs.125.1530254164927; Thu, 28 Jun 2018 23:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254164; cv=none; d=google.com; s=arc-20160816; b=nln6CDokLCak9jLqHOMTvQ8pqywB+x//nzFi9MDDpeC1ooAKig7GTRoS6SmTjktWJS R8xIF5V/MYkl0W14o1DGqZYwa6UU7UAi1sQxP/B/58noSRxGLMNDzqkAy+6ldXe9CFlJ dGfT/mxXtBdZsPnU3HNZmnXjGY57dkqJ3/83KPoQM2E3QA/QggY3mYE7mCJN9V0RRTDd Rdp6KiQN/gN1R9wGiIQcPDvim1XIX7Cc3Fkypdi04ok1vZHHijlf2Tt46Doi0TSWiUX2 nWvCGlV340FHmeWsqf0LTtR5VXsXp0nDu2U46lxm3r8X/X5JyHKFhdT50c+BGg7h2gzn 3stw== 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:arc-authentication-results; bh=a5O8t9E9sRfp0QgCF4F3Nx2V3mexKXmyBZtEsg1lvm0=; b=ev+HycKnOIX+dJ5qhTfidEzMfysA/6s/lepnklwA8IcpPgVc4dP3j56UfaEuNkT+su slLgHQY404HGxpajS5ScfLk4amA006F+lx4c0300CG9KPHTjYQT9TbAf/YkwM55wT/WI GXKTSCyzaz9YlykjaBmozH9JMrIRxlfFQyv37Iz4mC1DabaO4PmCjaUGlIzpp7dZROFA vi4BGjG7NwH0jendoNNovB+5/3VmVZUW2BTrYFHgxfMhIbl/9BJ6XfHx9c7IeIjBaCtS wF4h4graXqUIEWjA7vVcoMCnNICVRZFnnTU6mW2ELKogm9+wkyCTGmxr//oCAJkI+btg rK+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h6+PlJUP; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.04; Thu, 28 Jun 2018 23:36:04 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h6+PlJUP; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753169AbeF2GgE (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:04 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43706 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753210AbeF2GgD (ORCPT ); Fri, 29 Jun 2018 02:36:03 -0400 Received: by mail-lf0-f65.google.com with SMTP id m12-v6so5419448lfc.10 for ; Thu, 28 Jun 2018 23:36:03 -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=j2pYjLQi68s+yyqoJk4GQv/JRe3AfQdKvQR0jKalUT8=; b=h6+PlJUPzR4tO1DEgj24GK9ZqzEhAecCEdpoa+MS4eO2x1M/0p4ozc3zjfXxJWCHLM 1S1S3cnPOwXlFBPEefS3cgvx2L+tl2Dv3Mu7TFg+4vamWn2eRsj//R3HR9N5w9t2PxYL jCg1hihfF2V3g6oA2YZzomcbG/tMduVkbIEf4= 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=j2pYjLQi68s+yyqoJk4GQv/JRe3AfQdKvQR0jKalUT8=; b=lwNHNyBmnzqqV4I6GHXrIO2+rXs7aU0Z4jXUro9tp/n2KE5xO02ZSt4/17CcSPE5bz gq1CjWyA5YUvlHb6o/l+js4vYOL3oZLcjU9iWfXES66TenA6U+wWAg7zfZ7iqmHYE9RW R99Jvdh6XAhz4JebkOl4GHtuUOht6wy26jBLzxycSFJ+G1fvNU1sivTZEBn0WQNIcPB3 vn3IFM5CMQ+0jf0g4xP1bv/FJptxTqewtd6X3Uq9kS+3L9r/vHN0cpYMucgvrzp3525O 1TynvC8LziLFsNVI8R0hepWe2nyTjMdtBIRhyWt5Lk/dG+ZOGOf5TtBlUKa0WiVcANeO ZcRg== X-Gm-Message-State: APt69E06SiWdUC8ZiFHdT+0jrTu7iI9l+Cuq9GjOAlvd5EBs8s3QVS/I 3vMOgg1VPOKj31z9h5nja9SPAItw6t0= X-Received: by 2002:a19:c004:: with SMTP id q4-v6mr8648835lff.16.1530254162023; Thu, 28 Jun 2018 23:36:02 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:00 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Denis Turischev , Daniel Krueger , Mika Westerberg Subject: [PATCH 06/18] gpio: sch: Implement .get_direction() Date: Fri, 29 Jun 2018 08:35:32 +0200 Message-Id: <20180629063544.3826-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org It's pretty simple to implement the .get_direction() for this chip, so let's just do it. Cc: Denis Turischev Cc: Daniel Krueger Cc: Mika Westerberg Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sch.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Mika Westerberg diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c index 26e9b1cd2c78..e9878f6ede67 100644 --- a/drivers/gpio/gpio-sch.c +++ b/drivers/gpio/gpio-sch.c @@ -137,6 +137,13 @@ static int sch_gpio_direction_out(struct gpio_chip *gc, unsigned gpio_num, return 0; } +static int sch_gpio_get_direction(struct gpio_chip *gc, unsigned gpio_num) +{ + struct sch_gpio *sch = gpiochip_get_data(gc); + + return sch_gpio_reg_get(sch, gpio_num, GIO); +} + static const struct gpio_chip sch_gpio_chip = { .label = "sch_gpio", .owner = THIS_MODULE, @@ -144,6 +151,7 @@ static const struct gpio_chip sch_gpio_chip = { .get = sch_gpio_get, .direction_output = sch_gpio_direction_out, .set = sch_gpio_set, + .get_direction = sch_gpio_get_direction, }; static int sch_gpio_probe(struct platform_device *pdev) From patchwork Fri Jun 29 06:35:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140514 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465315ljj; Thu, 28 Jun 2018 23:36:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcgc6+Zob511AmhBDaQdeq4QGyNj9G2pgGUyUn8C+iz3lbqA3Ah2o40cl6ABeLRrMbF4Iaz X-Received: by 2002:a17:902:b785:: with SMTP id e5-v6mr5809542pls.339.1530254166955; Thu, 28 Jun 2018 23:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254166; cv=none; d=google.com; s=arc-20160816; b=Yc8Yz73gTNX/jVzsBtkx51y92mRoAsBWgaXMCqMC496Ur1sET9Hql0UrzLGwHgFe3i LE7KIwY+zfDIlmVFgwf+v2LqTg9lFQWw15ONUqEFDxI79k9/Cy5wPSA6JKWmOVPUroAa k8eJqlADWtSnxyWNgQLMeu5fFSN5pUS9wsLoI5PmzdmQsYC7HM7lffsfG7j6QPLuxrUq eE5xN+PKDokgK7jYlD6qAdbhUNDtzvr+x3fs1dqDj4mJz808PCOav3+GEam+I0OVSxx3 oTDfkhbCRXN60VSoVkL7jJHdUXcQs56vHYCOAgmHP4FeOzULhSEEkmAO7xhSdYjcAUIj 4jBA== 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:arc-authentication-results; bh=R4JKGXSbQuMdL/bZk6qaUKU2EjupU1diBXUIDKK0lGo=; b=iaPwMDo8Z2yk8tePUR2uXZrMh5y4zGu3mxtaaraYMDzKVjTgTx9pCJlhFDqi6pi/lu l3VLHYO2Ok2nyzWn9QWZUSILTwSpmf4t8nRO7m8xXGAmbSpdOkOC+B9Rt1H7k67iuZFL 266Qhr2oBS3osl3yeiBFXjPDxtqtaAcBc7vrQs3+ZqNl4Iem/9ZzlxDHMYgfWMgR7G1K s4vA/Y8t2czqAo1CbeviCvCDIFC870xyLJYd8MWGPC54Fnv742mZL7KN6SddV0UVZ3+L zpZJv0c+P9bEcggJQTs2KLwsqgg8mXCpmgif6UOafmJFiudVKBIRbD5CZg7vTLZ9BCL8 E9zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Kx7J1yiL; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.06; Thu, 28 Jun 2018 23:36:06 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Kx7J1yiL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752005AbeF2GgG (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:06 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:43710 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752971AbeF2GgF (ORCPT ); Fri, 29 Jun 2018 02:36:05 -0400 Received: by mail-lf0-f68.google.com with SMTP id m12-v6so5419494lfc.10 for ; Thu, 28 Jun 2018 23:36:05 -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=JzGB9UUqyttyRX4GgShbIk0AUl5RKamLiKlh82paATk=; b=Kx7J1yiLZKtPsPIvs//40dtdt4BOap2cax+R3j4AocYUuZ+V+kpWhVZ2uMuGkFNSvW yiHhUPVEqvLx0rj74hhB1unSw61hd+Yr+FtFrNbL1qlUsAr+poV5QIPPBQpcqFoWTm+W VPGQamZcgCPyx6q81AAU5w1710Hkew7wL2cd4= 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=JzGB9UUqyttyRX4GgShbIk0AUl5RKamLiKlh82paATk=; b=NWNoBsm0FgPizn5erVA68Dbt4ygxHu2UPKlZ+qskHDgVkSnqsPvtVW3x5vqnKJmzk4 OTvomzheSzW8eCQtltFgm1Btra6W4l9VamjK+/xdwKff7QoebwRD2uf/U8OLBwFK8eRc pyvcx37AZ/SqT1zI/fH82cTFoNUZs2P2yGko0LSDAEpUtbL2V3l/1lGy0Z2YIAdDgUNp 9mo5dKR47Rwp+3puitjLXdOhrZk5pZduDQkBvTmXS98IEtwFxSyTpi8pqhMeMsrzA1rJ 323pMJbfSNPdHcCiZC4W3vo3LOy9DGDiLvACx/pB8h8X3m/NO4FIk5znGnaRf3/fc+xS SiJA== X-Gm-Message-State: APt69E0Cd8d5o9XTJ/xSp8vjZAO2lDla5axQtbVePNRtjppow13nHpe0 IpQod+0qyWOhlUxPmaBBzF3UbaDYc9I= X-Received: by 2002:a19:aac1:: with SMTP id t184-v6mr9364029lfe.65.1530254164199; Thu, 28 Jun 2018 23:36:04 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:03 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Bruno Randolf Subject: [PATCH 07/18] gpio: sch311x: Include the right header Date: Fri, 29 Jun 2018 08:35:33 +0200 Message-Id: <20180629063544.3826-7-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Cc: Bruno Randolf Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sch311x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-sch311x.c b/drivers/gpio/gpio-sch311x.c index b96990c262a1..8bc2bf45e5da 100644 --- a/drivers/gpio/gpio-sch311x.c +++ b/drivers/gpio/gpio-sch311x.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include From patchwork Fri Jun 29 06:35:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140515 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465342ljj; Thu, 28 Jun 2018 23:36:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLyjxHb2szDOwcLEZVOdBru7tD8QN239bG7aDADmk1p0V3G+v84CVzZhv7rNhDT6vDrUKgG X-Received: by 2002:a17:902:780e:: with SMTP id p14-v6mr13475619pll.239.1530254169245; Thu, 28 Jun 2018 23:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254169; cv=none; d=google.com; s=arc-20160816; b=EdntG7p5XdZrBcE8PxdScJ+pkl9ee4e1/Lzfq0vCR/jX9rJ02KbY2s/NuDAzCk6pv6 OlN1uzKoJbyudmnnTlShdMNgFgusR+Drd+uc73kv5Kxzij7v/rA4f5l/tu78ciVKL52Z y2r1N8mV9qRLbt1D4iBiJC0+UvtB0hD++BOgv5XFGZFFspTxfc3QIn+dvB4TL4g1Z7SP /B/Kdixw+gBXxJgFAuMDHAHi+t0Ya7rHfNCAo7BcOAyI89TiaXMoE/whTSNmw4U3bZrE sJ+AnadNWl+QZyzCoe4TwfQfOva9I2Gk+LfKfoH++vBra2xTkFSUu5mEIScbTzCX2GVh 6/UA== 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:arc-authentication-results; bh=ab1hYfwSO3vUAtTXvIkgBAz9W/xa3sqxirpkILZAmn4=; b=wTW9K0ViyI8bM3r+/UumQ6/Xk1W7XbvCabVtJVgfC7QK+NyJvFvgXI2heMrSI3o9r1 ApDZx5WWJNzEsd+z5mSZNdRa5BXZEulhWygCjQYLs89GM6VE3ESG21OkN9J1V2WiE87j E1AiE1B3dnYA2tyFZLW7FMtJIV1djwSGHrEHv/WQJKKW1qiPfyivUOBR2tSojr8PuZHv JGyU+yqaE7GvyBZ4pFRz82I3g9QgftKNzG5CdLMk+7/k46ITfhJCtyoYgd+csbF1248X 8NbZvmzv8JOrzo6zCcrwXQFCs1CmMCFcHZP6PLYI5LHXmtD/lWxHm7uhkn/dEVacoA3p yQuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BnAuaZZA; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.09; Thu, 28 Jun 2018 23:36:09 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BnAuaZZA; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753194AbeF2GgI (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:08 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38114 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeF2GgI (ORCPT ); Fri, 29 Jun 2018 02:36:08 -0400 Received: by mail-lj1-f196.google.com with SMTP id v15-v6so6418299ljk.5 for ; Thu, 28 Jun 2018 23:36:07 -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=NHiT73881VoCIe0spKZcaEs+BUKhaLoQE9m3CtckF+U=; b=BnAuaZZAC/tr6q4wGe27OWk2wXwXgZuwGDVDlSm86hjMunL5/QaEDHVF/t7kqTd/qL v0gb/V0fAtczzgsPC5aCHSCVM1x5P6aL+dA6hrWFyLM3XuXazhPHl1Po/stDPw0mqwAJ RIqenpdHe6u9kLesR91aTUi+wDR3WlNU3bHe8= 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=NHiT73881VoCIe0spKZcaEs+BUKhaLoQE9m3CtckF+U=; b=pzK1Yy11WbgAFrwaJFO+vaU2bJqG3OIc5HvpEc84pFc3UcOBhzxHn647sQnO59+ZqL Wh5PWW5wuWlpmScUEb+a8lh8XFCYndTFZQVTSGHL4Sgu5qp8irFYcsZYpHvppQt5VFKC 05ufKtkRLnN7O3vjLMpXWauUanO9h87P5GTU3KdryPHKhYP7uCitVcDaeSYaYHcNe0NN LCgakDPK6V87/7Z71PV/0LE44g+cATOh3eSu/Jy3jw6pYQ/Hzjfuis18J4h6LaDh6zd1 hw+iqtk8f73tzUEA+l7SZ8Fbsl/NAyUMPjA7GTq7HS0BDdbHX6RFhbeGtcRZQb3Fkart mjQA== X-Gm-Message-State: APt69E3BugYQo7PSmjZz51oIpUc14hMIelmiCNJPThpEZ4M3lZKpdSsj g4QPymWCXXYGKAnFk9INRW/tQ6TT3Po= X-Received: by 2002:a2e:1207:: with SMTP id t7-v6mr9502055lje.129.1530254166410; Thu, 28 Jun 2018 23:36:06 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:05 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Bruno Randolf Subject: [PATCH 08/18] gpio: sch311x: Implement .get_direction() Date: Fri, 29 Jun 2018 08:35:34 +0200 Message-Id: <20180629063544.3826-8-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org It's pretty simple to implement the .get_direction() for this chip, so let's just do it. Cc: Bruno Randolf Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sch311x.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-sch311x.c b/drivers/gpio/gpio-sch311x.c index 8bc2bf45e5da..ed64f7fa23b1 100644 --- a/drivers/gpio/gpio-sch311x.c +++ b/drivers/gpio/gpio-sch311x.c @@ -221,6 +221,18 @@ static int sch311x_gpio_direction_out(struct gpio_chip *chip, unsigned offset, return 0; } +static int sch311x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) +{ + struct sch311x_gpio_block *block = gpiochip_get_data(chip); + unsigned char data; + + spin_lock(&block->lock); + data = inb(block->runtime_reg + block->config_regs[offset]); + spin_unlock(&block->lock); + + return !!(data & SCH311X_GPIO_CONF_IN); +} + static int sch311x_gpio_probe(struct platform_device *pdev) { struct sch311x_pdev_data *pdata = dev_get_platdata(&pdev->dev); @@ -253,6 +265,7 @@ static int sch311x_gpio_probe(struct platform_device *pdev) block->chip.free = sch311x_gpio_free; block->chip.direction_input = sch311x_gpio_direction_in; block->chip.direction_output = sch311x_gpio_direction_out; + block->chip.get_direction = sch311x_gpio_get_direction; block->chip.get = sch311x_gpio_get; block->chip.set = sch311x_gpio_set; block->chip.ngpio = 8; From patchwork Fri Jun 29 06:35:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140516 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465371ljj; Thu, 28 Jun 2018 23:36:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLPlgR6iGFeI5JW7t8GKYCGMHPoULZExRc4qLIWek1I2UNsxgU+1rwcGtgKLwI4N+SK4DG+ X-Received: by 2002:a17:902:820a:: with SMTP id x10-v6mr13472169pln.179.1530254171373; Thu, 28 Jun 2018 23:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254171; cv=none; d=google.com; s=arc-20160816; b=ilrYv3eQYEiZFaiPTJcZ8j0ULCdYt91FbAponTytXz2ogJb8JlPLKWuiFpKJt8xqXD L8yUa4+3vWUz4DDOnNwW8e/uXs3cIQQ6uk+IxP3clOBpMRy6t0cb4NBKS87V7NZ32mxM N3+1pyGC0fNhBWDCjgjYlbmxTcJyyqFGTtRmit98guOIpFOABgJMa9iuV4sQv7WLGT8P 7g5s10DFAnyj5eCrStKTI46RnOJ/sGtV8yig5fuPOQseajerX+sPSYc3B41XnVDuUVtT 0WNP/pMLIneqMjCJxAmIeUyETW1Pw0hT+SzW/5bsaiP8btkLrJPq6gWxuEMxKIZZ9za1 LEYA== 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:arc-authentication-results; bh=0G0sPe+ooaThVSLxXfUYH0+nrt89zh5deE23BwfE/2M=; b=b8Lre1w8YLzV289g2GvvXhLKfHXd+5EOl6ff3W/Wr/SX9+H1mwbBuo83T6UUNgG5X4 f48ucvjzsukZRLd1c/YHcxUa4c9fyBFFVDYyICYFIV/VHoso2oIoVGSCfP/7tXLNH6mQ gWE8q3dBDT56M+KyN2Z9Ix8e+Act39Lo8KjiLd6KdvDvb0OztIGFWnqUdJBr/s7I9U/i tbCco2AXphxn9KQDxvLCvbPt1DvCKFOiT5vIlR2LwYF5xH9qgvEpwmf5krORd+OEp31t LdV8BSc/7F32JcVsxGE4/VwYdcnTF2HDqkwdcX7plM+hA3RlE5lUf4zx3kPi2kXAAnet 4+Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="XAkdyaN/"; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.11; Thu, 28 Jun 2018 23:36:11 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="XAkdyaN/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753211AbeF2GgK (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:10 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:36784 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752971AbeF2GgK (ORCPT ); Fri, 29 Jun 2018 02:36:10 -0400 Received: by mail-lj1-f194.google.com with SMTP id o26-v6so6405231ljg.3 for ; Thu, 28 Jun 2018 23:36:09 -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=q85ETMV7uWzWnrx6g87lbPcFrUcB3P+KFmPAfKIywE0=; b=XAkdyaN/3Fgiz74JHpNy4gd+vkbFoeLXfs4dblxaCQIzHaik7h5ci15eWjWKvrkm7R JbGr4Ggvl4B6aXgig0snOSOqLYr1KhA/7gmr6Oti8xK17htpazfI5wr+0/iGxp5yRN9t 2cdQSl/K7hVodMiB4ghidySQSrmhpHd4U83s4= 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=q85ETMV7uWzWnrx6g87lbPcFrUcB3P+KFmPAfKIywE0=; b=AJWxd610gl8CC6bZz5xquNUamZCig+tz8vrDo+XySEHWXPYuQ2GQG6SeyBYCiblTnU d2wBWMFvHBTKI5IYjAKTnkhM+6cKoSVyhPDjZrleY0rqr7zrf7t6lQqWqpUIDsOAlAZI i4dH7odd8qgxYWezSFxV2XzqbMVgGB6x2NfT6W+Ab+QCeFQsMwN5XOzaD1QRodNXP7jf m2i6zERhhkzmBFnAMG6vsUumLv/yqRpES/Ga+idYEryRjIx5upuOykSDDdAANjqe60nn PqlNcHDLNT0+6nJUpgZ7c0AfpHv11H/P8XMGaYz2jsw9Sf3lxIZinoJMoLsRTU4UFlis J3CQ== X-Gm-Message-State: APt69E3nwBuzXYGDjIgPaFwD9nXQYl33Us/SYM99vFUCneVRDwWilzsI WBMOhSPOhejRP7T/3v6fdfSg31O+6sk= X-Received: by 2002:a2e:20e8:: with SMTP id g101-v6mr8958833lji.100.1530254168399; Thu, 28 Jun 2018 23:36:08 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:07 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Bruno Randolf Subject: [PATCH 09/18] gpio: sch311x: Use RMW to change direction Date: Fri, 29 Jun 2018 08:35:35 +0200 Message-Id: <20180629063544.3826-9-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Bit 0 in the config register obviously controls the direction of the GPIO so instead of hammering 0x0/0x1 into that register, use read-modify-write so that we can also alter the other bits in the register. Cc: Bruno Randolf Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sch311x.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-sch311x.c b/drivers/gpio/gpio-sch311x.c index ed64f7fa23b1..faf44178f97b 100644 --- a/drivers/gpio/gpio-sch311x.c +++ b/drivers/gpio/gpio-sch311x.c @@ -23,10 +23,9 @@ #define DRV_NAME "gpio-sch311x" -#define SCH311X_GPIO_CONF_OUT 0x00 -#define SCH311X_GPIO_CONF_IN 0x01 -#define SCH311X_GPIO_CONF_INVERT 0x02 -#define SCH311X_GPIO_CONF_OPEN_DRAIN 0x80 +#define SCH311X_GPIO_CONF_DIR BIT(0) +#define SCH311X_GPIO_CONF_INVERT BIT(1) +#define SCH311X_GPIO_CONF_OPEN_DRAIN BIT(7) #define SIO_CONFIG_KEY_ENTER 0x55 #define SIO_CONFIG_KEY_EXIT 0xaa @@ -196,10 +195,12 @@ static void sch311x_gpio_set(struct gpio_chip *chip, unsigned offset, static int sch311x_gpio_direction_in(struct gpio_chip *chip, unsigned offset) { struct sch311x_gpio_block *block = gpiochip_get_data(chip); + unsigned char data; spin_lock(&block->lock); - outb(SCH311X_GPIO_CONF_IN, block->runtime_reg + - block->config_regs[offset]); + data = inb(block->runtime_reg + block->config_regs[offset]); + data |= SCH311X_GPIO_CONF_DIR; + outb(data, block->runtime_reg + block->config_regs[offset]); spin_unlock(&block->lock); return 0; @@ -209,12 +210,13 @@ static int sch311x_gpio_direction_out(struct gpio_chip *chip, unsigned offset, int value) { struct sch311x_gpio_block *block = gpiochip_get_data(chip); + unsigned char data; spin_lock(&block->lock); - outb(SCH311X_GPIO_CONF_OUT, block->runtime_reg + - block->config_regs[offset]); - + data = inb(block->runtime_reg + block->config_regs[offset]); + data &= ~SCH311X_GPIO_CONF_DIR; + outb(data, block->runtime_reg + block->config_regs[offset]); __sch311x_gpio_set(block, offset, value); spin_unlock(&block->lock); @@ -230,7 +232,7 @@ static int sch311x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) data = inb(block->runtime_reg + block->config_regs[offset]); spin_unlock(&block->lock); - return !!(data & SCH311X_GPIO_CONF_IN); + return !!(data & SCH311X_GPIO_CONF_DIR); } static int sch311x_gpio_probe(struct platform_device *pdev) From patchwork Fri Jun 29 06:35:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140517 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465389ljj; Thu, 28 Jun 2018 23:36:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL4uNiXixeUgPZU/mJYq2nRSMtOHTzo35/513C4jJtAlI3gehH9euW4IK4/zREXNbdkLznh X-Received: by 2002:a17:902:b589:: with SMTP id a9-v6mr13709069pls.140.1530254173336; Thu, 28 Jun 2018 23:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254173; cv=none; d=google.com; s=arc-20160816; b=VljL7sSeALq3D7sWBAg7grCHjmvaN7RlyjggeS2u7RqEyZxsXLNg3AsUUVfWfiU3ew 7sGAVpLCmL+WZFml0kOCdGT3R3NSLxAkN6vMkZMWeedvOL3w3+IaaTQYSJ3agH3zAvSe NjA0/kchTOhCfjGhAt/a4FpZZwkKm2xEOpjdRReomaygqLvcbjoCy5O+9T4eZ28bARit F+atKb8cbzZ1oEPZk8bQhUPK4YYN0nLPKO+QDkIxC2X/GT90DWbzTDIK8nuqfbSPWXb2 8hz2LAy8Der6p/q3V3dOBJAITNs10yAgGbcqZbGMiep/11wn3DsxQlDx0GvaztmfDCcH dihA== 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:arc-authentication-results; bh=cb4OLwN1KocuQzjxjE8vQ2OZIS5med7DkzMWt1EcPcs=; b=mOqzR24WBrSwCyrSivF07XS4SAPRVI31qMvlAiz537HutpO3HptQlUMxqYHjrhIoKZ 4NPoPVLN88aix6seFGSZEUze4KcNg/k1Lztqt3sIJTibk/woAASd2bfW1zXy04vDbJ82 NxqdTdYnLkZJ7ynNhHxzf6wXmNf65oYdeBeYHk5qIeRuDu3j8U4Ie/VReI5OFGR2wTRc tXP5kuxq8nVm0jSmisH1ZfCi+/3FtHU/Einz4hNL/jjYSVHucMQYko3+7gGpcTwfykLF HpuQg/NbzRVOeCccYghpB3ZFDyT2m5103AbdgL3sgWCgj4R2aWYwhsN0/ufOO0r30CXV 0M4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V4931wUA; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.13; Thu, 28 Jun 2018 23:36:13 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V4931wUA; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753210AbeF2GgM (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:12 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40722 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeF2GgM (ORCPT ); Fri, 29 Jun 2018 02:36:12 -0400 Received: by mail-lf0-f67.google.com with SMTP id y200-v6so393057lfd.7 for ; Thu, 28 Jun 2018 23:36:11 -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=aQfoR+RhUKpGn4Ycxl4mVEL313kBEXKoMhXpuY+kkVE=; b=V4931wUAnihGOPTehHrw2/Bm5Lp+y4tyBQvnvthikU6ATl55aDUmZKOYPAY0pk9Tw7 BSkWigBbOdT5r1Awm9j9BbUO7n6A1UH2xT6IiL7ak+1bUGx5J4CdJGuuRvFREC8eQu1d Dn6dN8Zthgr6JpNXGfaoKWC74xLpuMtp0eNxU= 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=aQfoR+RhUKpGn4Ycxl4mVEL313kBEXKoMhXpuY+kkVE=; b=GGb8ncZ+z77gQwTDg4/wSMR2dS6aIf5O0T5P9Npttz8q2vMS/6PonUKez33hV19o8t a3vbyT1aLccCiLUy5cAUUAP/6kujmS588SQ+1Pssg3ty5yJhn2GXuRtfNkogN/IxQsOC rVX8gEJHZCSBnqP6PhwE57xoKVzgu29o5SHtMwS9cTyTgrwqVlal6GaStwtNeVI7rb7T /u87kVF4hKrG/DwCAu2d2+4IpG/nhYSrZWm0Xc/HALosZ7zDrPbVJvUPq3duwiZx1f9F u0KPeSiLqY2cKOGA2gRrZYLofjZ5GF5jq95jzZ+xhw+dgw2RlTHM5TyYCv52o92ZeL5R gvhQ== X-Gm-Message-State: APt69E0eHr7FqMRCue/Ola9aefX1B7kBM8KRu2BN8nv1oVoHizdUAHQA uuz8US1PNMi37sh+cgGEVqV/22U/2fE= X-Received: by 2002:a19:1003:: with SMTP id f3-v6mr9235385lfi.116.1530254170527; Thu, 28 Jun 2018 23:36:10 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:09 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Bruno Randolf Subject: [PATCH 10/18] gpio: sch311x: Implement open drain support Date: Fri, 29 Jun 2018 08:35:36 +0200 Message-Id: <20180629063544.3826-10-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The chip has a bit for controlling open drain, and it is easy to implement the callback to support open drain when needed, so let's implement it. Cc: Bruno Randolf Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sch311x.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-sch311x.c b/drivers/gpio/gpio-sch311x.c index faf44178f97b..1d2af9f97a91 100644 --- a/drivers/gpio/gpio-sch311x.c +++ b/drivers/gpio/gpio-sch311x.c @@ -235,6 +235,34 @@ static int sch311x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) return !!(data & SCH311X_GPIO_CONF_DIR); } +static int sch311x_gpio_set_config(struct gpio_chip *chip, unsigned offset, + unsigned long config) +{ + struct sch311x_gpio_block *block = gpiochip_get_data(chip); + enum pin_config_param param = pinconf_to_config_param(config); + unsigned char data; + + switch (param) { + case PIN_CONFIG_DRIVE_OPEN_DRAIN: + spin_lock(&block->lock); + data = inb(block->runtime_reg + block->config_regs[offset]); + data |= SCH311X_GPIO_CONF_OPEN_DRAIN; + outb(data, block->runtime_reg + block->config_regs[offset]); + spin_unlock(&block->lock); + return 0; + case PIN_CONFIG_DRIVE_PUSH_PULL: + spin_lock(&block->lock); + data = inb(block->runtime_reg + block->config_regs[offset]); + data &= ~SCH311X_GPIO_CONF_OPEN_DRAIN; + outb(data, block->runtime_reg + block->config_regs[offset]); + spin_unlock(&block->lock); + return 0; + default: + break; + } + return -ENOTSUPP; +} + static int sch311x_gpio_probe(struct platform_device *pdev) { struct sch311x_pdev_data *pdata = dev_get_platdata(&pdev->dev); @@ -268,6 +296,7 @@ static int sch311x_gpio_probe(struct platform_device *pdev) block->chip.direction_input = sch311x_gpio_direction_in; block->chip.direction_output = sch311x_gpio_direction_out; block->chip.get_direction = sch311x_gpio_get_direction; + block->chip.set_config = sch311x_gpio_set_config; block->chip.get = sch311x_gpio_get; block->chip.set = sch311x_gpio_set; block->chip.ngpio = 8; From patchwork Fri Jun 29 06:35:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140518 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465416ljj; Thu, 28 Jun 2018 23:36:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKTiWeEp+61IxVKuQ/37UfTKOp93/duzH1SNL2DF1F34JFb577XQJE1Eh+TIn8QDjquXJLs X-Received: by 2002:a63:4d14:: with SMTP id a20-v6mr11711208pgb.46.1530254175537; Thu, 28 Jun 2018 23:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254175; cv=none; d=google.com; s=arc-20160816; b=ujUO9vo+a4/Y4Zxtj2btyNPeAnZCfKdh23h7/iNm1XjTu5catEdLK0yCvUk/Ec6uK5 bmdIqaWt5tbCWzX/3nWEkeYNkMpjJusLtLi2tr/jJB06QqMOXYRXzvFA3jdqhSrBOV5Z 42bb7ohsl32GmvSlCUcOLO8rCC1Nseme47CBcxwNCct6x7fwsuIH7Pwxx63Wj27DkO8M 1liTJMDl9AkSpiHFF3ma5K30AAkbv4u17mbsW5J+f+872A0W0R5AaYAPDvYfYEzHZ3po 4MbvGb/Q8LB9p69YSdVPWDv9X//KPnPLHjm317sK1IXAdLaB7EwPFdYt0Ggc3YnOFLGN hsXA== 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:arc-authentication-results; bh=rQ6fhidNxsbt5tfvQIyNY89V9c4+3GDgJxNiyaSjEzQ=; b=gba7NpyWICXThOBLcP9cmaScZvpuYZBAP82GWVoHXV89JzUSY4LNz/AQJOoxvIPm+M kTy9zgsk1NdP81+YMQtLbmhxihft37ryH0RDV2U6NbnPjWjSwbtdIZ2U6tqOzsnFLP9P HqV3UlLX59O6/lFqGhFIMjAS0v2EEIbCj5b3rotVFW2DjsOZccKoyhVQxo0FX2/XTpt5 AOQAC5/jpD15puIfYhVl6hTUNMSp1apl6EOI5/ofqUwFtV7tn2DVOXHHIxee+B9LPxAf Eqd/QAAyMhEAZ3iYA79gSmKKHED/805IneFpBDeTpfviJbVJhC3adoTx48u7AJHD3RA4 FEww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fmkqOJP6; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.15; Thu, 28 Jun 2018 23:36:15 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fmkqOJP6; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753235AbeF2GgO (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:14 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:44389 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeF2GgO (ORCPT ); Fri, 29 Jun 2018 02:36:14 -0400 Received: by mail-lf0-f67.google.com with SMTP id j26-v6so5977205lfb.11 for ; Thu, 28 Jun 2018 23:36:13 -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=Ow/Eb9FQV+a/OCExCZ8x62pIhWOiVF0L5RzX9Hxu+d4=; b=fmkqOJP6m5JRboqOYef4UeMT7jKra3NW92/5JOrrNfDzorfoAmH+ihPT2NFAxddl6G 9CQS0Je8s3e1Dep2AbzyPNs4fkcMcByXvQ4VvErUHp9DSsB70L0Kzvtdzv9BQTxQYrdy 9tsjAtklzws199X5CgxWMwgMTMKfooPGPXodw= 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=Ow/Eb9FQV+a/OCExCZ8x62pIhWOiVF0L5RzX9Hxu+d4=; b=RKrQqn4gGCLVz6IA+bUwhUt7358VcdRPG0ueKyJQD2ry8QcuMcIjMnzsFm/Xs60XRj bTzb4pOhgZ4/9uPexF7O6espfYyVQNpx9DLyBzbNDG7oM1Ls+3GVOCwKAubC/4TDQz/O o5pYjGapVxJq5R6bsT5CjWw/x9iZGRCJp/WR2KEX4BndSwNgwL0B4yQCWJ5960IUwTJS msg6K0y8SFjXqIFyDqbtBXv1MqGgFUy9E/79/2EK7bcLzqHhzIObwk8eBVVjbAeCr0He /+o4B4z+xUtd3cqgkQqRjAHZ8PltIuFo4xZJ6R31w+kTWfnH4CEa2hnLLLR+c4ifniGF tZWA== X-Gm-Message-State: APt69E0ddI1HBjbR2OtDsDUfbmL2A+VQya09b+eqECYxcE+rMYJBxjYf 32sirsjBJ0pY16Qvw4ofd/ctG0UEFeg= X-Received: by 2002:a19:5d54:: with SMTP id p20-v6mr8558986lfj.143.1530254172769; Thu, 28 Jun 2018 23:36:12 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:11 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Bruno Randolf Subject: [PATCH 11/18] gpio: sch311x: Replace unsigned char with u8 Date: Fri, 29 Jun 2018 08:35:37 +0200 Message-Id: <20180629063544.3826-11-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 purely syntactic change switches unsigned char to u8 in the driver. Cc: Bruno Randolf Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sch311x.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-sch311x.c b/drivers/gpio/gpio-sch311x.c index 1d2af9f97a91..5497f0a88cf0 100644 --- a/drivers/gpio/gpio-sch311x.c +++ b/drivers/gpio/gpio-sch311x.c @@ -162,7 +162,7 @@ static void sch311x_gpio_free(struct gpio_chip *chip, unsigned offset) static int sch311x_gpio_get(struct gpio_chip *chip, unsigned offset) { struct sch311x_gpio_block *block = gpiochip_get_data(chip); - unsigned char data; + u8 data; spin_lock(&block->lock); data = inb(block->runtime_reg + block->data_reg); @@ -174,7 +174,7 @@ static int sch311x_gpio_get(struct gpio_chip *chip, unsigned offset) static void __sch311x_gpio_set(struct sch311x_gpio_block *block, unsigned offset, int value) { - unsigned char data = inb(block->runtime_reg + block->data_reg); + u8 data = inb(block->runtime_reg + block->data_reg); if (value) data |= BIT(offset); else @@ -195,7 +195,7 @@ static void sch311x_gpio_set(struct gpio_chip *chip, unsigned offset, static int sch311x_gpio_direction_in(struct gpio_chip *chip, unsigned offset) { struct sch311x_gpio_block *block = gpiochip_get_data(chip); - unsigned char data; + u8 data; spin_lock(&block->lock); data = inb(block->runtime_reg + block->config_regs[offset]); @@ -210,7 +210,7 @@ static int sch311x_gpio_direction_out(struct gpio_chip *chip, unsigned offset, int value) { struct sch311x_gpio_block *block = gpiochip_get_data(chip); - unsigned char data; + u8 data; spin_lock(&block->lock); @@ -226,7 +226,7 @@ static int sch311x_gpio_direction_out(struct gpio_chip *chip, unsigned offset, static int sch311x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) { struct sch311x_gpio_block *block = gpiochip_get_data(chip); - unsigned char data; + u8 data; spin_lock(&block->lock); data = inb(block->runtime_reg + block->config_regs[offset]); @@ -240,7 +240,7 @@ static int sch311x_gpio_set_config(struct gpio_chip *chip, unsigned offset, { struct sch311x_gpio_block *block = gpiochip_get_data(chip); enum pin_config_param param = pinconf_to_config_param(config); - unsigned char data; + u8 data; switch (param) { case PIN_CONFIG_DRIVE_OPEN_DRAIN: @@ -353,7 +353,7 @@ static int __init sch311x_detect(int sio_config_port, unsigned short *addr) { int err = 0, reg; unsigned short base_addr; - unsigned char dev_id; + u8 dev_id; err = sch311x_sio_enter(sio_config_port); if (err) From patchwork Fri Jun 29 06:35:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140519 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465454ljj; Thu, 28 Jun 2018 23:36:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKdQZJWJGW5VN5gazENb7+HlWJkiTISTm3tkuFFDaxH9jWWVaUyV7HumyjHbBpEIWKXk49B X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr13519445pls.169.1530254177654; Thu, 28 Jun 2018 23:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254177; cv=none; d=google.com; s=arc-20160816; b=vzWTL7p1mr604ZveocXxX7iT8b5KUJV3eH2v3H/i4zLEcyjkxIamZJEkPMa8CghH+M Ge61XfQtClAh7Xbw0YH3598BnORXFAxNfqdWz7tPfHljmKoz1enCLRLCQSPcK9PGdgqp ep6+x/0oVE8rUANdr49nyVGdkDgPg/toYaafB2ZxakbdB8t4dNDvugpTCVaxPuXozpD0 szpDUOR4XB5JNm/Pwh1Xy6hoUQGrDc7Sfp2i+qyz7BVg5Fe1QtsjViISeb+xIE/kKC5E 4R5KUCG5LzQOENOdJig8f6aFG8adFlhfuij9JIZg02H7vbDc0M4oOrVG6REMZTjnpIrV eOWw== 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:arc-authentication-results; bh=4ajYfxRBqpa+7E5Fza8aUn9UMDl7dBe0JnQeWE7ZpTI=; b=BN/y5AgzccFC8kaAQ6AG7UeJ+fE4l5Arkq1R1n/OvlklNbASxfdx29k6Poo4wBp7Rm CiPl/QXQKSCPMXRPSixcYxG2TKaxwVt7hi5CRJv3uPMYEpzYVK5+w+WuGn4nieOtPxbY QbjgsNgCBSRfdxtEpU3VLhobK1goaRSa3HZI0EprKLUXHJwpwvu5Lvxhj9EmXu0TFB1V T7uSQy1UGIFIXMz3npbm0T2EgfAavm5eBzGUwpYMxUSl/Up2uXk0+bGGNtk4ItwJGHaz m11Dz0xzAyIDL9C8N00kem6aUBh1U6VQGRC1ZyvDAUR7KYLCYmN3tqmLFmFkPj40SdHE p8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jffRt2sX; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.17; Thu, 28 Jun 2018 23:36: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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jffRt2sX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753218AbeF2GgR (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:17 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34852 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeF2GgQ (ORCPT ); Fri, 29 Jun 2018 02:36:16 -0400 Received: by mail-lf0-f67.google.com with SMTP id i15-v6so5983729lfc.2 for ; Thu, 28 Jun 2018 23:36: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:in-reply-to:references; bh=o2zKm6x3zz/Y5Eer0S7pT43ycvtIhMjDbrLHqe+w7K4=; b=jffRt2sXtOmpBhNoktoFR1UAgkj6Pa5kKAzWBeDLjn8pz3DgQM2NY71HbVK1YjFCHH TDdH/lvQEYXiXHDDSaf8QMzXQJoK/rIZ5KcxKpySCjGldqpc6aQT0ByRmtqbXRGvzBis sOhClXiPWhdNQ2NZ3RmPk0Mo0mg4JuqG7nJtY= 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=o2zKm6x3zz/Y5Eer0S7pT43ycvtIhMjDbrLHqe+w7K4=; b=CM5QvHdRA2D1jKgrRVtFJHPuBq6yoHOdc7s/79rjFdn7o/6WNrG0ngmLl4+c2D5PyA vPKlR+MI25Q/X15ipTQQ+z6dEjB3Km+CLj76KiTvxYF3XEE5Z//LZa8+pjM721HAdG2/ lbSCobpF8s5OVz1/b+ELvsqn/m5NvLkmBNC1u7OQO9rBJn72Zrc5ottrlmjJeydBAsUN YFsu+TkkNwFKY+sdt/bKMhIgJVoqbNFES4SBmEryHwQT9+TmBgGsu/n+U5A1FanjieFx rxLH92lCj39jgxJIt+vh8RAb+PvLogqVALOGeOLq37cfes+NY+142dbioBi8u1jA9YoT Gu5w== X-Gm-Message-State: APt69E2qNvYnj6LKkbjVB7TFyeBDEiquzDv+zx7zjsaqjZ6sE9TkhmD0 v59O9PhzbIB76AgoBGMsUtZF1C7Ug6U= X-Received: by 2002:a19:a947:: with SMTP id s68-v6mr9227015lfe.70.1530254174882; Thu, 28 Jun 2018 23:36:14 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:13 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 12/18] gpio: spear-spics: Include the right header Date: Fri, 29 Jun 2018 08:35:38 +0200 Message-Id: <20180629063544.3826-12-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-spear-spics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-spear-spics.c b/drivers/gpio/gpio-spear-spics.c index 22267479ba68..ee3039f091f4 100644 --- a/drivers/gpio/gpio-spear-spics.c +++ b/drivers/gpio/gpio-spear-spics.c @@ -10,7 +10,7 @@ */ #include -#include +#include #include #include #include From patchwork Fri Jun 29 06:35:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140520 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465492ljj; Thu, 28 Jun 2018 23:36:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5TBWo9HKB4qNUjwDQwhFIE0AsOY17Ykob52JTa6R7Mn2FOez4dnS/xK/lUSIVC+Hxvp1Y X-Received: by 2002:a63:a401:: with SMTP id c1-v6mr11433055pgf.147.1530254179905; Thu, 28 Jun 2018 23:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254179; cv=none; d=google.com; s=arc-20160816; b=c5YZcwupf8BP/A82VmSxxIwVUsf30wYPKdqwZkYIEcjiPcSvB2pqYyIzWs+4jY4Kyp fR5d7XdkqfEarYA1DoXVS9Gj307UMwzfym9yCdL2F4Fb5BrLI+T9JhomH8ycKwagC3CX xZlW2DmPvki3p5lOwOSL20WSeaX1RqYt/dz1LJ7PYRDzDKrS/2NX3gt5Xfig/3DYtJTW ihx455KatruZcvt2+Y8nhX/JOzGrTUJXAMkYmm4uVu9ihlJvssGuP7OMEq4aJskvUzYc NYBZwEm2Q7ZU6UkEUcE/RwrgMZN3V/rfDz5FYhEdS3MNOBiX0SeJeqSb5DqToxBuw1Xi nf8Q== 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:arc-authentication-results; bh=LH5kwyR6KhGXn/1NUtkFwI8PegIYYVsAXTL3xNtkqNQ=; b=Max6TvFbna/k7vIamOAcYJSXh0pV09pSVLKKlLQ21xe+t9boVt8Gq6YkmETA7GNTPc AvsHVIW1gTvduCrCtWgwBgrCxVQyy760yuqS4ZM1bD8ehBRBXrAqMX9Gb56D9IA1IxUB Lh1Wi+VOoWuO9WQA/C1DymvXPu+7Qa9IfCs5D+iD8VwJ6TwbtT9ANyXx6beMDAFZCAab fO5rwM3+Wg4vtlcthu4jtfSJCjwdLEBeayM2WECXBUyMnqBvWsROFqf8ylQgI8o17WiY KxDaagcAzzIGPDuTo3IzObNR+s7GMFW9Zoi06s/ix3RewHQNDvlFUZIVWDOnXsX0B22o j/Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cl2iu4mO; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.19; Thu, 28 Jun 2018 23:36: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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cl2iu4mO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753224AbeF2GgT (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:19 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39182 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeF2GgS (ORCPT ); Fri, 29 Jun 2018 02:36:18 -0400 Received: by mail-lj1-f194.google.com with SMTP id t7-v6so6403894ljj.6 for ; Thu, 28 Jun 2018 23:36:18 -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=v5tO4G6vuRJ/4q+bpmthJEAbkAhDmz2Wpo1H9rG5VeY=; b=cl2iu4mODmWtdN4EI2TlILMTHOrABNw7wBg8OdARCBZymENIbaUIeW8a/VvRErpYfE DbdfsS3322zT8C9YcHZMvliRVNARqHwbsFZRx7bbNJ/hztHpbl8EAuWFjlM8aapYs56j /qSbkLczlZPeJIc1YUp9J+CEjuJasNnHnw7HE= 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=v5tO4G6vuRJ/4q+bpmthJEAbkAhDmz2Wpo1H9rG5VeY=; b=jFWSIJWIGx1MqakojDcXjzln22MCaeLABGiraU3kjMKPb8vHbiqgZ05GLbb9cOMk2q YFDsMmHdpGzK5fBqODI7j8rwVkMKtfF0QncwhsZ38RjcHr0e3bPPQgs/5j1qKbUpzb6y V2F27+TP3eEm5bcC/aGosBE+jKm6UtQzENOUqYuRRQeOpvTus93U9xUACeLZLyGStBE2 EwMsmPWBKadR+zRz7oOYR2HKUbRorAoWIcSII+UJSlnBX4Qw8Kl9HoU2oL4ZsFV8zMIB jsd3ERNpjO3pK75/z5awdqHbOZHhF4v2T1Muf64ThGQcRuPjNO5tWLrcbIyzBS4RrRP9 4xjQ== X-Gm-Message-State: APt69E05k5gqbA/pFLMPAjYsbr330nygBOZIKezmtrDeZZ++35obfnpa OjK0tJ0Fodb5+RLwJHyDl9JAMyO8ahw= X-Received: by 2002:a2e:4d9d:: with SMTP id c29-v6mr7288566ljd.132.1530254177160; Thu, 28 Jun 2018 23:36:17 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:16 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Alessandro Rubini , Bartosz Golaszewski Subject: [PATCH 13/18] gpio: sta2x11: Include the right header Date: Fri, 29 Jun 2018 08:35:39 +0200 Message-Id: <20180629063544.3826-13-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Cc: Alessandro Rubini Cc: Bartosz Golaszewski Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sta2x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Alessandro Rubini diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c index 407359da08f9..16e7f18f8f42 100644 --- a/drivers/gpio/gpio-sta2x11.c +++ b/drivers/gpio/gpio-sta2x11.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include From patchwork Fri Jun 29 06:35:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140521 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465536ljj; Thu, 28 Jun 2018 23:36:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdQeIM9Y8CPA+KdJrizYuM6p4Hy3k4TQTd6nUC5fXR88EAtlVSjrdaJqsaVWdHyEOL1NtHH X-Received: by 2002:aa7:854e:: with SMTP id y14-v6mr12947291pfn.165.1530254182098; Thu, 28 Jun 2018 23:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254182; cv=none; d=google.com; s=arc-20160816; b=Rqd/H+zuV/eQK8CD21Q0a9aid6uLJYvZ0wAhDnz9hJZ7KFpWJGmw9qoApk+z3gi40f xVM2wDMb3AUStAx8bu9H1nqqSbaOc7AbzXck84NMFHDzIeJRCBj7jPHDOEmWXHeqAZOJ 5vGGdJy53dG+tShxDi/0+Ds5BbK/ucGJ/8mm4YHaJSycCNKO+ZDTKkIXBhz1wtU9E/Uk +hwx/4SsSQP7KMVXxeU9UJ7mbPJpIQNBHIsXIsBX9fk2QatU3JcLtoArWlZ38v9LlCDa VyQbmRxsxn1IMEtZ4SBOcaxq7XHFyve1Nd6wSgi5LNg6sxJjnVSoSUWkRXKXvsw1UvVC osAw== 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:arc-authentication-results; bh=YArXdh+/zLVBLRiNVWCgT4FglHnftligWdezk4tC4kw=; b=IftbVW4+eGDq8kxTJip0wn9c5korLxLe83OPtazily+9jGU//PRerKI0KiOAbeKwGb Ewt8B6SYRFE2dsyxiCHzzXkBZIQpXMxEs1jHfmKQeS6ZQKjGwwAifUYOFb7HAo7Mvuly bFppcZUZUNPoWM1ijAAAbIwjZ+ZJZ3iJDhWZSTPK90QBH51KGEFpuzm9HLGpLD6EWB+V YZvbzmOQoaSG/92mQbiUQnDFxfpCXssXI6r3T6HxgXqrA0TYntqaYzYN0VyHFRp3UPzq 22ZTrFEPuSM62ZUvoWKbb5QX50hsySF5VewmEkmR6I3eh6ybXWtFUcXeHiw3hmkSsQT2 uURA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HnDA63bE; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.21; Thu, 28 Jun 2018 23:36:22 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HnDA63bE; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753253AbeF2GgV (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:21 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41030 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeF2GgU (ORCPT ); Fri, 29 Jun 2018 02:36:20 -0400 Received: by mail-lj1-f196.google.com with SMTP id a17-v6so3294287ljd.8 for ; Thu, 28 Jun 2018 23:36:20 -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=fO5sC5aCDJdUU4ULKaFHhAh//Cu0wPaaprT2QaIQrDE=; b=HnDA63bEKNberAlewaEY84sVsgz8BkN7bmJ9UBO3TXT1r7yE/RlK0rqxhx6HZwz3U+ /yrmB09HvFP+4HP+QvgP/xZC/YRpOBdWTipJWpW/CTAQMHCpPXVo6US+zBlkjG6ocCgD u8VWuSqEyGmFMsjwrcQzHg7Y/a8xKO6jtIKLU= 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=fO5sC5aCDJdUU4ULKaFHhAh//Cu0wPaaprT2QaIQrDE=; b=lZYiKlmX8ErgatwlUT4Vrm7e7ZQoCSJUZpYYYYYAlacYaYiGlYUj0r6FAVi8A1tfb4 5SR+N6QIx/Iqoha7LT/xXFzjAOi+ooiANurl61y50W1T4g5SrTieSnTqTGI4H8WjF3GE 81iSQ6JtADBuPXkY098mC7jp9PFxiib9+oy78HdiyT4jWWKsZEkx3uOUkmhvG0MlcjcD EXR5sFeqY8SatYtX9G9kSLDd/WjX8TUf3JRyaF2jBlTqeam4DevzwxHmN6raCALoiZrq XnTczjpnzMUVjDYs89UdyxWbbcfPnYPdTko4cAmbOxisW+w4IGj7vcx2N7O/2q1DAEzZ fGqg== X-Gm-Message-State: APt69E1AOcKwSKEzArG4K48hewbLsqlzIgK7xYH6PmFznf4SMVfIM4Nw 1sKf+iP0WKeOSQxbqyQKz3ASOUcFGFw= X-Received: by 2002:a2e:7d10:: with SMTP id y16-v6mr3897681ljc.29.1530254179192; Thu, 28 Jun 2018 23:36:19 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:18 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Alessandro Rubini , Bartosz Golaszewski Subject: [PATCH 14/18] gpio: sta2x11: Use BIT() macro Date: Fri, 29 Jun 2018 08:35:40 +0200 Message-Id: <20180629063544.3826-14-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 removes the custom implementation of the BIT() macro and inlines all calls to the helper. Cc: Alessandro Rubini Cc: Bartosz Golaszewski Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sta2x11.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Alessandro Rubini diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c index 16e7f18f8f42..4af90968e838 100644 --- a/drivers/gpio/gpio-sta2x11.c +++ b/drivers/gpio/gpio-sta2x11.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -63,11 +64,6 @@ static inline struct gsta_regs __iomem *__regs(struct gsta_gpio *chip, int nr) return chip->regs[nr / GSTA_GPIO_PER_BLOCK]; } -static inline u32 __bit(int nr) -{ - return 1U << (nr % GSTA_GPIO_PER_BLOCK); -} - /* * gpio methods */ @@ -76,7 +72,7 @@ static void gsta_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) { struct gsta_gpio *chip = gpiochip_get_data(gpio); struct gsta_regs __iomem *regs = __regs(chip, nr); - u32 bit = __bit(nr); + u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); if (val) writel(bit, ®s->dats); @@ -88,7 +84,7 @@ static int gsta_gpio_get(struct gpio_chip *gpio, unsigned nr) { struct gsta_gpio *chip = gpiochip_get_data(gpio); struct gsta_regs __iomem *regs = __regs(chip, nr); - u32 bit = __bit(nr); + u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); return !!(readl(®s->dat) & bit); } @@ -98,7 +94,7 @@ static int gsta_gpio_direction_output(struct gpio_chip *gpio, unsigned nr, { struct gsta_gpio *chip = gpiochip_get_data(gpio); struct gsta_regs __iomem *regs = __regs(chip, nr); - u32 bit = __bit(nr); + u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); writel(bit, ®s->dirs); /* Data register after direction, otherwise pullup/down is selected */ @@ -113,7 +109,7 @@ static int gsta_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) { struct gsta_gpio *chip = gpiochip_get_data(gpio); struct gsta_regs __iomem *regs = __regs(chip, nr); - u32 bit = __bit(nr); + u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); writel(bit, ®s->dirc); return 0; @@ -167,7 +163,7 @@ static void gsta_set_config(struct gsta_gpio *chip, int nr, unsigned cfg) { struct gsta_regs __iomem *regs = __regs(chip, nr); unsigned long flags; - u32 bit = __bit(nr); + u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); u32 val; int err = 0; @@ -235,7 +231,7 @@ static void gsta_irq_disable(struct irq_data *data) struct gsta_gpio *chip = gc->private; int nr = data->irq - chip->irq_base; struct gsta_regs __iomem *regs = __regs(chip, nr); - u32 bit = __bit(nr); + u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); u32 val; unsigned long flags; @@ -258,7 +254,7 @@ static void gsta_irq_enable(struct irq_data *data) struct gsta_gpio *chip = gc->private; int nr = data->irq - chip->irq_base; struct gsta_regs __iomem *regs = __regs(chip, nr); - u32 bit = __bit(nr); + u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); u32 val; int type; unsigned long flags; From patchwork Fri Jun 29 06:35:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140522 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465571ljj; Thu, 28 Jun 2018 23:36:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI69RPSHYHSlmXRw7uRL1iIIzjyBe9nlgqhBnEimgWZZujnl718DByxl+Jr7uCh9MWNUnsR X-Received: by 2002:a17:902:6b09:: with SMTP id o9-v6mr13372906plk.256.1530254184570; Thu, 28 Jun 2018 23:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254184; cv=none; d=google.com; s=arc-20160816; b=nCPhrzaL3SrjgUgzLTPgq/Mxv5Qjm328kLfIGuZUl88czGs5Ygbi/Q7t2CksoH6hvD LyCv5+2xI3G5aayurLw9z20yjAXiAXrEDWy/FpyIBwCojN5xEeCzTrfVyOzEK7ZWFuWe fJ5JrNlIed1SY34K9KYacfeNbWGISdOwXncnun3rNwshGiX7EKFCw37DiTHZe6Vihubh S+Ef0Vn6mj4R8NRPS4J1yvNFwT5bkEoDjUR+gRHpn+9vgTW9I3ZSxYQ4Psf1Tc3aSTIM Cz1ABH/lJKg7ze/PH7Eu1uWBj3Mg9NLBshbqTMixSvGEdW7+3NxR4fay1xl3Lecy0fHp q1vw== 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:arc-authentication-results; bh=7KrP/mQlvKEoLDGQ0S6MM1jo/QGE108Qzq2fQ6Lx5fw=; b=Kj/yQCB2LXYjxXoK4S7PxE4rewe/knyV+TETzaJqJ4fzcSog9Xh5vpHfh9k74AIaMd 71rnDwFiVKXe7Ezt1BuVGDva10qh9YHozG+3WcqzOfu82dl5sOQzijnAJ7dzFjDwZzpV IMGInicaVLFlXKifWbkTE4mHKJm9C/mDrNkOL2mtIilEOk4BzOU/U1YnEG5sv/aBsdjp /arMb7iRo1efYChyrh1woTDxbxlOX3iRmup6WSH8URObyZ5PnLxmx8Nb2+M1HogveCs2 OaxOhwKLxgVgxil9irzLMWIX0ulYMu4MyGrimrnu5clxzJUiDTKu4dXd4QKqM0u2Gy37 LLYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GP7gLTRc; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.24; Thu, 28 Jun 2018 23:36:24 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GP7gLTRc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753261AbeF2GgX (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:23 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:33911 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeF2GgX (ORCPT ); Fri, 29 Jun 2018 02:36:23 -0400 Received: by mail-lj1-f194.google.com with SMTP id l12-v6so6426432lja.1 for ; Thu, 28 Jun 2018 23:36:22 -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=a9ANTWX9cQYK2wSWMSEPRSJVL9id7DTDSn22l/2dqvQ=; b=GP7gLTRctfb6cKiO+SyJM8JfpjrvCE3u77mZDb5BKh0CtyFW98qN6RlVj8TUSekglS Us0YoHr18eotiov+G4k/kr+sNnpvqCAx8LtKMf75ULmA20jVX3M2NAYEwshFl/Bgg6tz ddQjNsAoWNU+ZWNrxJ2O2mQ0YId+ReVR76qBQ= 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=a9ANTWX9cQYK2wSWMSEPRSJVL9id7DTDSn22l/2dqvQ=; b=d3y5ZeWcPuPoqh+teICcFGwfQlu73mvqxyPuOHBnEmshP+a397zaTFG61RWQhU3X6T jOSL7GQiQ1HLaIWN/VppNqnM2HwFrSwdCX+a0jbBb282udCvgknAHvGYzxMWfcuDuvCU kRdFlNl28LKVEdwKFS87U6wjxn37X2/xAAmQaEwI5+M6bPY0x5onlMyhI6yW6CDbea/X w9t5Qy7XwYYita7iQrjKtbzj10wzx/F0FwYU9WBdIR3g/dELJMoOc+4J2ROYxtEDSOxk qMIlc5bPCELbYUyBF2j7I4nKZUhEVrwyishXVIKBBoYTJZzi+xeEwJkRvVZfHlpKZs9R 2CJg== X-Gm-Message-State: APt69E1feE6zdmj4JLnIQKP+6jk4urdgyaYf5ezlsNLIVsOTlGJ6t8hl ysTIPJX/dcrvCH6sO9z/Jd82v5g2l6A= X-Received: by 2002:a2e:141e:: with SMTP id u30-v6mr9492398ljd.134.1530254181470; Thu, 28 Jun 2018 23:36:21 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:20 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Alessandro Rubini , Bartosz Golaszewski Subject: [PATCH 15/18] gpio: sta2x11: Inline regs macro Date: Fri, 29 Jun 2018 08:35:41 +0200 Message-Id: <20180629063544.3826-15-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org I don't like the __namespace and this is simple enough to just inline at all sites. Cc: Alessandro Rubini Cc: Bartosz Golaszewski Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sta2x11.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Alessandro Rubini diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c index 4af90968e838..2283c869ad5d 100644 --- a/drivers/gpio/gpio-sta2x11.c +++ b/drivers/gpio/gpio-sta2x11.c @@ -59,11 +59,6 @@ struct gsta_gpio { unsigned irq_type[GSTA_NR_GPIO]; }; -static inline struct gsta_regs __iomem *__regs(struct gsta_gpio *chip, int nr) -{ - return chip->regs[nr / GSTA_GPIO_PER_BLOCK]; -} - /* * gpio methods */ @@ -71,7 +66,7 @@ static inline struct gsta_regs __iomem *__regs(struct gsta_gpio *chip, int nr) static void gsta_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) { struct gsta_gpio *chip = gpiochip_get_data(gpio); - struct gsta_regs __iomem *regs = __regs(chip, nr); + struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK]; u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); if (val) @@ -83,7 +78,7 @@ static void gsta_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) static int gsta_gpio_get(struct gpio_chip *gpio, unsigned nr) { struct gsta_gpio *chip = gpiochip_get_data(gpio); - struct gsta_regs __iomem *regs = __regs(chip, nr); + struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK]; u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); return !!(readl(®s->dat) & bit); @@ -93,7 +88,7 @@ static int gsta_gpio_direction_output(struct gpio_chip *gpio, unsigned nr, int val) { struct gsta_gpio *chip = gpiochip_get_data(gpio); - struct gsta_regs __iomem *regs = __regs(chip, nr); + struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK]; u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); writel(bit, ®s->dirs); @@ -108,7 +103,7 @@ static int gsta_gpio_direction_output(struct gpio_chip *gpio, unsigned nr, static int gsta_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) { struct gsta_gpio *chip = gpiochip_get_data(gpio); - struct gsta_regs __iomem *regs = __regs(chip, nr); + struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK]; u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); writel(bit, ®s->dirc); @@ -161,7 +156,7 @@ static void gsta_gpio_setup(struct gsta_gpio *chip) /* called from probe */ */ static void gsta_set_config(struct gsta_gpio *chip, int nr, unsigned cfg) { - struct gsta_regs __iomem *regs = __regs(chip, nr); + struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK]; unsigned long flags; u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); u32 val; @@ -230,7 +225,7 @@ static void gsta_irq_disable(struct irq_data *data) struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); struct gsta_gpio *chip = gc->private; int nr = data->irq - chip->irq_base; - struct gsta_regs __iomem *regs = __regs(chip, nr); + struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK]; u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); u32 val; unsigned long flags; @@ -253,7 +248,7 @@ static void gsta_irq_enable(struct irq_data *data) struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); struct gsta_gpio *chip = gc->private; int nr = data->irq - chip->irq_base; - struct gsta_regs __iomem *regs = __regs(chip, nr); + struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK]; u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); u32 val; int type; From patchwork Fri Jun 29 06:35:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140523 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465601ljj; Thu, 28 Jun 2018 23:36:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcMFzVtlaao/M/rsISeZ0FXZeknCz+F8UMg6LTl7H9Lx8Vv9mE72OzxPBZ9op9W1sEUCKyR X-Received: by 2002:a62:90d4:: with SMTP id q81-v6mr4272124pfk.37.1530254186576; Thu, 28 Jun 2018 23:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254186; cv=none; d=google.com; s=arc-20160816; b=RP8S02CkNZqzPvLSxVWlhDSAVgyUFrN/4+2KqdbX5MHjcgBjkIBtHgfaxLHLnrQbKw gzQwvDQDdWKhil5Efvp20eAI5OVOOQwr5hRQAn0mmkI/gxG9uu1TTXtan2Ax9fI1zJ3X Q4h7bML7wharyqtFX+exTESvSBnmkjoj8wr747YimhqsPpsmNKE/ORb00F0odI7cvEVl 5YHiZIpsmv16CPoP0dL7Z0gZ44/bisX7NQxfsAmRuDcf0pkzN9cNyHoAB+xZAvdUsdee dKU2zUvKcLyn/2zWhZ+a4gtk7p1ItkgGj9u/0ztmVILe615eL7NFaSfapf9OOLxv2uvA 6/AQ== 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:arc-authentication-results; bh=pGZUDQzmqMMXoQHPuGJObLWb1A8uuT4/no9VRIK4+fI=; b=0wf+abiSvL4VlXjTuvb9QxPQlK14kswVliNSopxUphLy2cFCI0Kc0Lqi50YkiRauf6 hys/2uJpHWcKF3ZbuQnLJTtMP/5e18NVL2p88vlQTBc3S7M6ADdFj6p14ezIA1+sXZOA OpQRJrTdB0JGQLq3lqnsnBR++oRncpBipo5tUV9NefuyLAv19G8ns+qoJyzXhAIZzERi IM3HWGVPk2rJOiUFJeSbN8YLo/ivU+D4DB7B1MDeZiegC0EZ20GZynzEIHwn6J0xpNEq 0Y9UZp6xVU28g2Ik/qMJ23ytPFDtpwsn6tEcF8FF2JXvl79HyN059SmOhXeyptU0rmRv 2Z2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KSdMbEpA; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.26; Thu, 28 Jun 2018 23:36:26 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KSdMbEpA; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753294AbeF2GgZ (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:25 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40727 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbeF2GgZ (ORCPT ); Fri, 29 Jun 2018 02:36:25 -0400 Received: by mail-lj1-f195.google.com with SMTP id a6-v6so6410522ljj.7 for ; Thu, 28 Jun 2018 23:36:24 -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=hIHENYgelD5lyXMwlx/9PsL2oAQXnlI/tG5SQDVQW5o=; b=KSdMbEpAFQ7k8phE3VN7CVC08s1Oz6I9I1h6qhAvUwHCYF8yge2Gk4rsj2wKxKhulG nUwMarZNjXMEoXTKXjipcJO24wDnxALKLUQNTPo1WWhoS1d91vQSluYMEoSGIqqjx9cD yQq63WsSqgiSMM7q8pjOAiFq25RYvqBaAgwCc= 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=hIHENYgelD5lyXMwlx/9PsL2oAQXnlI/tG5SQDVQW5o=; b=VpxW/QoG3NLe2fFgqtJuZt/xPLaHEFqR90LsXpRrhX+3WdqyklR0QQlotWiiKIcXna 5MjmXnCwbDSOpjBb2lmtEMkjFYciY95B/vxUu3H9Tlp5pPZQSfeKfrn5u/xMdhAozEjU n1H0p42O6Zkq/R1JsztJxALDgflFbPH/tTrRQOV622NN2MlFp84JyybOchtoY7B8weOD ZxD/UVpJ/uVtLF5BWOwxqDw7RMGmTlC/Yjd+Y3pFTZbBEEHLRKZTPF8Juui8dBF2yW1N SFccMuNShgzQTOCoHG2CWZs7gCz3t9tPtiE3k6lsgCN/UHOvlxdBnJTBFrA36iwA/1Uv Tc9A== X-Gm-Message-State: APt69E0ABV31AUiVPNaFmDoQMIO18zv7sj2eKBSQ548Zp8O1N2oTD9MI G2r35YC8qVwkUvAle1u5dxluRfAxrGQ= X-Received: by 2002:a2e:9c82:: with SMTP id x2-v6mr2346335lji.131.1530254183783; Thu, 28 Jun 2018 23:36:23 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:22 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 16/18] gpio: stmpe: Include the right header Date: Fri, 29 Jun 2018 08:35:42 +0200 Message-Id: <20180629063544.3826-16-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-stmpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c index 8d6a5a7e612d..65a2315f1673 100644 --- a/drivers/gpio/gpio-stmpe.c +++ b/drivers/gpio/gpio-stmpe.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include From patchwork Fri Jun 29 06:35:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140524 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465626ljj; Thu, 28 Jun 2018 23:36:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIQa/P87K2IE05qSUztRTFYQs6TfGth5gXnavt/zVH/pUnY1o4UHAKD+kcWODQOqbAKQena X-Received: by 2002:a63:62c4:: with SMTP id w187-v6mr11442605pgb.55.1530254188509; Thu, 28 Jun 2018 23:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254188; cv=none; d=google.com; s=arc-20160816; b=Bm4IE4hVjoYPNaYck6w1ufCRZR67AYQIRo6TeN4Ssf6HAQPyJF011JiH5DsnNR76M1 SesK5WOUooDNThEVm6updcRSHhgDg1d3ptc5kWBME8dqyiJ9DCaXRTpIDP7NlJt9iRlc oCzRKhY1S8sDorK+TmGXnMpob2GiA7na8TTj/cxghZ+FcAIT/xzbr16FYlYDEno2i4OQ kf85wcmzmf3PSVuwJGJDHZXTsjopyHjlqvRHVwBO6C3PZwHsNTvVBuWVj69PIKXpt4yU GN0kgoYXLThHjugulWFlYZR3HczShoyG7G3BmBYY8mM0iWoAufgklGjAVvB5PV8ecN8G qTFw== 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:arc-authentication-results; bh=R5/+D/e5ebaKejQFFhgVVe1feA8omquG3Yry7QsRrtA=; b=pgGPC3+ttodYquQ+J8U6qZUyxI+2BVGJT/Fwq7YEa81DLM2Qz0lGIeXZSK0zpGybB5 VeTLFQZkkG3+MsnSpv+9wvZNwywGcPOSd7786e9k0d1LMyY6vh2TKaLmOOw7yXT78oUM jkg5sHRK08unjAnkqEZAByggapn2rDXfX2TswOeXiVj4aMCDLHIaFxY4uvr/QBK9nlup ksQ9e96MTdIENAyZuaB3JFsngpsuLqzqGSjoUexqiMbzOiy5V365BfTQ5x0kbN1rFD5q v3NPIY1H5dSD4JxPu6515dbZNO9SC8FGFE75Dghawk2cga/yxISNzvevsTH+JQSXnV4M PP0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UEcYeX8j; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.28; Thu, 28 Jun 2018 23:36:28 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UEcYeX8j; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752967AbeF2Gg1 (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:27 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43957 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753295AbeF2Gg1 (ORCPT ); Fri, 29 Jun 2018 02:36:27 -0400 Received: by mail-lj1-f196.google.com with SMTP id h2-v6so3166506ljb.10 for ; Thu, 28 Jun 2018 23:36:26 -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=Je3XYN3MYxcgmM83pSUG/75H+71briU72Xp0dqfJOXc=; b=UEcYeX8j4pZEevYpz2BTsxy3MxA6ZBAdG6fNsBgqKXhLuwsFTs9mYuroOtPlv72a9X ztpsYzLrK8hWeV506lAFXN4iHbKpNZ0uQGgiof5xK7syx7rVU6xBQ6vpo4l/j3vUtF0j hNuXb2k1sKc6sC5e2jwsMF4qA17+z2YVGy0dc= 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=Je3XYN3MYxcgmM83pSUG/75H+71briU72Xp0dqfJOXc=; b=WPqPQzHoTmST/WVuvO9u+Tz8CTWHNJ98fgGPLjXKftXqliw28ysgpffpyTWED3Xk6n sIWnzF/MG1Czlu6C1Icue4SMSZLsn0UT0xwbcGy3fhzm5vtTR7Uhz/BO2UDhwG3KLfCE lra0a0JLUD7i3c4jlQQepV0RWRBfK0CrfbETVBQu6Js/PKHQMJUwG0mlw+F7UoUso0PA 6rv0sOdrPjRXrKGzaLUIYCjftTIwVuoMA025A6XCJWOxR/qi4vZ6f47WwD9sjSa2M0/t suAEF33Ahd0f5zuzQSII1EJafV7fvkdIeziIz+9lx/DngAtpqY9vLIm+eZvvAKXtNaos Zolg== X-Gm-Message-State: APt69E3ge0nF5e2veVnQUrCwbU/38WzwAiZczQaB0u63CVctuoZts1Cs TG1rI6318OSBnO5NS7zOcQvvPGMLxj4= X-Received: by 2002:a2e:1bcc:: with SMTP id c73-v6mr1312784ljf.0.1530254185867; Thu, 28 Jun 2018 23:36:25 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:24 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 17/18] gpio: stp-xway: Include the right header Date: Fri, 29 Jun 2018 08:35:43 +0200 Message-Id: <20180629063544.3826-17-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-stp-xway.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-stp-xway.c b/drivers/gpio/gpio-stp-xway.c index c07385b71403..3e597109e96b 100644 --- a/drivers/gpio/gpio-stp-xway.c +++ b/drivers/gpio/gpio-stp-xway.c @@ -13,9 +13,8 @@ #include #include #include -#include +#include #include -#include #include #include From patchwork Fri Jun 29 06:35:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 140525 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp465646ljj; Thu, 28 Jun 2018 23:36:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexU+7YKeQdElDhJShvMkTKzmQdFZSu3RTP1FtD/ilc+SMaMbeZ1i4yqYYteafDgUhae8Q9 X-Received: by 2002:a62:642:: with SMTP id 63-v6mr13335070pfg.222.1530254190752; Thu, 28 Jun 2018 23:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530254190; cv=none; d=google.com; s=arc-20160816; b=Cfqp9ID/eqi8e4BY9u6pxTR5TajLrFPCDaPsEn9+A1kXqy/GiTgJAmXCRvy1twoILQ NCShy54zlVI4Ge8gZ9bMBxU1rGmAZ0wDBbVJuhdEdjCz+JjpqGXTf3qk6ZnPO4TGztub 3IqH9jShGp0HRb8ss2++YatrTwd/r+jUf8dwEHc6WzxI8zVIeQ0q/99UI6EGafObFPd5 ghBwkb0oCdJmysYskH+aUtfP8tnUWJAintf3/jq9p1Inym7cKRKfn7zcYV179lwdSkzC S3SOMS9E3LwBHekixUnx79XiUphcxv8UKgcKiUp6MbivhKNJcJAEOTUBVaJ2yARyYOBp 4A3A== 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:arc-authentication-results; bh=fvyBooWBXF7zKHWSVyfj/ye7fRYfoY903Hix+YBr3JM=; b=Wtdq8h+1r0kkJlTHPaeCUj/ofvN5jQaRg9SdaayHtp/42lXG73/XJIX3UQ1REL6xfU aMZkdBTyqwwDAimS38WKSPFaw6tKq5iotK2/yRiYjJdInx6kscBixalzrYy8ezzz22B7 fuuRHVzE1kgMUe6zN7GZnwCAweWRyTUGT9dK9X7ikAx3P9W+ze1U2Diahq5ApKhmZZkV EF0DYkSBPBKqD/aDeG0R2n4G7/lSQCwx7NoYeXeifAQr1lF++t8iHM55KogCdlRoOdEZ n7QsnQcAjx6OzhwnDSvZjCjifNhm7v2GuMdH5gD3WGg7ixkYekTHsXWUNUIuS7VGrsX0 tHtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="SvAM/BGf"; 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=fail (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 u2-v6si398613pge.585.2018.06.28.23.36.30; Thu, 28 Jun 2018 23:36:30 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="SvAM/BGf"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753295AbeF2Gga (ORCPT + 5 others); Fri, 29 Jun 2018 02:36:30 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43959 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753243AbeF2Gg3 (ORCPT ); Fri, 29 Jun 2018 02:36:29 -0400 Received: by mail-lj1-f195.google.com with SMTP id h2-v6so3166560ljb.10 for ; Thu, 28 Jun 2018 23:36:28 -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=IMpracw7ePQJzA5fcTeFBaHfb5lOo/CTGRQXnOOitZE=; b=SvAM/BGfqnVmmnbpbnUqJXmyAK0j2zCkkUH0AEPKonXKOxkJPemHHYvnNi4w7/ZMyc jZIZCMR0y2jIvdyhlHadO16JwucSM4rBoq90vcUoaq/Eo1WXUzlJaJJg0wNCoisszKfO KWECb1bRLCDb/cy1y0mFaEKRZg09YhRvg+leA= 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=IMpracw7ePQJzA5fcTeFBaHfb5lOo/CTGRQXnOOitZE=; b=ES4774tGIfIP7HPE/ixDcAzBpKVUJEhFUupZcZ2nnSvGy7IYapS4oifOeHtQ7CmF1M Dww6PUEEGUyRwei8gADu2IcL/sl8DkZgueDpFXM1QJVZH1vG5iDLneaP4A7unslXIFWT r3QBW7If+CMsWXxN1MqNjVtP0wGyUvbYTTvtzA2gEt4L7OawFUzpzPBgYMTMPq2k9R1I HqY6ZdDvdGQzfad7lnM8Fg0+1wi+GGabGmnrT/sVYQz7krlpXEqLGlmk01CF9ySvs7Ma bckGwoZU97wnnPyneN/TIXCXNYaKRzYnysJj6I7YGTJpMlE91v7oYJ5Na6jHOZkC5jDN N8nA== X-Gm-Message-State: APt69E1mHtOqTaGxHpkxRTd7PtXeSx0ILjLx1h+gYtc1W5HGdYFx6kN/ rVgWhGYdqGa9FmaT1cvxdMkykvdhM/4= X-Received: by 2002:a2e:88d1:: with SMTP id a17-v6mr8951499ljk.54.1530254188051; Thu, 28 Jun 2018 23:36:28 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v2-v6sm1382162ljj.71.2018.06.28.23.36.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 23:36:26 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 18/18] gpio: syscon: Include the right header Date: Fri, 29 Jun 2018 08:35:44 +0200 Message-Id: <20180629063544.3826-18-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180629063544.3826-1-linus.walleij@linaro.org> References: <20180629063544.3826-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 is a GPIO driver, include only . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-syscon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-syscon.c b/drivers/gpio/gpio-syscon.c index 8b0a69c5ba88..d40cabd15e9e 100644 --- a/drivers/gpio/gpio-syscon.c +++ b/drivers/gpio/gpio-syscon.c @@ -10,7 +10,7 @@ */ #include -#include +#include #include #include #include