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 33D1CC433EF for ; Mon, 6 Jun 2022 14:15:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239477AbiFFOPn (ORCPT ); Mon, 6 Jun 2022 10:15:43 -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-Google-Smtp-Source: ABdhPJzvOYgaZe9iJDCKBu3RdSOxluQVF2VwpiTpr2nF8YwL/LxLzUTel3SnX3fufJcqp+nCcRWFmg== 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 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