From mboxrd@z Thu Jan 1 00:00:00 1970 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 C1DBFCCA481 for ; Mon, 6 Jun 2022 14:36:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239924AbiFFOgW (ORCPT ); Mon, 6 Jun 2022 10:36:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239809AbiFFOgM (ORCPT ); Mon, 6 Jun 2022 10:36:12 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED981257B8 for ; Mon, 6 Jun 2022 07:36:09 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id a21-20020a9d4715000000b0060bfaac6899so2098678otf.12 for ; Mon, 06 Jun 2022 07:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=414Q+sddG1YR3KgC07ld9bq5c8kfHuuN7fWJhAprjG4=; b=WeZ7FVCxuYf5Lj6RSSLppFKvRuxmy4+3OJKXYynkNkXt4mTGaDJyOWQMjCA6mzyQu8 ljaGWAZEC4em8VzNWUsJiy5z/eNy0zMLP39WwPuSBRNksPvlfpEBEm3HbEQubc5dNP1q 3fJ2+uEuCsb1MTWs/j5Wxk7ib9rhVUjtyijkIbjIo/fYy9c2A7dF+8q67RALSRFVFH8H pczMR64UgDszNvNRTQzYRGRpMQiAmOyQNzGcAiCWb8fUABvfu17oXkGJL04Cnml1D6Gu 5y3OSbzrWMaP6LXUZHDW9z6JwKqZy+Hv1ZiWgMJX0jBljB80AkN5b6mFP+NdNDZqZcPr 7naQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=414Q+sddG1YR3KgC07ld9bq5c8kfHuuN7fWJhAprjG4=; b=GbndtVaiYbprmdzgQ+WvIDeRUuRzGL06pY2Y+AUmKAjXfJIEuApA8hfq58MlyLjESC DGZoBnCcs5psxFYHUbWpWv57GPT8RuBrZ4klBC2tI/NdM9SDgzbmAGMVWt9uoag95Ou8 lpcaUQ1zrTusugYzEIs1Wero9ou8I7qBTthgRRLhthRrDCrXP1j8I8XKsLK3DRUQbaEk RaLCjZwLvC7d81Yp95WgzuU8dGfvI8RYCZmh6jaUtAGvgdRK2MpNrHo0DR03Nm9Pjgg2 W0CVEFTzziu9tkLS3xmK2XVTGyObqNOzIIctLQt52mOBygOjkFkz7evrdhEoCcUIl+eF 1rfw== X-Gm-Message-State: AOAM5306q5WJcyrFE7gLJ6Tp8w/7MwQuG4ngvKa24+CKmAskX03SNz2k wKdbIEILhH4ik3bjWCLg8/kUmQ== X-Google-Smtp-Source: ABdhPJyY1pXBGwdS6vY88e/XFCOW/YWfD0n6EgJjbnWbbhelZ7P8O6d2RQHc3ype2mY+oTNeGM8Afg== X-Received: by 2002:a9d:648b:0:b0:60b:c4c6:7dfd with SMTP id g11-20020a9d648b000000b0060bc4c67dfdmr8919077otl.105.1654526169079; Mon, 06 Jun 2022 07:36:09 -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 u13-20020a056871008d00b000f5d4e5b9a0sm6942791oaa.2.2022.06.06.07.36.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 07:36:08 -0700 (PDT) From: William Breathitt Gray To: linus.walleij@linaro.org, brgl@bgdev.pl Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH 0/5] gpio: Implement and utilize register structures for ISA drivers Date: Mon, 6 Jun 2022 10:33:15 -0400 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PC104/ISA drivers were updated to use I/O memory accessor calls such as ioread8()/iowrite8() in a previous patch series [1]. This patchset is a continuation of the effort to improve the code readability and reduce magic numbers by implementing and utilizing named register data structures. One of the benefits is that we can now observe more easily similarities in devices that share similar interfaces; such as the i8255 interfaces used by the 104-DIO-48E, 104-IDI-48, and GPIO-MM drivers -- as well as the similar interface used by the 104-IDIO-16 and PCI-IDIO-16 drivers. I hope to consolidate some of these code blocks in future patchsets. [1] https://lore.kernel.org/all/cover.1652201921.git.william.gray@linaro.org/ William Breathitt Gray (5): gpio: 104-dio-48e: Implement and utilize register structures gpio: 104-idi-48: Implement and utilize register structures gpio: 104-idio-16: Implement and utilize register structures gpio: gpio-mm: Implement and utilize register structures gpio: ws16c48: Implement and utilize register structures drivers/gpio/gpio-104-dio-48e.c | 157 +++++++++++++++++++++----------- drivers/gpio/gpio-104-idi-48.c | 128 +++++++++++++------------- drivers/gpio/gpio-104-idio-16.c | 58 ++++++++---- drivers/gpio/gpio-gpio-mm.c | 116 ++++++++++++++--------- drivers/gpio/gpio-ws16c48.c | 119 +++++++++++++++++------- 5 files changed, 366 insertions(+), 212 deletions(-) base-commit: f2906aa863381afb0015a9eb7fefad885d4e5a56 -- 2.36.1