From patchwork Sun Sep 11 20:34:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 605155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 219A9ECAAD3 for ; Sun, 11 Sep 2022 22:03:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbiIKWDx (ORCPT ); Sun, 11 Sep 2022 18:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbiIKWDw (ORCPT ); Sun, 11 Sep 2022 18:03:52 -0400 Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5A1E240AE for ; Sun, 11 Sep 2022 15:03:51 -0700 (PDT) Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-127f5411b9cso18802638fac.4 for ; Sun, 11 Sep 2022 15:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=QciXyEtl0SG2sFGkjdrqOCkJJthnC/gW3bZjn86sQs4=; b=nedOYSluEe/44mthiiwXwA1U+s+w585VU+/rvGTWb2MVLxhVMCOtmFyFNWm5Tx4nrs Y/VKNMFavwPbWQ/bofYNMUUJPmD3kZOTVO+aYqiQKDGGnLt0DiW/E6TXIIQAfb1hfnC8 Unml1Eyq/Z0zoF94XBmzFCALmSunHjPbqpVcgCEnWIDLogM+TohnaUANarxzJh/HQ3C8 c3OVSevJPkUdg3+l7n4xSg6hddlARLnc4NjToD2DgM8ilRTeFDmTVoXS/Qkgq5iPq4S1 ne7YFDXwa2QQW1WmawvHd059Au6Qxg9S7kwvrMK7AfmK7MLWZ1ZOx/Xa7bgGzMDyoUKB jqLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=QciXyEtl0SG2sFGkjdrqOCkJJthnC/gW3bZjn86sQs4=; b=mxa+tFNTTFOGMJMqZp0ABjJRMuD1y5jGBnczTaTkwff4hvU4oVQLsYxsywRLFmH0Sb wpTeK72JUPA6SwrY6z2QfBUdvBzbn0melHvRERdZpYTpCSJUbC4uAZaahcYpeGNC0pLu 493GoySOAC3LPF6fDtkX7i85CtmJ/uKMIEDDoRibvPiJgGznCrsNIOX3lIlFB2/T3LLh TB8huDYLLGuilRFk3pQD+Tu63O/bgGWCmcR6kfvwuc40P65NAQjeOXbrJGnuAUxL1gDT ewf8kVoDJV6Cj2reQd+Lrzrv/6+ag/f9DbaJq7t02jA3udcARFYCuQOSfnuKE+gHuXnz kgig== X-Gm-Message-State: ACgBeo2zcQZRjrSvFQku2O/OkmnQ+ZMYeYBV1EPmzZjfHRT22kHx0ce7 dKaaBshbwBDR3ezsWm3rDuADZw== X-Google-Smtp-Source: AA6agR7M8OWqYsVeZuV7IzoTsnUUDdXizBgkugpQqrzObWrhOry54eJ7h10jSDTh27LUPjKoUGD+6Q== X-Received: by 2002:a05:6808:201e:b0:34f:7d7a:3017 with SMTP id q30-20020a056808201e00b0034f7d7a3017mr2927903oiw.219.1662933831071; Sun, 11 Sep 2022 15:03:51 -0700 (PDT) Received: from fedora.attlocal.net (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id r19-20020a056870439300b00127d2005ea1sm4664249oah.18.2022.09.11.15.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 15:03:50 -0700 (PDT) From: William Breathitt Gray To: brgl@bgdev.pl, linus.walleij@linaro.org Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, William Breathitt Gray Subject: [PATCH 0/3] Introduce the ACCES IDIO-16 GPIO library module Date: Sun, 11 Sep 2022 16:34:37 -0400 Message-Id: X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org In a similar vein as the Intel 8255 interface library module [0], the ACCES IDIO-16 GPIO library module is introduced to consolidate much of the shared code between the existing 104-IDIO-16 and PCI-IDIO-16 GPIO drivers. The idio-16 module exposes consumer library functions to facilitate communication with devices within the ACCES IDIO-16 family such as the 104-IDIO-16 and the PCI-IDIO-16. A CONFIG_GPIO_IDIO_16 Kconfig option is introduced by this patch. Modules wanting access to these idio-16 library functions should select this Kconfig option and import the IDIO_16 symbol namespace. [0] https://lore.kernel.org/all/d1a24895f2ea67f689c24c34a20ddb43cd7246af.1658324498.git.william.gray@linaro.org/ William Breathitt Gray (3): gpio: idio-16: Introduce the ACCES IDIO-16 GPIO library module gpio: 104-idio-16: Utilize the idio-16 GPIO library gpio: pci-idio-16: Utilize the idio-16 GPIO library MAINTAINERS | 6 ++ drivers/gpio/Kconfig | 11 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-104-idio-16.c | 91 +++++------------- drivers/gpio/gpio-idio-16.c | 159 ++++++++++++++++++++++++++++++++ drivers/gpio/gpio-idio-16.h | 70 ++++++++++++++ drivers/gpio/gpio-pci-idio-16.c | 119 +++--------------------- 7 files changed, 281 insertions(+), 176 deletions(-) create mode 100644 drivers/gpio/gpio-idio-16.c create mode 100644 drivers/gpio/gpio-idio-16.h base-commit: 3af20d2723be5f70e1ce818504a4c093a81b21f5