Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1622991rwl; Fri, 31 Mar 2023 14:08:11 -0700 (PDT) X-Google-Smtp-Source: AKy350anKFRUPyzhr9xqG9XJ5WVJp9f9+YYtFW1LUYEWB/SIEAI38/r83JtcOLSGGohBd8mrcucn X-Received: by 2002:a17:90a:bc83:b0:23f:6872:e37c with SMTP id x3-20020a17090abc8300b0023f6872e37cmr7012224pjr.0.1680296891540; Fri, 31 Mar 2023 14:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680296891; cv=none; d=google.com; s=arc-20160816; b=lsYDqqujoD6HeEk3VFe9T94jdh3I6to//23Fi1Gw5VafhOtiDBPNU7SWvzafEk9ohn yi6MZ8RE6KiUGqcJAXuoaC/2GdLKXYBfK9g5BGtxuH9gtmaARXjUBZaxdB/WKAYqEIz8 zY0sG9qGmifZzfTIfR10TpBdcui/cbqoDbLn1Ie6gLoZn4CVnlnoiesXkF+QC3ROb+s8 rLo9IGA5N/IimH90P0XgX9FPACb7W0cw/SVotadbbLV4jEbE6bgIMvQA3vZJPxxM1ma7 WV6vuqDgMnPkoexl3dMx0HBNmaCV8E1uEaeZXQl7BxBBOZjSJ8pHzHII3ws6qXDb5eQP HuyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aHpsEXh+XpAxCWpr3Cte+htUGysO3Dti3H2d6IAR4mQ=; b=xg6tSLrcOetz+TtiY3SsdHIm9YRziBpaSQe9tcvLyLZPuYHz1t2fcvWtcgZDOfNzhV WtC6LJ/g10Tq6JV6fGMXnKmtkn7EUU9Yt9tYbJrRHFVJxFiBkJ130r+pRzLjzj8nap8q +gqukbu4JFXFVDp7Gx54E+DzoA4uvlTHQ69qZhm1UiA4EGo18/Fs3PSwt+fUIxwlNlzL ByWQdY/qgq8hRBIVe8XFSp/foljBLtph/AEu11RxoZLwXOqhHYf+S9HhPeWBCNyIqKxM ZEXyim49E56guoZLkUQmSG2vJljEY9wIc0jfUKN3au6uHVHfhy7TjIeZlYqdDRQpcsu8 U16g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z4ek3ta9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a63ea0a000000b00503011e4f27si3110556pgi.869.2023.03.31.14.08.00; Fri, 31 Mar 2023 14:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z4ek3ta9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231879AbjCaVFt (ORCPT + 99 others); Fri, 31 Mar 2023 17:05:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231770AbjCaVFs (ORCPT ); Fri, 31 Mar 2023 17:05:48 -0400 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4370F1D2C9 for ; Fri, 31 Mar 2023 14:05:47 -0700 (PDT) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-5463fa0c2bfso107903007b3.1 for ; Fri, 31 Mar 2023 14:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680296746; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aHpsEXh+XpAxCWpr3Cte+htUGysO3Dti3H2d6IAR4mQ=; b=Z4ek3ta9kJismkwrHvPkAUPaJCY9tV54tEwL206CX5GwX8XY03fQL3dyFDV44NwdJo GEZGbb1ILRyF8xuGH4LZbu+RpdW1dNPvMpnOQVBT5GYxHUoPjOmSubckNC7/LHVRLffR PlDgZLYPTjpuruZGXpTMNiw7+kxKNLakEG62NAfogZ4MOW3DUPN1ZsMw9oOeqVgNVRJU UzN7FvvQJGrtaQPbxQXCCfrRefH2XMt+efoSlIvi6R/GPrF/4Ai3NdRvdGkwpSVN9dIq FRtPCtk4bryAD/BSjqe8tSwN46Q+ia74zr3HWnvj7xJbr8x6JIaHo3z1V6Vp/QkHX9GV SzKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680296746; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aHpsEXh+XpAxCWpr3Cte+htUGysO3Dti3H2d6IAR4mQ=; b=ZzIcl9xku+X/GvjaB1m3opYPIzXH81sxw3S5i+b5t34H6I0tqHn7l1BVSDWF7L4x26 SQRvRdQ9o1LpoQxwS7Uvz6SvxwNt3OltRDfj73NGHniC+AV5SNbQsvxYrEag/65Prz0B ef4UfJRcs37PkZ1W9ngFdW9T4RPET2p2LRBkh00qgJvxbkAyga8iXCBTEimZOZUcRs7D TN4Su6WOpE8jBwl0d5758GVk61btL0/9bVb+yAAQA7AlJgfsZsUJQK9QvYwuHPvlXgLb P1Ag2RwinBFkICQoVs2A0VuOXsW3stAkbzyveILyIDAc1i0t3YacDfj0al5/IgKl/p8M ME4w== X-Gm-Message-State: AAQBX9dIbRACuE2p1mmZ4aGD3me/3IXa9qS7vJigOmq3roOPSCC5wVvt j9Si837uzTWX9PWDFv3AvDvhng== X-Received: by 2002:a81:5549:0:b0:544:85d9:ae38 with SMTP id j70-20020a815549000000b0054485d9ae38mr10122387ywb.13.1680296746455; Fri, 31 Mar 2023 14:05:46 -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 q70-20020a81b249000000b0054601ee157fsm751990ywh.114.2023.03.31.14.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 14:05:45 -0700 (PDT) From: William Breathitt Gray To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , William Breathitt Gray Subject: [PATCH v4 0/4] Migrate IDIO-16 GPIO drivers to regmap API Date: Fri, 31 Mar 2023 17:05:22 -0400 Message-Id: X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v4: - Remove superfluous base check in idio_16_reg_mask_xlate() - Format idio_16_names[] to 8 GPIO per line - Utilize dev_err_probe() in idio_16_regmap_register() The regmap API supports IO port accessors so we can take advantage of regmap abstractions rather than handling access to the device registers directly in the driver. The 104-idio-16 and pci-idio-16 modules depend on the IDIO-16 library and are thus updated accordingly. By leveraging the regmap API, the idio-16 library is reduced to simply a devm_idio_16_regmap_register() function and a configuration structure struct idio_16_regmap_config. This patchset depends on the "Drop map from handle_mask_sync() parameters" patchset [0]. [0] https://lore.kernel.org/all/cover.1679323449.git.william.gray@linaro.org/ William Breathitt Gray (4): gpio: idio-16: Migrate to the regmap API gpio: 104-idio-16: Migrate to the regmap API gpio: pci-idio-16: Migrate to the regmap API gpio: idio-16: Remove unused legacy interface drivers/gpio/Kconfig | 7 +- drivers/gpio/gpio-104-idio-16.c | 286 +++++++------------------------ drivers/gpio/gpio-idio-16.c | 254 ++++++++++++++------------- drivers/gpio/gpio-idio-16.h | 79 +++------ drivers/gpio/gpio-pci-idio-16.c | 294 +++++++------------------------- 5 files changed, 289 insertions(+), 631 deletions(-) base-commit: 4ea0c97776bf8c63805eb0f8182d9c20072219d9 prerequisite-patch-id: cd19046150b7cff1be4ac7152198777aa960a3df prerequisite-patch-id: bd3e3830d9ce4f3876a77483364d7190b7fdffa7 -- 2.39.2