Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3209378pxb; Sun, 26 Sep 2021 08:18:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyucASTaP4PltTFyXyvCbFzLl2X+uFpc7fjEAi2IGgYU/2hMctlHJsHiT2ZyHxXvMRfd4qD X-Received: by 2002:a17:906:9801:: with SMTP id lm1mr22163823ejb.432.1632669507080; Sun, 26 Sep 2021 08:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632669507; cv=none; d=google.com; s=arc-20160816; b=gvgkjNYLS4dybWUrAwD5UUXQ1GrzoQqRYb2VEWwbO5zEXz8ikrNQUWUNIZXv2xZ3rL qbpLofLLp0znfn8dTN97MCktrnYZgLfjKwTArcjso7FHFV7tnFvuHbd92q1iVMvUi4Bi xCcr4I9r6mvvnhcp36erj3iRPVG37j/eW6eFhkXaRS1DpDLThhtquA0sX+2PrNwl+fu3 eWf84l9OFbL4FGrml69RNLhvDKvReRNqPL8jAMwWXKWKtxcl+Uu0UZVPw0N61Sspxm70 MAn8juVECwyKFCKcoG38WfNmqyq3flexXwtTY3Dq8jrkEMW+Ag9KKJQuYb3fTZIbTeDU oDaA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=+g7+atJVXHj+I0tBjDN3mtGXFxbDwvZFAi41LVeMIv8=; b=yzRAfuiFVGPBJ370LGIJyh7t7y/o6rN/5VBNauTrWLb6chsPp0VsLbEzpO1JQebMd1 +gpDLTZmaBfcxavrb29jbsFeV73GAiopmMGz6qu1i8iQXUP2ek6LZNadJml7KlG78PWM g7/R7AN8NX4iXo2laD9XuEIz8vs6aloDeJ6IkH/eZOJ3Kl+dX7g1Hj84MB1DVVI+r8d+ Nkcbtz+QUY+eRWWHwhvpOnIExzg0FZ9MM1DNCQz2f3AK0V3NKhHsrpvv4svtk5RfRACd viTHypVtYsTcvzpPQLl4RUCXJ+J4MtUBnBRBhp0ZJ60OjkJynytSyGu4jgyHCzpGJzdQ MMrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si16683747ejz.195.2021.09.26.08.18.03; Sun, 26 Sep 2021 08:18:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232013AbhIZPSV (ORCPT + 99 others); Sun, 26 Sep 2021 11:18:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:37312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232081AbhIZPSP (ORCPT ); Sun, 26 Sep 2021 11:18:15 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB74B60F21; Sun, 26 Sep 2021 15:16:37 +0000 (UTC) Date: Sun, 26 Sep 2021 16:20:26 +0100 From: Jonathan Cameron To: Alexandru Ardelean Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, hdegoede@redhat.com, wens@csie.org, andriy.shevchenko@linux.intel.com Subject: Re: [PATCH 0/5] iio: device-managed conversions with devm_iio_map_array_register() Message-ID: <20210926162026.3447e0bd@jic23-huawei> In-Reply-To: <20210903072917.45769-1-aardelean@deviqon.com> References: <20210903072917.45769-1-aardelean@deviqon.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 Sep 2021 10:29:12 +0300 Alexandru Ardelean wrote: > This change introduces a devm_iio_map_array_register() variant for the > iio_map_array_register() function. > > And converts 4 drivers to full device-managed. > These 4 drivers only call iio_map_array_unregister() and > iio_device_unregister() in their remove hooks. > > These 4 drivers should make a reasonably good case for introducing this > devm_iio_map_array_register() function. > > There are 7 more drivers that would use the devm_iio_map_array_register() > function, but they require a bit more handling in the remove/unwinding > part. > So, those 7 are left for later. Series applied to the togreg branch of iio.git and pushed out as testing so 0-day can work it's magic. Thanks, Jonathan > > Alexandru Ardelean (5): > iio: inkern: introduce devm_iio_map_array_register() short-hand > function > iio: adc: intel_mrfld_adc: convert probe to full device-managed > iio: adc: axp288_adc: convert probe to full device-managed > iio: adc: lp8788_adc: convert probe to full-device managed > iio: adc: da9150-gpadc: convert probe to full-device managed > > .../driver-api/driver-model/devres.rst | 1 + > drivers/iio/adc/axp288_adc.c | 28 +++-------------- > drivers/iio/adc/da9150-gpadc.c | 27 ++-------------- > drivers/iio/adc/intel_mrfld_adc.c | 24 ++------------ > drivers/iio/adc/lp8788_adc.c | 31 +++---------------- > drivers/iio/inkern.c | 17 ++++++++++ > include/linux/iio/driver.h | 14 +++++++++ > 7 files changed, 45 insertions(+), 97 deletions(-) >