From patchwork Mon Mar 19 00:50: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: 131974 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139540ljb; Sun, 18 Mar 2018 17:51:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELsu78TPoTHaOaitxwzHs4dNOA3+Xhvas10YmgsKLRjSzG58ynmVqYzPQL+eJsiR/MxPeYI5 X-Received: by 10.99.186.14 with SMTP id k14mr7789504pgf.43.1521420667518; Sun, 18 Mar 2018 17:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420667; cv=none; d=google.com; s=arc-20160816; b=VF9QTtnjdEDMLwfmK1iTdTdvqKJuZbpH1sR1N65NE0zZndejua9OHMVitZ+JeiXTcu sxdyimu3W2rBefn4Ec/a9enuRTGepLwDYq67N2z/cHU5tszuW3Lz90w08HUoU7lXq9bI Dc0sbZyF+0HMkovTr4qU2pQZLPtnriWifAHNJM8xA8RC4jx8YVUBfn+/0VeV5gGyazRk 2VIzPMUm3FYn+eM21yBoT9C+xksDWgRJ7OL56cksO/o2quvIYKX4dogtDF7muoyNcS2a QuJfPwyXEOJfLOlIFP+0X8aIwWAr1HJ4bQsCiPJXuW13rdg7+2ljuJsR/PuXxHtMo3QO KIIg== 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=/d7LPB3CtGadzHgmgDfTO4Wli927CVGw0q03F/rRU4Y=; b=mLhgtRE401BjGkW/rsqILcPNqXu3aOLbgUlXjSWnYPnagW6uw93LhcsY8dSmHGLRll yqTEjhiSQHrygMZKLnYtFpEjGmqTlVm31vQFttYiMaK/559tppax7SvWxesLeBZrMMkS KhlivMV+OPwJ1Zfrf/MbRix1/xNr6YkGqs1AmKZcLdAeXSJbqxoCA4xkDHYef+l93pzE PI6TxdD7IsZAVh4phOtItCS1PREJlw6uDM8lc/KXkMoyFUXDBIX3KifpGdK3tFkqDx1o 3THkk4y4aJ5lG7Rc+kfOQGievkzNI4AQX634sbgrabzI3G4Ptq89toxnd1vPUZiXd2Vj IGOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EG9M66Gu; 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 l12-v6si11286527plc.696.2018.03.18.17.51.07; Sun, 18 Mar 2018 17:51:07 -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=EG9M66Gu; 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 S1754646AbeCSAvF (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:05 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:38031 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754531AbeCSAvF (ORCPT ); Sun, 18 Mar 2018 20:51:05 -0400 Received: by mail-pl0-f67.google.com with SMTP id m22-v6so9247276pls.5 for ; Sun, 18 Mar 2018 17:51: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; bh=BqakYE3j33eXv/sx6C2inBzVzfk0T9O15R2Vongdod4=; b=EG9M66Gumh/3krmtAUYVuHteFmG5JbyViWYG5S3zwXcmLWV+W6OwKtzQtivWpCRsfv DKSC0/fRh20YxyxO7ge5onpogGKhcVPDCfllmtRFstf9hPjxKzpQVPgZx6Pvnwya0Imt gJ3qFCvLN06fb0Yifs3vpgR4VMeDC3uNBK+kg= 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=BqakYE3j33eXv/sx6C2inBzVzfk0T9O15R2Vongdod4=; b=ddK7vQjBQS/du91zxrtGG1g0jgec3cIZGezWhc0i+v9dRpD1w/PdOTwN5R5pExgDcK 4q4R2xCiIGd72c8eitO9fXqb8qkjLXTaUz5HCjaMkN6Msi9N9mWqrhPkMCg+okmXNzUr ooXaH2ODXnA7WD/81WX6ICjwNUzO4JnNCSWuWGhwB6ywuWd3UwL+f4Bajk1vdBCFMyhq X7lV46bzFzxxk77kmDyjq4ZvEuJPfEqAXFRYg0hqlYRhfAswUWIMNULLQOJ14Za4dOjQ 93dU4NAfIN6hE8iLaMOT0eC25SfRYBOeAw8oNCyoU16oGXXIqnGkd8k7LJQEUp4wnDT5 yArg== X-Gm-Message-State: AElRT7Eo3YncAIrcWsulg5QFcD+MGxZhwEKkxYZXhtZ9EjWJQBP1YYUW eg4qlmV1G1erHGWr90rgm8BGL8nL6acU4g== X-Received: by 2002:a17:902:42e:: with SMTP id 43-v6mr10323304ple.186.1521420664472; Sun, 18 Mar 2018 17:51:04 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:03 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 01/13] gpio: dln2: Include proper header Date: Mon, 19 Mar 2018 01:50:44 +0100 Message-Id: <20180319005056.7380-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This driver has no business including , it is a driver so include . GPIOF_DIR_IN/GPIOF_DIR_OUT are for consumers and should not be used in drivers to use just 1/0 instead. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-dln2.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.14.3 -- 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-dln2.c b/drivers/gpio/gpio-dln2.c index 1dada68b9a27..c4e7953c093e 100644 --- a/drivers/gpio/gpio-dln2.c +++ b/drivers/gpio/gpio-dln2.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -204,9 +203,9 @@ static int dln2_gpio_get_direction(struct gpio_chip *chip, unsigned offset) struct dln2_gpio *dln2 = gpiochip_get_data(chip); if (test_bit(offset, dln2->output_enabled)) - return GPIOF_DIR_OUT; + return 0; - return GPIOF_DIR_IN; + return 1; } static int dln2_gpio_get(struct gpio_chip *chip, unsigned int offset) @@ -218,7 +217,7 @@ static int dln2_gpio_get(struct gpio_chip *chip, unsigned int offset) if (dir < 0) return dir; - if (dir == GPIOF_DIR_IN) + if (dir == 1) return dln2_gpio_pin_get_in_val(dln2, offset); return dln2_gpio_pin_get_out_val(dln2, offset); From patchwork Mon Mar 19 00:50:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131975 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139556ljb; Sun, 18 Mar 2018 17:51:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELt56pKFIgupGcLVXOvP+OP0RZ0XU34PED9jF3sijxEBxjs/LWkznXjrVQw+QtxZO1PD6VCI X-Received: by 10.101.76.13 with SMTP id u13mr7475402pgq.287.1521420669341; Sun, 18 Mar 2018 17:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420669; cv=none; d=google.com; s=arc-20160816; b=KmE96ZDGdbRZP/XyQ246BfIvo8ieCS/2nvEQei00opuwSGjyrWLGvmKbFbND4k5VsU l8pll9DCVAC/94edbFbZuaAnoEWG+tKQB+NvRr1B7eYMmuaxA6Cm0Yjxt3W68TZMXwyt /ojJ68iIuuDW+ZO3TnGlj5heoQfxrRRxqPwFWcynLlNyytbirPsC16zUEXay5w2NSpyJ tZ0gDCysB0W62KT+yx4q3Igmy5uX+Dxo4qLjYjiTSQImaJMf8h+YRvmqq6u9p9vGmDq1 pvdCqqs5HtWnbotAKt8RRM35AAR+Et7I/H8F2oK2LBz9M62uNcY4gHSTrTY2pIQG0CpQ ZImg== 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=JRcf5XgXnr5S5qmknUcGiD+O+y7GedOYmn/LV828ufk=; b=rukV7oGjqUhcO6LHA/YDKNXPTa/DLgcKR7iVqXe1tRosvTjtu2A4EvQnpJviDPcblB ESy/NeRzGod7yaO98Rbm0HHHPN8C1vO8VbrsTSQAnTc/kT0tkAxMPKjy5STikShzaOe8 9DJNBcqbcierpSptnbkWVQZE+FzW6/wFYSqiE76ujh2U9+uuI4dDk9FAcNi50V0vgkHT RPWyUbuP02tQcfYyYSKcwY5z7o+HdSaoez5JTyqrxEUQzKFkxBaPhhcLyYQgHcDGYUlx OUU5SmoCOkp1zGnSEfd3fntkeS/VzteFEQJxuu1ddV3DQSoOwe+pf9rmOYQA8/LLqWlh 5XCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fFnu4eHF; 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 z9si4038677pgo.720.2018.03.18.17.51.09; Sun, 18 Mar 2018 17:51: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=fFnu4eHF; 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 S1754651AbeCSAvI (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:08 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33840 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754531AbeCSAvH (ORCPT ); Sun, 18 Mar 2018 20:51:07 -0400 Received: by mail-pf0-f195.google.com with SMTP id j20so6387621pfi.1 for ; Sun, 18 Mar 2018 17:51: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=DJR2jnS0+pHgF8S9x7Bg5tTdDN3z1FgqahTAG4D9wRw=; b=fFnu4eHFKCJEyqPj1qrC8u8bWPmsd/lvG+QH2gm+BPp/KdAW0kMqsMwwX1uiLGQ6u8 DBN6rlNAHk26Gk9u6s66itXrrBIoIlovpFmPLADsqc93FJa+hC2/AuENUCuMUC7dKz/S I1BnwOXF+SDll/SgfVSmkRJM48itOtUyDsZdI= 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=DJR2jnS0+pHgF8S9x7Bg5tTdDN3z1FgqahTAG4D9wRw=; b=kdfdl3JYWzkOV3Qu2g0o/8ZDOjYkMWpretqK+/e6GB3Pm7SNBxPmHUo0uDNsD9UzGB 1SUQ6Z5k48fEZ/fHTflT2vpq1Ma8yq1myBCo60uIs9IiC/NaiBKEhKUqyfvCNjmj9kKc PuyAoazsfZQ5pz/GnPslRB9pd8EUT1709OFQxJnomDOgZCeAig6FhUiEXdgTj0QINLH2 Jlo4LjfBg2dNZeuQaSuXVaAoiwxkDvEB4H8xUPJaTbFbkCsX0Hgmr7ctxKeNrUxKCeJs pccpJclvW6Cj8B4wjh5V2lc4y0F4iQeENpLkaRa/OGxaxnzyZ+8h84glHiqIo/Q8uAo0 6gnA== X-Gm-Message-State: AElRT7E4VVCCS09OMOFz1JktX3cCYHZO5LkwF2oSz85R5nAJZxFbfJQE 4xWQfHulwCIQzvqG7FCTmu3oq2vgTBf28g== X-Received: by 10.101.96.65 with SMTP id b1mr7874173pgv.340.1521420667245; Sun, 18 Mar 2018 17:51:07 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:06 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 02/13] gpio: ge: Drop of_gpio.h include Date: Mon, 19 Mar 2018 01:50:45 +0100 Message-Id: <20180319005056.7380-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver does not make use of the functions in so drop this include. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-ge.c | 1 - 1 file changed, 1 deletion(-) -- 2.14.3 -- 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-ge.c b/drivers/gpio/gpio-ge.c index 6f5a7fe9787d..1fe2d3418f2f 100644 --- a/drivers/gpio/gpio-ge.c +++ b/drivers/gpio/gpio-ge.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include From patchwork Mon Mar 19 00:50:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131976 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139575ljb; Sun, 18 Mar 2018 17:51:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELuudv/+d3OkKg5UgNRh92cT+iUyTHQehNvmHrJDZCMlB7amze94P5itHp3kamX2sdDa8EPJ X-Received: by 2002:a17:902:822:: with SMTP id 31-v6mr10233809plk.362.1521420671448; Sun, 18 Mar 2018 17:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420671; cv=none; d=google.com; s=arc-20160816; b=K2d/ys2CcL2W06KnGHp1z/V4QL+P3seWNvKC+c/BvjdSmMp9+4wSzrX0kai1UeB1fk XDKGNY+vTYf4Xa1pVrjLE0zxmypHxlaX2BAfanduoRNx+M8Dd4fHbkuGaqcNrWpkr1mm b8W0aPZh49FkOdvxgVPuv8qMLbmDe6WOdwOY5HQFL/7GM8MeWM/Ryi1bDfk7rG+kScLw fQIiEorYOv7SFZwHKv8RtkJgHHEndj2nVRPEw9JsZa5EEHdUGe1R5we8lu+lz4//6Pjy fKaUqKgr/mbhSLydTjlfu6oaI1AVVRAWMNsFOYqknQBYJsNEGJgWWyxq4lsbIxLRnlQ7 so8g== 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=62gjRt3cKZh/2qMXZ6bHj2l+zHpTXaUXt1ZEH778BdY=; b=H4GIbf7LbqwK7tvVQYBZcxzGTcxgHt0N+8rAc/NN7eAQEQ8j/7AEyT3F0b30f05XT0 so4rU5gfyqdL6N6ibm3PJ9M7uWRt2MK59J9QpREFZLLJ/XzV/Wku+sPVCmoWrO6fpkNX Q8gMKaegVIJ/EyNWnJQSOi6NPfC9C81y7DcWaE/X/W0os6W0cBwnUTpr45sGbO43QGDY hSTAYiASLO1dUbsqaJSjJhysjzJtI9ubwoUPesEnBD+vuLejl38u9e8iJ7ARZgFA1L6e eIbSWde/ND+HaHWp01cYQeLeOOPF+YwGIimENoJ5aGOdVjZ9q8+hXNowX1DsMZRZZThk Obfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MAVatmX8; 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 z9si4038677pgo.720.2018.03.18.17.51.11; Sun, 18 Mar 2018 17:51: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=MAVatmX8; 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 S1754685AbeCSAvK (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:10 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33843 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbeCSAvK (ORCPT ); Sun, 18 Mar 2018 20:51:10 -0400 Received: by mail-pf0-f196.google.com with SMTP id j20so6387660pfi.1 for ; Sun, 18 Mar 2018 17:51:10 -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=/WJbJ9DPP/Hq5AGIcwIzidLWOas06dkRLPhZyxDXdsQ=; b=MAVatmX8XxMyFulyJVXt22zkNpGis0jjMD7IR3Xhvmvvx5225RkokE7nc+2NM4kvf2 wNjl0QT7KAOsUelYNGZPTx31VOWMvnI4aaQwes/GhS9AoGHUV21YMfTTHikMaeWaHWjB ruv2wRRCv9Nyv2bth/ez0Q7T/FR+nlACvFA+s= 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=/WJbJ9DPP/Hq5AGIcwIzidLWOas06dkRLPhZyxDXdsQ=; b=OpqOBpv10z4B16YyZk2OUul8PEoXItQFsz+xhDrrsnwgkl+OBejTIgRNcJcUWFw3iO KKmW2ipi8rdAy/dMUs3cjeaks4RTaKoLRfOesVXIwzT2/pZ3DmxAB8XrKOREP8jAzsrD lthFE3gReV7ZxqdeliURJ1EK1/CNXujUIrl4JSDLurvg0kKLVScECxKaZC94toabCRcF PcdxL6ZfPd9uM5vAhkZJxrCRptO6ZagS8oE4DDG6leO4Jd33771oLi7nxpoj9rgoJoGc FyUfpMg+ZY9a+d0e0X1k/NwULJbLf6Bbpr8fddD2Q0RLaAtd0DxRdo4GUdWRKo7co5xU qFNw== X-Gm-Message-State: AElRT7GO/pxfKLWdkBtSwAEJPYMZ+0BnDz70uqbk7NHezrv3/+YiR6yk fjmtBHSvXbQc6pbVDGlBXIlch8oSpP1o/A== X-Received: by 10.101.93.5 with SMTP id e5mr7487647pgr.82.1521420669628; Sun, 18 Mar 2018 17:51:09 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:09 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 03/13] gpio: em: Use the right include Date: Mon, 19 Mar 2018 01:50:46 +0100 Message-Id: <20180319005056.7380-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 Emma Mobile (EM) GPIO driver uses the too generic include . It is a driver so it should just use . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-em.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 -- 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-em.c b/drivers/gpio/gpio-em.c index b86e09e1b13b..2b466b80e70a 100644 --- a/drivers/gpio/gpio-em.c +++ b/drivers/gpio/gpio-em.c @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include From patchwork Mon Mar 19 00:50:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131977 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139602ljb; Sun, 18 Mar 2018 17:51:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELtkZOY5xspUrzVxI6yo8zPKFLDchInCXE27Iw/gwP18qhsJSq4f+OsbICExOLpyCXUgjHZz X-Received: by 10.101.82.139 with SMTP id y11mr7719465pgp.68.1521420673876; Sun, 18 Mar 2018 17:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420673; cv=none; d=google.com; s=arc-20160816; b=DxxULVxlISU7/oVUkC3xm1ttnSHbV58Wd2LLHboftjYqMnmoln2MtQ3hQcVqEgLlyd DfMt0pszhGaUXU+DMQTkvz40KK1kg6/NFluATigbictDkVbdy1WM1H+Hh7JbYq10LyyL dqHUiWayCrwmN+kBcxoiKtMH6lqeyY3oW9o1mb6dGifpGYfToPuz1eefNusru0EpvZ4R Cfc0muDAyfl9PiI1+kfU9DgBkUtiTmLJVaZUri8CU1xLv2pMdKuWc5pdEaoQfaI5o7RZ s/uiHLw+Q43UzJI79XNxRwvB+Lz1LstEjbh2ic8p2pMlJUbRFX136AORT7C5mm4Ry+3J fFEg== 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=iwuwjPzUfp6gE375yUmGY5sP2aOTnLwFJoYsWGSmT8k=; b=c4uVQ6ZregT+ASR93nYDhiRhe849h3LhOijNpjDPW8eVtfmxAMHWTe5/C9Gu9sue4L zCOPq8nh4hDuw52H4iQBU6RhHpzUQRGPU5xBBL0nih9oBj0Ye7tw5e9rhsv2bQxGRHHT eZ+YDXzE6oik2EwvM8OC4rJoGRzbjBXtfaMZNNDb6iRsc+Z7DcODorW/lrDvQwSQWtMf wGODx+0xQP46Sw04zJAaWDWIO65urFkNtHSvynbta2fi0UACcD0XdXl5jAgnYvrkrEHz gMChiKmtV/SUhjODDuykfGnxsNkBgP88yvGBvR2AcADWR4DMzwOabP63TvEOGWrSlSYd kAmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=W4oRhbAv; 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 z9si4038677pgo.720.2018.03.18.17.51.13; Sun, 18 Mar 2018 17:51: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=W4oRhbAv; 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 S1754708AbeCSAvN (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:13 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35647 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbeCSAvM (ORCPT ); Sun, 18 Mar 2018 20:51:12 -0400 Received: by mail-pf0-f193.google.com with SMTP id y186so6382099pfb.2 for ; Sun, 18 Mar 2018 17:51:12 -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=KWiQmnO7lWFcvy/i3y/gYxXJMWWZcoUyf7vc2gfVuko=; b=W4oRhbAvJMY+RfevzDPKQuEsVpWiauN+X6ZGoTgFHRxYqpPUMG5rFls5DDIPOTBi4o 1fB5I/L5s4e0GNGPdPOJhISh7UU8J0otzRvyS6nMNW3fxbFamySfCsJif2LxT7L1nBiu Xixcgb8rPEiY6Jpr1QKQQ24cxI0fuG1MGF7eo= 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=KWiQmnO7lWFcvy/i3y/gYxXJMWWZcoUyf7vc2gfVuko=; b=PBr6NqVbQoqjLYOXxM6DOjJwT9wqpVLVwUllYW+wq3zAPDVmjZMLHNdWM5ppZGhNm1 caGJoHEyi+XqDC4W0bNIX/ADnvwI6JpPE/RCVYn456cflFLg/5F0rQs7oif9PfujPEcz VtfsIY10WVJ3noUuQy0fhUo/fZQ8ZfRw83quvndfAMxST1feVe2CmbQgVfTxjXxWcKwa h8Hv+rlTA+jD0ml13xZFzKrX2Rf+sZpnGij2Egf66PoJhFRydaGikeebdBx6cw2OhH1v GnmrYIcC4U5oltTnKGt773GFLg8fYIRQVmwUVkeY26ULm9l+sNUUiWBay1sH9eEvbzdm uP6A== X-Gm-Message-State: AElRT7GAKVRV4Vcj4AuXhJknguE8PgvCjNKOVdL2W6UY3pHTTgxGFguE 3SU5CIQJdjxJzk+VoJY4K2NJG/Zpe77tBw== X-Received: by 10.101.65.195 with SMTP id b3mr5788742pgq.118.1521420672055; Sun, 18 Mar 2018 17:51:12 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:11 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 04/13] gpio: ftgpio010: Drop of_gpio.h include Date: Mon, 19 Mar 2018 01:50:47 +0100 Message-Id: <20180319005056.7380-4-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver does not make use of the functions in so drop this include. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-ftgpio010.c | 1 - 1 file changed, 1 deletion(-) -- 2.14.3 -- 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-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c index e80634c464a9..868bf8501560 100644 --- a/drivers/gpio/gpio-ftgpio010.c +++ b/drivers/gpio/gpio-ftgpio010.c @@ -14,7 +14,6 @@ #include #include #include -#include #include /* GPIO registers definition */ From patchwork Mon Mar 19 00:50:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131978 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139642ljb; Sun, 18 Mar 2018 17:51:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELs3YaJq0G0UT81dMXVhosDcPFoSqgcoLDR/HankwRBsVMWlp6B4ZwL8s2JRnHtvZFch7j8D X-Received: by 10.99.125.87 with SMTP id m23mr7469018pgn.297.1521420676784; Sun, 18 Mar 2018 17:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420676; cv=none; d=google.com; s=arc-20160816; b=tbx89zCn8cYucNPMwX1OSXBrd37GHWlH47ns5XJyyiZgAF/yUYZP1gnwwN0wcgrR+3 3XMrWnfTVgopyNXqQeAnSLVEE01s1o07diDIQaGglnuqI+HOqHvxJwjlkTJdB6BfyaoY s26RPfy8Qn71Mmhn6Bg1Iwj2noyFkNVIHKcH85IwkT10DTdt8lkEEwyMLXaQ3zp85OSH GDzcen/CNE3T3Da8yUic2iRxi/FZ3Q7nkcOlGohoYsgT1FHc6BEE+5w8yc/4JmpaSs6F bMlwzQFjQb1RWWiICvFyCpKJ4l5XE455NgvmdbjK9AvLQYM2p1f1xguu4s0G/SoFSNci ruqg== 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=TspU0k1lY7YxiqVNo8J1TUCeHZXrbKzZKn53AAl5Lrk=; b=Qejm7yKD/PvZbAMB854SudOve1lHgo2ztd/rH0RJTSEDeqcfmKkWTbUmdQ2pb2FHh6 bGeLNDv+bMKlWrdS7j+u3IZfL9P3H4WxpzOaQzhWoQOpJ1erb8Ol7O6j/q0YifBGW/nz C/9c1p6Wgd0G/0gICCZKIVK74epgBlPziymiO/wXsk7N6YAn0xa4GUQC8wBMFAGN2999 jL+rZOLOXfoj+l/QVFsMEa7onhuPGVnkPQ9MfVGgX1PgzTVHUFBfwVNhkoPG1uc+gfh4 5GWxXg2J8PPpSdjKV8UFgP9qGpo2qEttHmzxHGTWDGY9W582RlgsrrEvxKkNyRJHKXYH W+dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RuG4bPJB; 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 z9si4038677pgo.720.2018.03.18.17.51.16; Sun, 18 Mar 2018 17:51:16 -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=RuG4bPJB; 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 S1754723AbeCSAvQ (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:16 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38412 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbeCSAvP (ORCPT ); Sun, 18 Mar 2018 20:51:15 -0400 Received: by mail-pf0-f194.google.com with SMTP id d26so6378855pfn.5 for ; Sun, 18 Mar 2018 17:51: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=FcFGxLJc2E/Fd64Irfpy9qoGrsIyytBoK7uf46EV/xA=; b=RuG4bPJBcVbXwZBLafOtzg9JsoSYZc0nLgVrF9alZFquZBNWR/hyh/L9rsmKSJlVKd /BtYVLSya77/JAmqXYsfBE9YuK0yxZky4hPIWyDb2qxxIggjjZkr2KBa3ZY5X9qKXFdd GdWitgqgaAR9sTGMqjA0cuIcOH9Gnz0JFSiZU= 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=FcFGxLJc2E/Fd64Irfpy9qoGrsIyytBoK7uf46EV/xA=; b=Gzw6KHCo/WM5htS/JX1EiT0gkP2vwwYwfLbaVo0S4J7UP0J2lnaJ314dkfxBORpMq5 n31fYwacx0+f0SWVAS1Z29xC1ZGoDY5rq/pU/pl8uoMSC+kSq1OvSZu6f5O6Nr3XTTu1 WDleQOHIbgRCVUFU6dINo8nW6AjuQ0sRcPW8C2IeY81u8yF9Bh18g+WB8Sz/MRRJC3r4 9ORGO7KP7iJY2YX9FDeWax6XmfTAcf0HOk3V2gsNq3y+EEs6c70w+MWVyfU9vgrK9mbk 5DPTK36LTkDqPRzARPYjO1mGPYeBTo9tuw0/UD+bwHwAJ5e+RofngOFgtDQhH3KIdboj PRCg== X-Gm-Message-State: AElRT7FY2iQ8anoliB/ljeiDQEL1h+ullCW47tOUL0PUSs0vhkV6s1EF RJQkSffnLGaBZaAq8pOxZPvbYqQKwjk0cg== X-Received: by 10.99.169.10 with SMTP id u10mr7742586pge.163.1521420674460; Sun, 18 Mar 2018 17:51:14 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:13 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 05/13] gpio: grgpio: Include the right header Date: Mon, 19 Mar 2018 01:50:48 +0100 Message-Id: <20180319005056.7380-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver is a pure GPIO driver and should only include . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-grgpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.14.3 -- 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-grgpio.c b/drivers/gpio/gpio-grgpio.c index e2fc561f4315..60a1556c570a 100644 --- a/drivers/gpio/gpio-grgpio.c +++ b/drivers/gpio/gpio-grgpio.c @@ -26,9 +26,8 @@ #include #include #include -#include #include -#include +#include #include #include #include From patchwork Mon Mar 19 00:50:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131979 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139664ljb; Sun, 18 Mar 2018 17:51:18 -0700 (PDT) X-Google-Smtp-Source: AG47ELvyGePoWp9DUGjF26Oy55XXFaSYj3Jm4/JbMxEaZXVLH24eHKCTwrmi4CJLh1b1il7A/pJI X-Received: by 2002:a17:902:e83:: with SMTP id 3-v6mr10756859plx.158.1521420678624; Sun, 18 Mar 2018 17:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420678; cv=none; d=google.com; s=arc-20160816; b=Z8qUc5+g2YS/YGOMRwHspFKNSwBbetbAc+9iRGKsGtREyCCzUHDI+gF0prKgfbmLSz a5Ixjk+kAOBSJ3upZaAQktpLY9cyi9AF2ZkHRfFwzJfdn1r9xruICBgeb3ZxylRP+mFF Z4OhwEcSzPgqUpfGTq8/Z5YazclMWVhYnhWIBzCQXn5SetA8asFT1AW/Kycmvb/935Ch 24sOKbN4ecd09AFx7cqpe84vOaj1TtJhYEgUeHhi6C1Z6bOkf1cdR5d4sT7I02UINJga 1L1mDV+Rr4g3tCv1s0DNYL5o91Kzoa7nd2Phy7jzRA0TRHQPq6YUB006T1X9nzf+SH4U QQNg== 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=4Sxo5F/AcTa+khYkvtU2wOvHIj6KEb29sQUIa/QIYyM=; b=aIv1+yMcQXb830fcHjrY0Gt390sg2LGlOV4S95RG4kZr+oGwLVqJrVT0Dzf1D2q+0w NAxgvz/teG9ky++CyDWjWJdvKjnCo1EteKlL6igDaHy5dbADFFSCPGXVCTSKp8TC18VZ w7d6a+XfJGVp2P/SSNRyM6sa3bcrtTEmOoEMOIhRqi8jZKXrK910STyJvC9iQmm0T3fj e9juz+C/UCliQo7aPYS4z0K/wKAED+pSZHKrzvR/thjlsJFb3etj04w4x6bsy1Ja+dJn FOvglTmiAPq64CnBEbutmej0QOs5IVO6Ut46/iZ0vympXYCAwURZtEppVgZi6gGR2eHs P4ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RM4bIjTl; 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 z9si4038677pgo.720.2018.03.18.17.51.18; Sun, 18 Mar 2018 17:51:18 -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=RM4bIjTl; 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 S1754752AbeCSAvS (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:18 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36611 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbeCSAvR (ORCPT ); Sun, 18 Mar 2018 20:51:17 -0400 Received: by mail-pf0-f195.google.com with SMTP id 68so6381165pfx.3 for ; Sun, 18 Mar 2018 17:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JSxiEbTb35GyC6vlKxIlZqGcNheiXEJkLzLZnaPy+6g=; b=RM4bIjTlgYnO8Qe+grBPcTIAr14mWL7pAM/FuPKwWpXmn4gaqj+WXN63f2fTo/Ep3C Uk9yWx25UYc3slMIsTW32v5glWEL6CaBTKLmX1HrMgsoJXGdF/Zvu74j7Vde0ivNI2Ot M9j7htuAHTIqG6fAtbBVUhACmANm2KVS5XnsI= 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=JSxiEbTb35GyC6vlKxIlZqGcNheiXEJkLzLZnaPy+6g=; b=UjhvlAYegn1tVd2TlKjUNJNrwpE98iABZ9on3pI/mGVmUnEmnn46vYW7RGLSJP4oTq mitBquOrYI7J/JvmejqvTza1mCrFk7DocPEyoNPqYOdXEVNAL7/guUKQtrMhXcNsiGHL XNJWvcoEJKoPaOJMTox1pov8mFYWyn8Yn9rQUOdqyXxLRwBAJTIm6puXUAUAzfYVKXEE CPqgX6uBaDrSHfO5kmyRUDstCrxVbkhLDQFCkK6TMyDf4fohXQA5dJFXgGDvIP6hPKIo egL+p5KXDphuIpLosbKv/x2ciGXGfqZUSn8ituV7yuCtskJCQw1DHlniKC01i+bq6TVq 3z5Q== X-Gm-Message-State: AElRT7ENmUbkWmilAXpw8uln/qLR+UL2AJIdlG5Fak00Tg6trV8BhLNC SKj1iFZ6VzhfWzjWz49YzYhM3PlpwNwT5Q== X-Received: by 10.98.152.207 with SMTP id d76mr8485216pfk.130.1521420676840; Sun, 18 Mar 2018 17:51:16 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:16 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 06/13] gpio: htc-gpio: Include the right header Date: Mon, 19 Mar 2018 01:50:49 +0100 Message-Id: <20180319005056.7380-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver is a pure GPIO driver and should only include . Drop the include of from the platform data header as well, it serves no purpose. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-htc-egpio.c | 1 + include/linux/platform_data/gpio-htc-egpio.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.14.3 -- 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-htc-egpio.c b/drivers/gpio/gpio-htc-egpio.c index 271356effb2e..516383934945 100644 --- a/drivers/gpio/gpio-htc-egpio.c +++ b/drivers/gpio/gpio-htc-egpio.c @@ -18,6 +18,7 @@ #include #include #include +#include struct egpio_chip { int reg_start; diff --git a/include/linux/platform_data/gpio-htc-egpio.h b/include/linux/platform_data/gpio-htc-egpio.h index b7baf1e42c55..9a3e78082883 100644 --- a/include/linux/platform_data/gpio-htc-egpio.h +++ b/include/linux/platform_data/gpio-htc-egpio.h @@ -6,8 +6,6 @@ #ifndef __HTC_EGPIO_H__ #define __HTC_EGPIO_H__ -#include - /* Descriptive values for all-in or all-out htc_egpio_chip descriptors. */ #define HTC_EGPIO_OUTPUT (~0) #define HTC_EGPIO_INPUT 0 From patchwork Mon Mar 19 00:50:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131980 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139688ljb; Sun, 18 Mar 2018 17:51:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELtCbVqu9Zir3NaMgHQ0UxHmSC14MkGw06n1CPHlRk1N47vQgKUeC3c6s0Kta5Czc8XAssCO X-Received: by 10.99.181.10 with SMTP id y10mr7800092pge.222.1521420681236; Sun, 18 Mar 2018 17:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420681; cv=none; d=google.com; s=arc-20160816; b=PYI25KwomzO7RUie79gA8LFVYLKJhvL+62ewbjx5cliD0cHVsxI03T2nootIlzcGTy 4kyu91mOPZlqdx930vcrOXqo+OltGzy6sYrEmBEb6HrW3n/F7qqq2yyZFNB1TYRpkn8J oqiPU+1k5AOtDezZf/bgFgWQH81rVJ0YbqbLmm8AL0MKpA1BBXAt06cu82SvGEvPBpTi c4ZZtDLnz4DjD6Sx/pk3PpnLCQUFelzkbev7gkBASc1O8K3kV/PqAxIcio6PDIN5TlbB XK5rYrRBOcH3FjxIL5ejbdNmZ5mhKq4Da9+0mAXh0rj9cXwNTgxxpRj2xnfvl2tfOWc5 3Npg== 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=ioTsi2N2AoletBY5cAnH76tCwfWUhQuYP7y8rH1jMCU=; b=vdbqeXckW7cGoiQR9HEjcRjBcLqOmNOp6ibXxE5eRvFpOReO+P9Pq1/JNNbkkUyd85 +dXMyD5HB5TisAMeBvlDckVh2llGp9hxY10KO29dpzeZXKvbmsxzM55X7AU44qp8Z8wM /CqYAfl5bM0vLrnwPvlXZaCoJXcti8sjJRprft7hktCBs05IejN6YAtr/fCivlf5VsYK 7h6nspqDYRVSrZXkhFD6wIQGVABfux0a+GXKpxJSrf+CRdytuWk5on+/swslyr+9/60L VMzPsewnz7YNwjBTRWzrMBiSgJdeMpSJ7zZ2tShjUf1NraP5Ckc6zBTsYGhccsM9JtN4 mgYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P0cgJOjR; 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 z9si4038677pgo.720.2018.03.18.17.51.21; Sun, 18 Mar 2018 17:51:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P0cgJOjR; 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 S1754776AbeCSAvU (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:20 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:39606 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbeCSAvU (ORCPT ); Sun, 18 Mar 2018 20:51:20 -0400 Received: by mail-pg0-f66.google.com with SMTP id a19so462993pgw.6 for ; Sun, 18 Mar 2018 17:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M25aTOG2S2LRQPtzWhbRDMp6/Y4MwBXeB+71RTBVOq4=; b=P0cgJOjRorHi99KX+TldV+XIJ8pOLxGj2s/YprjZycLP2i6EpMPuY4D8fZxpIjXv+P hfxmVGGmonf8qkoYdd9ulr9pJsPiMRt5URlQd05gl7UDqLDY9ZIcePstP231oIk9t90R VNgiSMvw9CwI5uvGumrlgmMk/cacjtHRHqoWA= 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=M25aTOG2S2LRQPtzWhbRDMp6/Y4MwBXeB+71RTBVOq4=; b=t7DBSlWpYTKE3rNpLsr25Ej5KY+ewb5Mkfv58our/3OfR9+R7GzjA3nmBRmcKgeopW HIFERwWAOVxANomr05b5f2upgEmCnO6aRx4U9YinYanp7hGF7XPahzIJppjXtqviQ74U Yqgy/OU1uRfoRL4Kep4YYy79mSGVVqtwxG30MmGpNsB2J1fgdBcn2UN5Z/+DUlbmTkii 1PBLSEr+yrdyEFVPcj3jb81pAfpnfygtib05K0QrVMAeiTE/GIRX2j2T8thAMJ8amuH0 nZUVrZVCbjRF02am0EgtlEo2T/c3I/Pg5DPd9eO5P9IxwvrmkGgHacpck3BRmheXgSRQ QQrg== X-Gm-Message-State: AElRT7EXe5gTcADl+wt5WUfB+6Nmz18uwqCRm6BJeTSbXwljUE1TGMrE 7RyVegwkT8fHVF08JIhDp/ZgnfpIy2z3hw== X-Received: by 10.167.129.24 with SMTP id b24mr8523883pfi.183.1521420679376; Sun, 18 Mar 2018 17:51:19 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:18 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 07/13] gpio: ich: Include the right header Date: Mon, 19 Mar 2018 01:50:50 +0100 Message-Id: <20180319005056.7380-7-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver is a pure GPIO driver and should only include . Refrain from using GPIOF_* flags in the driver, just use 1/0 to return direction. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-ich.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.14.3 -- 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-ich.c b/drivers/gpio/gpio-ich.c index 4f6d643516b7..7a54165d7276 100644 --- a/drivers/gpio/gpio-ich.c +++ b/drivers/gpio/gpio-ich.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include @@ -176,7 +176,7 @@ static bool ichx_gpio_check_available(struct gpio_chip *gpio, unsigned nr) static int ichx_gpio_get_direction(struct gpio_chip *gpio, unsigned nr) { - return ichx_read_bit(GPIO_IO_SEL, nr) ? GPIOF_DIR_IN : GPIOF_DIR_OUT; + return ichx_read_bit(GPIO_IO_SEL, nr); } static int ichx_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) From patchwork Mon Mar 19 00:50:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131981 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139707ljb; Sun, 18 Mar 2018 17:51:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELu+3HF3E2r/nJUfnVOA5wMHA9Ze6h0J5avielzkUKA/+OaJbo6fk4E0Oc1IBw829fxJeqw4 X-Received: by 2002:a17:902:4601:: with SMTP id o1-v6mr10375661pld.210.1521420683930; Sun, 18 Mar 2018 17:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420683; cv=none; d=google.com; s=arc-20160816; b=NbSzCVKWXVQ7h7J2zsUcWFRPs+rhDEHGtkZw2EdIAOQeiG0waV7O7YgxxIM6llLDD7 N4ETL4EjiXsI53z5QNqwVogpprIJlEMMOkuSEh9g8rbAzILtasLDtKRADZJB9xdGDXWj EYXMbWeNtdK7w7YNzP37DZvsFyEZjKqBP52ObnUXEe2mr2inCqG+VXj+GEJMjvflnTEz FqFjeC0qfrOEtk68HoG0v9iN7Ttr0cRAS+28MuqAV2iC8WsPS4YLzoSunLqj//GdCZG4 w114DlsRxCYMWAf0jrkv1Bzcbd0Ifz5qQ62KyXxEsUnJw9/uGYlkQ2sYkiRKvj/gObs1 Bong== 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=/bE7iaM7PEx/W7KCZbTZ5VTZKa7Spgq5dPBvk7eTd9E=; b=Nmh1onbvGc8Ec2qSRwmdTlF84GqnE2yiIHKCiIqlBp+6lEvqVZI+gcdzcklDE0GrPt uMc9Ky5RoXnw8WS3oQYBDubnX98isEwDV5oVK71arHW0bWv7sOo5Bo4Gf57blam/Z4f/ 78DVfiXryWisC/EyE7OU8unbK3DHWvth8sBaNc1bKWGA/1VRAuvSRVrUWN1IaOVtM8IJ DWm09AMR1WDnmKQtm5S1hqa3FtIf4YohYBpQ/+10OkEbFhnrn7zGum7L0dLWcpJJLOrd 3yN2NrJPZ5nu1r9LCcsiqp7VGjeGPvDfC5ISPzHbTZvCiZkeXul9xB10R0wxW4toq3uD Me8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MhsUmkSh; 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 z9si4038677pgo.720.2018.03.18.17.51.23; Sun, 18 Mar 2018 17:51:23 -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=MhsUmkSh; 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 S1754783AbeCSAvX (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:23 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:42233 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbeCSAvW (ORCPT ); Sun, 18 Mar 2018 20:51:22 -0400 Received: by mail-pl0-f67.google.com with SMTP id w15-v6so9234089plq.9 for ; Sun, 18 Mar 2018 17:51: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=nk2wOdMgCJGVpiNdGoWHc35KZQzo7+X+MGbaEETaTcE=; b=MhsUmkShhTS2y3X64Rds0O3YVcG5WDJ7ztUV8vmiJj9924RoIpzpFchZ75ohqjTk2k YggtiANk0y2kRv2glYGaJ3qE53/s2slQKdsC5bc7/Y50IWy4TyOPUlidiBun9T9/INRn nhPu7+BDL50yfs1CDsgp+ozhJXAfRFdc7J6tc= 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=nk2wOdMgCJGVpiNdGoWHc35KZQzo7+X+MGbaEETaTcE=; b=L5sE7lmdz0XOQ54ZoIsN9pNdM31GAeGHHuqw1kf5EGAvSq9CVfMwZ5DdBnHlzhmPs+ 8cFWjlD1mpeX4GZ1CULxg33olO7yBxeXy6QaEKoyJ/xlQB+Wp22E2mO1b07qMjjYdljj t47dX6g4pQLpCrMLJX+0s4oFcRMLz8zoDCyLyft0Z1zzp4WBZRvdTJsYyY3Kcf2bUKbC bwPswakTDvaS1r7+omrtH0l+HnApbEHNAn2DqLDLuE44ycgXWiWisdl3uaN8pKgD3LpK zIk1Gt+Au0dWk7nygktldM20y+Y1kCq9PoWqAFeu9Xh0dDZtBJPcBxfRGbKnMK2DaOpS Z8cQ== X-Gm-Message-State: AElRT7H2/XruPuaU57WKvZuLgdcwNrBRw3h58AJiO4Cb0RgiKEq/N+Db T3/GaCY9XrhETs0kRJU8GTQBvtd1evPMcg== X-Received: by 2002:a17:902:22a:: with SMTP id 39-v6mr10609808plc.128.1521420682113; Sun, 18 Mar 2018 17:51:22 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:21 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 08/13] gpio: ich: Use BIT() macro Date: Mon, 19 Mar 2018 01:50:51 +0100 Message-Id: <20180319005056.7380-8-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Using BIT() makes (1 << foo) constructions easier to read, and also account for common mistakes where bit 31 is not working because of numbers being interpreted as negative unless specified as unsigned. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-ich.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) -- 2.14.3 -- 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-ich.c b/drivers/gpio/gpio-ich.c index 7a54165d7276..dba392221042 100644 --- a/drivers/gpio/gpio-ich.c +++ b/drivers/gpio/gpio-ich.c @@ -26,6 +26,7 @@ #include #include #include +#include #define DRV_NAME "gpio_ich" @@ -131,9 +132,9 @@ static int ichx_write_bit(int reg, unsigned nr, int val, int verify) ichx_priv.gpio_base); if (val) - data |= 1 << bit; + data |= BIT(bit); else - data &= ~(1 << bit); + data &= ~BIT(bit); ICHX_WRITE(data, ichx_priv.desc->regs[reg][reg_nr], ichx_priv.gpio_base); if (reg == GPIO_LVL && ichx_priv.desc->use_outlvl_cache) @@ -166,12 +167,12 @@ static int ichx_read_bit(int reg, unsigned nr) spin_unlock_irqrestore(&ichx_priv.lock, flags); - return data & (1 << bit) ? 1 : 0; + return !!(data & BIT(bit)); } static bool ichx_gpio_check_available(struct gpio_chip *gpio, unsigned nr) { - return !!(ichx_priv.use_gpio & (1 << (nr / 32))); + return !!(ichx_priv.use_gpio & BIT(nr / 32)); } static int ichx_gpio_get_direction(struct gpio_chip *gpio, unsigned nr) @@ -232,12 +233,12 @@ static int ich6_gpio_get(struct gpio_chip *chip, unsigned nr) spin_lock_irqsave(&ichx_priv.lock, flags); /* GPI 0 - 15 are latched, write 1 to clear*/ - ICHX_WRITE(1 << (16 + nr), 0, ichx_priv.pm_base); + ICHX_WRITE(BIT(16 + nr), 0, ichx_priv.pm_base); data = ICHX_READ(0, ichx_priv.pm_base); spin_unlock_irqrestore(&ichx_priv.lock, flags); - return (data >> 16) & (1 << nr) ? 1 : 0; + return !!((data >> 16) & BIT(nr)); } else { return ichx_gpio_get(chip, nr); } @@ -254,7 +255,7 @@ static int ichx_gpio_request(struct gpio_chip *chip, unsigned nr) * the chipset's USE value can be trusted for this specific bit. * If it can't be trusted, assume that the pin can be used as a GPIO. */ - if (ichx_priv.desc->use_sel_ignore[nr / 32] & (1 << (nr & 0x1f))) + if (ichx_priv.desc->use_sel_ignore[nr / 32] & BIT(nr & 0x1f)) return 0; return ichx_read_bit(GPIO_USE_SEL, nr) ? 0 : -ENODEV; @@ -394,7 +395,7 @@ static int ichx_gpio_request_regions(struct device *dev, return -ENODEV; for (i = 0; i < ARRAY_SIZE(ichx_priv.desc->regs[0]); i++) { - if (!(use_gpio & (1 << i))) + if (!(use_gpio & BIT(i))) continue; if (!devm_request_region(dev, res_base->start + ichx_priv.desc->regs[0][i], From patchwork Mon Mar 19 00:50:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131982 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139726ljb; Sun, 18 Mar 2018 17:51:26 -0700 (PDT) X-Google-Smtp-Source: AG47ELvYbxaIaMa4eIAlfVAFp5tB510tYNlZCuEJyZ8zpfZI/7VS6BP7a0pUTfpikihK6bOQqNT1 X-Received: by 2002:a17:902:720b:: with SMTP id ba11-v6mr10317721plb.148.1521420686259; Sun, 18 Mar 2018 17:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420686; cv=none; d=google.com; s=arc-20160816; b=BA1w7pWdletPb7pvr/eFVlF2r5DyRUaysNFhH0u11Pgd5hGjpOhO/9Yqy5u/EB71Wc CdGIjFMXlqOckKF15V2OhCmp271/RCEHMVmg0FQ0fqy0K1neH4lOECizcSR8MEjQMtoH 6UySxW+SrRGKhAyUVj9mQTvvNx2n7E7DV4FMtz7Vs3zZOp7qedXg/amAgKGPhROhnNhm h+tb5EtgOEZ3WxrwkUzu+VMO/NZphaPv0n1mQLPj3wWE5k+KuookQGyMsw/cf5mtziyT 41ohAhdXsrf+M4dkLWikixOtwBa5XxE6dU5IeN+P7ZD3LJVqHVcQPDha0jttoC5nAeDx A3/w== 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=EL5obpftuatnsSvWHW2ZcfSdCx5Vo8Q2EQJwQqtwE8o=; b=o1dlNvXHAM+wqEkWRmvJncSwlnrX34hAu4fXD1gS/cDImNIG6RJtjziZCIKJsnNcnT cSyGrI8XF6qLDjEueh/JACifGIOOJDCCPQQgs74hsHaH9WR3Sa8YwE9AdHS+AfN3A1sb 3oroDtCSG5UDhk1lL6sJL9hIH0nD0cB9nlpEIgysj9BA6pEEp8aBDO5zwT01jBxebYv0 HmMwGlsMy7fzNswp148ZNKmw2rZ7+Rpqs/MPDmgPUXeeTY7xtPCE4Og9ZAMbgEKV5nh+ +goWG6r2h+0CozdXrikGurDJYfKDOfJFpJ3E6umRMumzS92w6QpuHCAelGz058A2nK0O F9DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Oo25HTde; 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 z9si4038677pgo.720.2018.03.18.17.51.26; Sun, 18 Mar 2018 17:51: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=Oo25HTde; 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 S1754785AbeCSAvZ (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:25 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:40245 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbeCSAvZ (ORCPT ); Sun, 18 Mar 2018 20:51:25 -0400 Received: by mail-pl0-f65.google.com with SMTP id x4-v6so291698pln.7 for ; Sun, 18 Mar 2018 17:51: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=N03i1JhjaR40ciJRaMJVlFFBSn12/5IxMNeKfUq/FMk=; b=Oo25HTdea0RoRQHMBgv7blM34OI0IzVZKZb/FKAkN6wbEHESqPr9JyF6OYSnWS/hzb 50V7Eb+MlTizbQnKoCYhFyjxnSbwmkueyGUGBX0Ges+Qc8WisnE9StX+36EQcHAX0Tgx 9ndEKJuuXokgLak17jJzMCuwqmtIn3FYAv8X4= 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=N03i1JhjaR40ciJRaMJVlFFBSn12/5IxMNeKfUq/FMk=; b=TpDc/L1uYtijRQZuBq3NozbR3y2Dxu95Hj1nSjarEmVnMwCG0+Ninep77CG91jUz9g Xqp4fC6aBX7z/6Vk+E9YSiomb2pvAbMibQK/8UwB8c6Vutn+cipxrCB1goMsZdhgtDU0 oahWG/ME8pbYJK2eyDm/Jq9srpFGdrOL+NWek8DCAQAQ85MNTxnUvMZ50SRVJl0bSRKR WZhhGu9CbfDfbLS/FWz2FUGHyI5OzITtcDkZX713+uAltJ9LJnjC1F/I2c6d/BUFIbOB Lbts/tBN1sXBhcbV7VK+4XrpCCi65ZcYRIk1XXobQDsyrcSuUVuAK43YIobtWZflm1lb tE7Q== X-Gm-Message-State: AElRT7Gflm3CJ0VY4tYcT7CEApdNVmZ459uRQGB+bvcEqY2UMo08cuco Ps+vqiRHmDKJC9ZjIPYCKT6pq2qkdGpoZw== X-Received: by 2002:a17:902:724b:: with SMTP id c11-v6mr10753767pll.352.1521420684440; Sun, 18 Mar 2018 17:51:24 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:23 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 09/13] gpio: it87: Include the right header Date: Mon, 19 Mar 2018 01:50:52 +0100 Message-Id: <20180319005056.7380-9-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver is a pure GPIO driver and should only include . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-it87.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 -- 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-it87.c b/drivers/gpio/gpio-it87.c index efb46edff81f..7cad14d3f127 100644 --- a/drivers/gpio/gpio-it87.c +++ b/drivers/gpio/gpio-it87.c @@ -31,7 +31,7 @@ #include #include #include -#include +#include /* Chip Id numbers */ #define NO_DEV_ID 0xffff From patchwork Mon Mar 19 00:50:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131983 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139750ljb; Sun, 18 Mar 2018 17:51:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELvA2z6R4k1xYsbviklFtyKKWzQxrr5N+7zrI5pnm8DCe/7/BSRaNrbEQtlSfsOVWdtV0BeL X-Received: by 10.101.70.203 with SMTP id n11mr7757761pgr.166.1521420688829; Sun, 18 Mar 2018 17:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420688; cv=none; d=google.com; s=arc-20160816; b=Fs4kYzTy9VfO16lERBKO9YjF6Uqh1qiCtY7k2+fd/cC4WjTbchFkDEq3PrPgGod2yk T1yAxfPqgFLDHG4wNPB0CB/RK+gRMnyZcBvcnd2muA63GGP/HANcy0PX43JWidxXEAP4 AqUrDAnbtZvJrRLJWFqQvGlwk6iHItdTCt0OQOyOIp8TyMubQC7cIGq0i05V5YBUrYpT 71Bo1lQ0FONAKKTsjkC3Tnb3vB6mT9i148aQRb7Zsj0hoJ+iVbyxYga8Jz1YkCZW2pcU Bayji58/cOJ0247WxJgqToZK9O6Aj8etbGG8m80OsEVLTUd6gDcQxs1UP0HFAhK4RP+Q p/fA== 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=P8E+puzy1GIDXrVyyZ67by0cEhvUOl5c2rn/Up0EdIg=; b=fEMYCG5MPl85V5Y9AK3Ztxn2drKv2y0LV7tLHy8+KCK+3NKfZr0GwMEd4ZciNM+/gi v6XCufQ1HDVE1pGl2MQJz7exfgN7TSPLpA5tNKNEB9jX02JEvevX6jDxlQl/xy7gQv9Y vvqAOe/bKF8ly2OXbBg2a2rkTMeu90I6s3myigM8EgrfPAyWgxms843/om+SrESiVSHx wNiwrzv17SpKl5wLaNrf4qX7WrrkMuS3a3jqtjftd828XBLpVp5NAwqppmV7HtUZoSes lA5FkQSVGhegjar+ReccZx3ySwqLCGi/qJFPVQzvuOW+tneo+mzB9RXAiVrRzeFzdvMh nefw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kC9Wex9t; 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 z9si4038677pgo.720.2018.03.18.17.51.28; Sun, 18 Mar 2018 17:51: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=kC9Wex9t; 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 S1754795AbeCSAv2 (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:28 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:33487 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbeCSAv1 (ORCPT ); Sun, 18 Mar 2018 20:51:27 -0400 Received: by mail-pl0-f66.google.com with SMTP id c11-v6so9240578plo.0 for ; Sun, 18 Mar 2018 17:51:27 -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=qFYDef9Mzf1AZQUu1V05kj7pSRyx+kDXqhZ9g1POCh0=; b=kC9Wex9tukoYu8cIASIAVUHaLgmg4igxAk6oXr7NlYQJDbTkj9/lch9ujqCnKrbsI2 nmC8EfslDX8MUYfj7WRaZNgEXg2uuD92NVdjl8agah96SvrfsC1Tonfet5176FlKijlo 8N+Vfu/se5zJpwtPR6TtzdoELjfgT/q70AmfE= 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=qFYDef9Mzf1AZQUu1V05kj7pSRyx+kDXqhZ9g1POCh0=; b=B2MvN/sY27IqGTdf6TLwjIDQXB/Z5qKmcvIaEQILVmTrvB8ArYcl88R/VaaH8yIk5+ Ar3IlbjhFMH69rSA9++TGonJM/HBU7+OOA5tPP8JsRvmhdEXz4MAnY/GH8YXHkRj41lG rXWTszg5d9p6GoxhcaXrgHyEJRjGgCgqfiYuqDV/5Z5xuJfbvnpB89qBoYIzBBTId4Pk gegVF2x2t3adKk2wP9BxCpykH7Tn6L6ZA91HMnU2AsXhFsk8JcM7qlkoZzdSby7yRbCJ U/wbfe2JwECaW5QXz0HPL1o0dxnE0VrfRWh9Ulk/YVDbsiyw7u6iQFqpKKzODViw8VmQ 7J6g== X-Gm-Message-State: AElRT7EesPKfa9wjiB51ZhT0zjBxnNLnvBeyOBby2AArz135t3ljiMdI fxp7tVfwmJQcH4xWqe7hjzzmLYeR+/bv8g== X-Received: by 2002:a17:902:4d45:: with SMTP id o5-v6mr1917446plh.84.1521420686764; Sun, 18 Mar 2018 17:51:26 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:26 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 10/13] gpio: janz-ttl: Include the right header Date: Mon, 19 Mar 2018 01:50:53 +0100 Message-Id: <20180319005056.7380-10-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver is a pure GPIO driver and should only include . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-janz-ttl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 -- 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-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index a8d0a6b8025a..e9f4612cd2cc 100644 --- a/drivers/gpio/gpio-janz-ttl.c +++ b/drivers/gpio/gpio-janz-ttl.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include From patchwork Mon Mar 19 00:50:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131984 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139764ljb; Sun, 18 Mar 2018 17:51:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELviPwGrB41ANOkq/1bl3KNC2QMo78JLALC19trOq3epNi8OwSKE8E58lqVk8jU8z3wpbZMN X-Received: by 2002:a17:902:6e8c:: with SMTP id v12-v6mr10369332plk.24.1521420690889; Sun, 18 Mar 2018 17:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420690; cv=none; d=google.com; s=arc-20160816; b=cTl2s88zxWjI8O//Bu5oYd9LDNMRHfuOcnS/rt+jYIRgFzbSK7MJHVvCAzV1AVqq8Q sGTy8r/BW/yYZY/9/wDQZsZP1Bu7PtK6dpFUMd6o+KI4tvkiSJlT0w/UrvJ1AwLDZ6bo He8a9s+9UGOp7BOyUOR0l2A9Z/gt21tGTuCb9N0gxRDunmIsM2ZkCIH1GA7S1XJpG+MR YD6t7GDDqXyC9u2xDPEha1UTb6y8NPUoBJxmBvZw7S56CqHoWJTu+qXUgxmp1OXeqSB4 9rqM3jsX1OZfCLmM/Rxdu9mstaQ7nB+BSxHxyj8jL5/L23D+4oNG8l6QutD3Z7t8NvbW zthQ== 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=Yz/gl5JElJKUWU5dINhhYPvGy3jFT9XaP3E33bnof9c=; b=qafomSuLf9jtIdnOA5DjAJwxz5emH80UAK1UDp908b8btg4GKYbnuihGHp5i0e+urY D4qNpj/AtEXLB3gGQJPmnWqv4eawqoHwdAZWqAHIehec7bSpGTMCgrbW6WJ9rL6UzyC7 oZqG1VKpj0Lt5z+5T1hMH2du6pIrSD3hNJZKPRqCLcJD3LraCPLmeOuJT20Cqqz3DAnK 0WP7Ky6de/U4sWQVomspAyFmE0FavEfY2Vd7NY8RnZuMfH7d4AXn/iMHFr/5C/4c/URi UfhwfZQ8u9PfTmEDsP0A9XPLMNh2AOSkn0xHvSvPitjOh8yUPcfd1Bg5UK/zS27RiuQc mNhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bswFytv5; 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 z9si4038677pgo.720.2018.03.18.17.51.30; Sun, 18 Mar 2018 17:51: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=bswFytv5; 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 S1754673AbeCSAva (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:30 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:41252 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754805AbeCSAv3 (ORCPT ); Sun, 18 Mar 2018 20:51:29 -0400 Received: by mail-pl0-f67.google.com with SMTP id b7-v6so5160099plr.8 for ; Sun, 18 Mar 2018 17:51:29 -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=EfDXCwCIz6wmicITuiUftRqZLL/4iUs0SbEMRQhU69c=; b=bswFytv5QL+dHDStfBSIfYhQeS3kFjtu56WMOnUjh7Gp3R07Daac33NuhVVpVggEw2 ropKKtETBiFvNY+XYNOLvlwmK+FsTqXekmNqVNcfvr0NRxbtce7ReXqN1KxfXdsHERMe 0jiMxqX5G4xRmoYlWr6XElBTDQCbASWX1Leg4= 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=EfDXCwCIz6wmicITuiUftRqZLL/4iUs0SbEMRQhU69c=; b=PH/tAURixSs/6QPttNy1nX6v27QBypXIUdcFzLYSB9CSsqrpbYlzrV7d75zG5TRPTL c5u+wqpiGfI2uM67LzutOWPjgCxQbnkOif27rPTdCGbet7FANJklFeRi3IOhzXKKgnKS zZkagi8z54NVgzDjdX4Zd6VaUwUu1hUKYsYrxjFv2Pfi51K6Yq1+8roVLXs8Ecj4gT/J 7RnPV9F3C3UoFMPQiOZfCnmGRrsPTNehQBNdlj3FV/ZWCYQmF7tqAFggdN2l5rjkQqSo K1TisHbecHtYkzh11RqBlgvZUbadSfo7NEjvaEqCnd53M+zY6iAp0j4J/B8N8x2CEAnG PeJw== X-Gm-Message-State: AElRT7FCZqdD9Mn6ijlV2oZ+MX600BBQWTMe8kB2BwFJj1VqCAyMTLgb se5Sfbjy9xKX/dGu19tZhuxtlADvkJs7Gw== X-Received: by 2002:a17:902:24:: with SMTP id 33-v6mr10446780pla.341.1521420689024; Sun, 18 Mar 2018 17:51:29 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:28 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 11/13] gpio: janz-ttl: Use BIT() macro Date: Mon, 19 Mar 2018 01:50:54 +0100 Message-Id: <20180319005056.7380-11-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 makes the code more readable by using the BIT() macro. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-janz-ttl.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.14.3 -- 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-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index e9f4612cd2cc..6b9bf8b7bf16 100644 --- a/drivers/gpio/gpio-janz-ttl.c +++ b/drivers/gpio/gpio-janz-ttl.c @@ -18,6 +18,7 @@ #include #include #include +#include #include @@ -33,9 +34,9 @@ #define MASTER_INT_CTL 0x00 #define MASTER_CONF_CTL 0x01 -#define CONF_PAE (1 << 2) -#define CONF_PBE (1 << 7) -#define CONF_PCE (1 << 4) +#define CONF_PAE BIT(2) +#define CONF_PBE BIT(7) +#define CONF_PCE BIT(4) struct ttl_control_regs { __be16 portc; @@ -74,7 +75,7 @@ static int ttl_get_value(struct gpio_chip *gpio, unsigned offset) } spin_lock(&mod->lock); - ret = *shadow & (1 << offset); + ret = *shadow & BIT(offset); spin_unlock(&mod->lock); return !!ret; } @@ -100,9 +101,9 @@ static void ttl_set_value(struct gpio_chip *gpio, unsigned offset, int value) spin_lock(&mod->lock); if (value) - *shadow |= (1 << offset); + *shadow |= BIT(offset); else - *shadow &= ~(1 << offset); + *shadow &= ~BIT(offset); iowrite16be(*shadow, port); spin_unlock(&mod->lock); From patchwork Mon Mar 19 00:50:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131985 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139782ljb; Sun, 18 Mar 2018 17:51:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELux8V7sBWfmsqs2yf9Afyq/Z3DVbOTw2u0Lr1MrprSwiajJArDThztoOa163ZVy7HthAgaq X-Received: by 10.99.94.197 with SMTP id s188mr7540902pgb.363.1521420693201; Sun, 18 Mar 2018 17:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420693; cv=none; d=google.com; s=arc-20160816; b=y8NU9+cMfynY2WSBlUuRv+cNluYJrPmbF63QD+kwTZADSGMI5yfpXIPJxg1744hZ/1 jzawD0sYyno/H0O0V/MWhofpJMy8mITJwkAXzSteFPppEqKd6ulQGj6OPLSDCacWYafO VwYifOzw4QGACjDVp7VeyV8wDWsgkgyjIbQxof2yExb3USa/2LcUgkncQN7MPqa7AzwP ESZ/32Vd91Ayi8U95i8Kgq4smqLCQCLhBf+zSdyNblt9VyFeu5E9FEObhTEYttACaIzZ Nzd5jGNrx7u8WBB4IoI9yGzvOtweRJgp2g5lWYOdn9heNimT5DBX7vYoexhsw3k3zqT8 sh7Q== 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=+7bSV+GwlS9HRPCSfkaLnNnjO97i4WFUN3MoQR+IwfI=; b=LDYIouPRp0phsXIcqITJN4WPvBiN7jnafmiFIvHEoSGOEju1NSFtfze7fL/sGkRCkR IrlG86RpQAHCwnyrUAkz7FqIXDzxHz4HIfmPUDLuwstt5sSusnDv6vmEiGit71+jm+v4 a407MmF9eTTLpQc0XltbIBPo2ZOkaoNZTrdtMMZcoJj5dqGP+LYwLxx/hJGgAMFmLvYL jQKhJ7xJur+oIA2hd0joJmsgD+dTpdE4XnQFo9+szIxSROafsA7vIor+OSWoxMUnq74X rnIpp9ddAX0oWzE1zizPdi1bzC1OQd1lFoBE6dX12er7cGs4K8omJ2tXOMY2kj9rXaRQ 3Bnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QJlrMhPY; 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 z9si4038677pgo.720.2018.03.18.17.51.33; Sun, 18 Mar 2018 17:51:33 -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=QJlrMhPY; 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 S1754809AbeCSAvc (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:32 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:41253 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754805AbeCSAvb (ORCPT ); Sun, 18 Mar 2018 20:51:31 -0400 Received: by mail-pl0-f65.google.com with SMTP id b7-v6so5160134plr.8 for ; Sun, 18 Mar 2018 17:51:31 -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=0qOubw2v2DZVTDOHym+ATf4HKv9qEHX5OCs8sTE5s8c=; b=QJlrMhPYOQdTPeHX0HTsrQd+nVnDA6C1j5vg9RjFlVBprbKcCkuNESn4AqeFAetJvW lOiCThBhrBXsV/5NIEbgS66tAaOAr1rE12kITAP82hxX3Hj8tvOC+mvi9I7QTtgix9vj 0p4UxpMtE5FxSFHKHj/eQxpAOLCAtIQruNtMw= 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=0qOubw2v2DZVTDOHym+ATf4HKv9qEHX5OCs8sTE5s8c=; b=ek7kHqFpEzqiY4mTRVbqBP9SWeGK/4KByexPOtZ1NiIluKpoIzO+vvRsAd1F1Gj2zW HkSWZc2B18jfNQEA4i2GFiPSGjz+BQTo0tOeFvYPeUmqRCbAWeyPTMmeN4RHvWKQs/GY 20cXT3o83ViZDKTVr+k+CGDYp4dEGGhGPEQPnUYIS6osSeyMkBQqTRENKqlCp6PyAZbW ueolb2FaW7JRKVvJ6qr8nvoehv5uzalUF4Q4hDLqflcc9iZrPlGK7LsbrqKH6W/bfS1k 8h8PQkZKq9mUYZrUV7DF/VUKW7HzUGn6LSe0jSxe9VowGj+3G6BM+yOVBcZlF43YRhmb DdYQ== X-Gm-Message-State: AElRT7HaQKPTWhrgv8zmbQZHFYPE2kh1vguDsqpl9tDIAaX08wDeiBmz keKVdMGNSw3/UMcaQoc8L4y2yQ/5Y2FvmA== X-Received: by 2002:a17:902:7081:: with SMTP id z1-v6mr4849989plk.333.1521420691329; Sun, 18 Mar 2018 17:51:31 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:30 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 12/13] gpio: kempld: Include the right header Date: Mon, 19 Mar 2018 01:50:55 +0100 Message-Id: <20180319005056.7380-12-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver is a pure GPIO driver and should only include . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-kempld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 -- 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-kempld.c b/drivers/gpio/gpio-kempld.c index 701f1510328c..7bb96f48ef76 100644 --- a/drivers/gpio/gpio-kempld.c +++ b/drivers/gpio/gpio-kempld.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #define KEMPLD_GPIO_MAX_NUM 16 From patchwork Mon Mar 19 00:50:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131986 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2139851ljb; Sun, 18 Mar 2018 17:51:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELtgp8MKpiydRFY/go3Y61v7twzcZq9eZg52J+BZDvocdss4SgV+GXO8REKYn9BX1eJDWyZi X-Received: by 10.101.93.82 with SMTP id e18mr7589199pgt.371.1521420699068; Sun, 18 Mar 2018 17:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521420699; cv=none; d=google.com; s=arc-20160816; b=T/rFp9IIMlUJ0FuiB0sZB6Wz7pyAszkjFReLXYxA4Z7fniTcBZ/1zolbckaKMaZF62 ruBVbx8X+R5QnZR7QIQLhVjk96tOlyXjaxcncw0Mqa/fvyc28E0/ij5clLtdJoe6OdVy qABi8+YR/bVITDZjUXOQD2i+5TeaKry6EKNvud74vPsy+t9gzU8R50xk3eztba+g6yOo KcaNvw9PEqwDE+72kZDWYR6HLfPeI/KBAMLHWyxcU0BL5HIEwpNExmzOmO9qyIWMtdBO DxpUoHU3B4EOzXyfVRgYs8wg3bpQBZbDSPRkPsSDYfzbfiNS6yRfY2BypZRq9m4yfVG/ baLw== 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=0tz8ENTJXzWLz/6hOan3Ozs5zDl9C7kxdPDBIQ2vyQg=; b=ffWCGE3vSYAtFAFFNsYC0wCp1M9mmpXSwK8nyqrPq/XDS1m126DnBGYAGEs0KKFQIS cWNOv/4o++jRbWmmDdrwHibY11LoxgQmCkTRvX74ha+1R0nAZajxNV8BfCxmVMqfV2H8 EfkDoOzfg8in+0jdTPlExjYFMv59R83xrkMsg2M9d/VjyA+snZiLIpHZ46ZejABcyFgh Z/jMV3Zw7YO3ZBAJHOO4Ana8IPbLcEVHJJXKTGdr8oeiaa7wrMsOUDVemweSgtBSOKmx hyarpv2QT4PqHpV0XKVW3Mji9XB2yCsIlZBI60lWQRyfzP3/bTWaKK8Z/bLsI6HG6FVc 88aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dP6A6aAG; 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 v5si6661267pgr.798.2018.03.18.17.51.38; Sun, 18 Mar 2018 17:51:39 -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=dP6A6aAG; 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 S1754805AbeCSAvh (ORCPT + 5 others); Sun, 18 Mar 2018 20:51:37 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:39615 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754823AbeCSAve (ORCPT ); Sun, 18 Mar 2018 20:51:34 -0400 Received: by mail-pg0-f66.google.com with SMTP id a19so463158pgw.6 for ; Sun, 18 Mar 2018 17:51:34 -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=HvOzfFeOj1sA30u8EEDoZeunfTex3KfLmU6+MAzpjIE=; b=dP6A6aAGWbM2ytKkGL8osgzFTuiwK28fe3a/wymFWIYoFVYehc6crJ+G4MNGs2KZTT A3K/MHwls8kcagQrM6yeXuC8m5/7uTexB3Nkow+KI4FqKkhAR/SezEaWwf3+p1Y6Dqzt P2XnzfQ7Vef3Mm9eRTVtzgiLXTtc94KtTLnK0= 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=HvOzfFeOj1sA30u8EEDoZeunfTex3KfLmU6+MAzpjIE=; b=Rj2FBCJqfGgr+6oI/Ou2xKEv/aJYVj1ju1b+i8n+PORx3jMgefnNYiC1RDLpVfPROZ j9uSsMkunXuPaZk9jePiwM43JIbR3MEYeRBWeejeskWnzuRHUMvFxdmDIRtec8C2fR5k G5D1TWflCJELq5FCtPIj4GbAHzw4mK4np5aq2yI0dvyab389nJz5Ha8lcEroZI/PyO3l Ajn8Z9qR5z298qeoLC6IwWRgJeUQQE/0QGNC4GCnbPf0rOvNuxR88upzz0xNJJUG52P9 grtRRcsZHl9BqTwg/c+a8mgw2sfGKJy1Lkd2AMVyJ5OxodrxZMoi6V8z1RNLHrb2Hpk4 C5lA== X-Gm-Message-State: AElRT7GBcPOkZWzQ8f+kq7G+KEDlIFriyQsJo/T4nM4goS7EgsR2X6Hw j7rhq9z0E303Q3OrlTYR5xQUwGll0fFulA== X-Received: by 10.101.99.213 with SMTP id n21mr4683857pgv.202.1521420693635; Sun, 18 Mar 2018 17:51:33 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id z15sm21766373pgr.68.2018.03.18.17.51.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 17:51:33 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 13/13] gpio: ks8695: Include the right header Date: Mon, 19 Mar 2018 01:50:56 +0100 Message-Id: <20180319005056.7380-13-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180319005056.7380-1-linus.walleij@linaro.org> References: <20180319005056.7380-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 driver is a pure GPIO driver and should only include . Signed-off-by: Linus Walleij --- drivers/gpio/gpio-ks8695.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 -- 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-ks8695.c b/drivers/gpio/gpio-ks8695.c index 179723d02f55..55d562e1278e 100644 --- a/drivers/gpio/gpio-ks8695.c +++ b/drivers/gpio/gpio-ks8695.c @@ -18,7 +18,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include +#include #include #include #include