Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp498698iof; Mon, 6 Jun 2022 07:27:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8E9ugzEZMgg2cn/dooKfM0ATuXZFInqRd8UiyV25N5G2yIK9b+zm6mvQbqkPvaRrE2Swt X-Received: by 2002:a17:90b:1c02:b0:1e3:4b6d:4269 with SMTP id oc2-20020a17090b1c0200b001e34b6d4269mr33706852pjb.57.1654525656967; Mon, 06 Jun 2022 07:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654525656; cv=none; d=google.com; s=arc-20160816; b=q2oowK298vzyHn3dZQcNCNYhQU51AvqgqYx6jjiZdbLSxjy9dUZMIFaBP/PuW/jwsG mmhnw5uDf76oIAw3Wav/Lx5QlcluvwW2B76d8RaD2FhOWVqU1gzQdxJThRWzlODDIaCz 8ZdTo3XPPr3Z+VwqdZToRNnQjwndrpIfDeC6PIwp3g5mXsawIjPluqHWXjjQUWlvSYy2 hhwECFKlR4sxMXaiNvYD7c1UVxP1T0m3fg0AYhxeULTv5onckQSZhWdAGW5klIE1+x+/ 1/BqkVTw/OfFKjCuue7O4sdYUcqn+Ojlv6Q46faltBuv3yaW+ALyQgeQgVGuqP+kLDpT W2Uw== 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=HFPPt/n+GC7L3I3lYwZwtJYqMlp4sB7MAQn4ER7tLHE=; b=xc1exYNbid8ozzGii7ICFIqEmPrszgTi+4nwrPryXVcf+69OkxpeCAB1lvcYH4XMs2 mLvp67O3MJx9IXLRITZvcOam2Dwvfjw6xHOBW/+s16smyQjzeycmpoELlHb0QBva687X c6T3mGIXF29ilo8oPvKBnf7jORvviXsJDTwkZ3YS93bTcJja2EAtbz/L01osOrRT4Qlj jOKpaN2Q8lKM3nZ/jXlgadgdpX9+ZWZ+lfgNK8s8AilutKZ79o0HwCFuLBUEo776Ab8k wsY/4A/HuznVmhFD2XK2yeiTFB58gLziOsdmlwpEMSXljpfP3EaQ0nSDwHvzVWX/b7zk yI6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bVlDY6Vi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x64-20020a638643000000b003db74ac9a75si5703230pgd.464.2022.06.06.07.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 07:27:36 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bVlDY6Vi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06F8A2D1C3; Mon, 6 Jun 2022 07:16:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239412AbiFFOPm (ORCPT + 99 others); Mon, 6 Jun 2022 10:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239424AbiFFOPa (ORCPT ); Mon, 6 Jun 2022 10:15:30 -0400 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A07412CE0C for ; Mon, 6 Jun 2022 07:15:27 -0700 (PDT) Received: by mail-qv1-xf2f.google.com with SMTP id el14so10279617qvb.7 for ; Mon, 06 Jun 2022 07:15: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:mime-version :content-transfer-encoding; bh=HFPPt/n+GC7L3I3lYwZwtJYqMlp4sB7MAQn4ER7tLHE=; b=bVlDY6ViZmyAGO0CMS1dX7jnHLAN3Sjy0yQropvvm2Lr1B3viNAgrF0zZAEHZgkoSo EaaH4Y2EEipZNwnn640gwn71RrUbD614LSM+y1PZDe1Zkcki0fhSR/xKHsq0Z3+0fCzX WYnrxoNDXwCoYtl6E85JwIrgXh5fh4fk0+TblSwMVRst1DKOz5WIhzu/4ZEgyDroh/kY xcRF5hQX6F84RSfKLY4lxsSRJxi/XXw+kxAbFYIxgbj0lIIfzFATBquKuMrKx+NdnJLj jHsdNTXc6h+kjWScy6zNy3mf//Si+wZxFzFN9xubZEcyXBV1HrzL3iD2OVR23CWW8qf8 0+4Q== 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=HFPPt/n+GC7L3I3lYwZwtJYqMlp4sB7MAQn4ER7tLHE=; b=opf0JbaRgzvOWUcyM7f7TUTyyn4TOgkBrUYCilNAzM0HuzAuMroXrH/3FKWtIYEvhN wAmAOlLJaLdh8ktv3EzYRev/c1+8m79yw8YNJ6Y78tCoff4Nu6CrM8i0i2gH4Y5WcAt0 GVL11Oq0fuqMclDJ/k+Oy2GkokU2Ax/GajdbzxKecZM/1S3q+3fWd/JJB2XcpIp5PUBU 5zfegG3h43XjLj8JNWiP5AP0YxF3HJNY2EHjux2LeqHFst8YRbIzr7y13RUV/vLJcvOn e54vuog+BEzXIq8D+uDf3m13t8v1hOJ0MbWPwIXSoeoeXzF9I1RFOCbfIQ6ZW2P0DLiA a+Fg== X-Gm-Message-State: AOAM530VsOIJo1J8He/ewSfUsTWxn4OSFqc+iR8lbDLESkftkgG70ewT vz6iFWUcD3wl2fbY+kUDzPo9Dg== X-Received: by 2002:a05:6214:21eb:b0:464:5c48:4bc8 with SMTP id p11-20020a05621421eb00b004645c484bc8mr17346514qvj.23.1654524926468; Mon, 06 Jun 2022 07:15:26 -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 c15-20020a05620a268f00b006a3af1bd183sm10335086qkp.127.2022.06.06.07.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 07:15:25 -0700 (PDT) From: William Breathitt Gray To: jic23@kernel.org Cc: lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH 0/2] iio: Implement and utilize register structures for Date: Mon, 6 Jun 2022 10:15:16 -0400 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The STX104 and CIO-DAC drivers were updated to use I/O memory accessor calls such as ioread8()/iowrite8() in previous patch series [1]. This patch series is a continuation of the effort to improve the code readability and reduce magic numbers by implementing and utilizing named register data structures. [1] https://lore.kernel.org/all/cover.1652201921.git.william.gray@linaro.org/ William Breathitt Gray (2): iio: adc: stx104: Implement and utilize register structures iio: dac: cio-dac: Implement and utilize register structures drivers/iio/adc/stx104.c | 70 ++++++++++++++++++++++++++------------- drivers/iio/dac/cio-dac.c | 24 +++++++++----- 2 files changed, 63 insertions(+), 31 deletions(-) base-commit: 7fa61f7dba74f6c5baf9f02b760924692acdd282 -- 2.36.1