Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp453314iog; Wed, 15 Jun 2022 05:51:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsfl5pZAGTAZ7Nif5jQR6OWbj/o/XuEYNXNRj4WqM8pUv+Va08MplPq/5zdhfNKskKEV60 X-Received: by 2002:a05:6a00:1152:b0:4be:ab79:fcfa with SMTP id b18-20020a056a00115200b004beab79fcfamr9984501pfm.3.1655297467631; Wed, 15 Jun 2022 05:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655297467; cv=none; d=google.com; s=arc-20160816; b=BRixtd9I2atNwindpWyAV7YTpqhkuYzdeVyVYcmMKf9m5ZNKXOpt9vNiTusSUoZxRv ggXg57nwlLTL9E6EcbVrdWYphJ6bzUN5eeBDne2Y7XiZ0TH0862A30ohb15LOGN20n/L byByxeHPRqYQz/8/3s2/oE/3FeLCWnrNqwbEL+B4SF2Zsdzn4B0TmwfeJ3AmvDsRJjPm 8s6RM6O3GfKMrw/Sm+dUMhwMqQpfuu4PAde9ppdlJ0y1Fdnz1NecZeFG4Kr8m71f/TA6 32pBdGvixyUEuCfpMFKnKTHNi7OlKWUMLCl3ai7dGANAdL6AM5C5A3v45iRjbHQh60wF nu/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Igm5tZYG7QF581SklELZumsNm7wuqz0+TVn6nJnUDOs=; b=etn1gUAbGFLERMpwmVym/lAoF27muwFa6U7SsJOBQEvgQPNYefiA/vtaeJmdauDkZu f1mBeLGuTIgSNj3/cAMsbYgrHigEyB2qYWdZ5pfYqI4G0codXzvFPYB6sA2lNDXH6mMV ecezbjdR8EveyiW21DBYi9dJ0T0/1XpjYnv2QRRlze8gbgvb5qT9xTM83CfWsWm3FUNG 3LRDnSB2j62mzhjLcLLqHDxnuUIOQrUgJw7Bww7mrwwFSMWUzGLW63sz9XHkerrhbLUQ DRWAaasg1kmBjW6GoKZyEDtJoxy4bIYD3lJfLLOrcy8EZly2pQjP3Uw+TXosVgH0h8y7 DXRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F9P5Nsg3; 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 i24-20020a17090ae81800b001ea1d3854f0si2362406pjy.81.2022.06.15.05.50.53; Wed, 15 Jun 2022 05:51:07 -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=F9P5Nsg3; 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 S1347649AbiFOMTg (ORCPT + 99 others); Wed, 15 Jun 2022 08:19:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237953AbiFOMTe (ORCPT ); Wed, 15 Jun 2022 08:19:34 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5801F366A3 for ; Wed, 15 Jun 2022 05:19:33 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id l192so6388413qke.13 for ; Wed, 15 Jun 2022 05:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Igm5tZYG7QF581SklELZumsNm7wuqz0+TVn6nJnUDOs=; b=F9P5Nsg3ql3uveTdk+RwkQbygV5xxgm1AKDcwLMc0I+XHHkTXlpTC9GinK6/z8VU++ F1AQMsImyVYXETPACQTTBFIB06A6R6Yos+1ghiz+39i2T1ZddVMThmCMWLlDkcQg5weP DHcvISGY2d4cBB/X6J7AaiyCbj8YZAhDZN/cVGeZub2z/BSMM0eKusMLhO4eNIIGKjTX LbgAmKY4Ygbjq2dNwleLnvzBqY30qy0f/vIz8p8V+P1DAaHJ92jaqjirw73vJbsF2eOo BLqbTZgSMFuLM4xMMizV3Hsb6qKnc/WcLvkqmrYcN738qneoOTi8fCNZ2KyiGqp2ngCT xznA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Igm5tZYG7QF581SklELZumsNm7wuqz0+TVn6nJnUDOs=; b=NAMmvXfrbIvySrb5M3OvwLzlzTFuspEIcbKijYClRRNnosFd9jBA+R+ZIdwqQFx6dL /kgGI1eh/gr4Dp/0cELWrcD5dqW48dtMqX/m5LRSKpTQnfAFNnyaGoB4rYP6iYKi4qIw HmzPGNs88uwVoaz5XmxwGVBUjLu83HxKP/VcesXJQptlzZ2EYHTMsGODiPbdoafuUfix JnicL1xbIq78yjmrwGGNXzLOpmaTND+clNOCQ7OPC4YIiSZqgzEPb85E7HLuMr+FC4ec INpG2rMrgdI2u0m3OH9twQg7EGJDnhXU0L0SXyJ4LaNcIsAiigSLGLd4rYUnUj+jU38y xzQA== X-Gm-Message-State: AOAM531pyvDHfsqkwmdTI8DntdCKKa0hlQQ0xrQllBVsXvOldoZZWGJC K+9S9TGR63y01ttlGWRMZDg33Q== X-Received: by 2002:a05:620a:1206:b0:6a6:8436:526c with SMTP id u6-20020a05620a120600b006a68436526cmr7792538qkj.669.1655295572449; Wed, 15 Jun 2022 05:19:32 -0700 (PDT) Received: from fedora ([23.82.142.209]) by smtp.gmail.com with ESMTPSA id e10-20020a05620a014a00b0069fc13ce1f3sm11747021qkn.36.2022.06.15.05.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 05:19:32 -0700 (PDT) Date: Wed, 15 Jun 2022 08:19:30 -0400 From: William Breathitt Gray To: Andy Shevchenko Cc: Jonathan Cameron , Lars-Peter Clausen , linux-iio , Linux Kernel Mailing List Subject: Re: [PATCH 1/2] iio: adc: stx104: Implement and utilize register structures Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PZrNp5qxT1PaPDhw" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --PZrNp5qxT1PaPDhw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 15, 2022 at 02:00:26PM +0200, Andy Shevchenko wrote: > On Wed, Jun 15, 2022 at 1:55 PM William Breathitt Gray > wrote: > > On Wed, Jun 15, 2022 at 11:44:54AM +0200, Andy Shevchenko wrote: > > > On Mon, Jun 6, 2022 at 4:27 PM William Breathitt Gray > > > wrote: > > > > > > > > Reduce magic numbers and improve code readability by implementing a= nd > > > > utilizing named register data structures. > > > > > > Can we consider using regmap APIs instead? >=20 > > The regmap API may be more appropriate here. I'll investigate and see if > > I can convert this over to it. >=20 > I just realized that this driver is for the old PC104 (like?) hardware > that most likely uses IO ports, I don't remember if we have support > for IO ports in regmap (MMIO -- yes for sure). >=20 > --=20 > With Best Regards, > Andy Shevchenko Hmm, I don't see IO ports mentioned in include/linux/regmap.h, so I don't think the regmap API directly supports it (maybe someone familiar with regmap knows). Although we do get a virtual mapping cookie via ioport_map() in this driver, I don't know if we can pass that to the regmap functions and have it actually work. William Breathitt Gray --PZrNp5qxT1PaPDhw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCYqnOUgAKCRC1SFbKvhIj K+q4AQCyG562pUOu+4/k36DQT2mwPUi0uNM6b5lulZ7bpEhHbQEA4D/hn0cRVqxX y3z7ArocrkHEyGO13JYRmyMq83dcOAQ= =Vdgt -----END PGP SIGNATURE----- --PZrNp5qxT1PaPDhw--