From patchwork Mon Jun 15 15:13:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 206759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DABF1C433E2 for ; Mon, 15 Jun 2020 15:14:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C4F5D20739 for ; Mon, 15 Jun 2020 15:14:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730777AbgFOPOA (ORCPT ); Mon, 15 Jun 2020 11:14:00 -0400 Received: from mga02.intel.com ([134.134.136.20]:34150 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730788AbgFOPN7 (ORCPT ); Mon, 15 Jun 2020 11:13:59 -0400 IronPort-SDR: kyFdwIjaQULowKVED7rSiU60q1lqXPhCGseqmoLnpHwJOGwA8HzFg1+mSwVSbpHEUd44Xf5HIc m3xPU4pY8OQg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2020 08:13:58 -0700 IronPort-SDR: 0esV9ToOCDk3BHf+WogXVvbeDhi1+GLKw41p0So7D1N089Z5y5n4/cUicWtAOqf0MGRlhylSFH Q9oYUcPbzeig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,515,1583222400"; d="scan'208";a="476066796" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 15 Jun 2020 08:13:56 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id EBF57217; Mon, 15 Jun 2020 18:13:55 +0300 (EEST) From: Andy Shevchenko To: Linus Walleij , linux-gpio@vger.kernel.org, Mika Westerberg Cc: Andy Shevchenko Subject: [PATCH v3 0/3] pinctrl: intel: Reuse for_each_requested_gpio*() macros Date: Mon, 15 Jun 2020 18:13:50 +0300 Message-Id: <20200615151353.88194-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.27.0.rc2 MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This is part of previously sent clean up / fixes series against Intel pin control drivers. This piece replaces home grown alternatives to generic (*) for_each_requested_gpio*() helpers. (*) Mika suggested to document for_each_requested_gpio*() helper, and I decided that it may be useful to GPIO and pin control subsystems in general, so, thus it has dependency to [1] submitted recently. [1]: https://lore.kernel.org/linux-gpio/20200615150545.87964-1-andriy.shevchenko@linux.intel.com/T/#t Andy Shevchenko (3): pinctrl: intel: Make use of for_each_requested_gpio_in_range() pinctrl: lynxpoint: Make use of for_each_requested_gpio() pinctrl: lynxpoint: Introduce helpers to enable or disable input drivers/pinctrl/intel/pinctrl-intel.c | 21 ++++++------------ drivers/pinctrl/intel/pinctrl-lynxpoint.c | 26 +++++++++++++++-------- 2 files changed, 23 insertions(+), 24 deletions(-)