Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3387146pxf; Mon, 29 Mar 2021 00:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+2ykykdc865oOVDEFK7BXwhKTA/M2D3URKK7bmtZq1+Hg/K11rqaLtlFDZ2CaoMVbd6H8 X-Received: by 2002:aa7:cf17:: with SMTP id a23mr27939524edy.30.1617002418634; Mon, 29 Mar 2021 00:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617002418; cv=none; d=google.com; s=arc-20160816; b=K24xPDtQzBZjbAv5xkXx4FBapjpgMWOE322dtn2NlNvB/MBMeQGTuJ6xRpM7KNWNzL qmgCEE/P5RwVkbm6nbM5ZmETVZwaM9CzVHsUmFOrOzb71OLeVKmkc4lQiOHaK5mqYTIh flwvlX55qZXewDxaiPAEdgl4GmShj67FOLlplDb8j0yk6iyE1sg9mKgO/+fsCSOYW8GA +b5D8hmQhcm5hBJL26rzkOjSDFB2SOTg4PxJylyborQzQC4CPahdT6e0BIRAG1f3loRV yPRIVv02YVJn+PdrH1fFJ8uQrNhqPjH5mpwbotEVW5Mn5uNBM4iYPfb8DMi6wxkGO5kV sZqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ipGIX5vIwXmNlWMmQnWuyNW0ntYcVKs6pD8ajiwAnug=; b=jgdUgO3S1qggC9sDJY03vuhSbPiNzWe2z/GJdv47p7HmDDplrxlQ7UJ86Pa5bGBl4Z jE2TH4Z0WkLQujUO+rx5KVhwylHe03tRcUlKh/GF++H0gIAjfjSbfa96lLF/nwcszzOE o0N5Dz3MuglGMcz+17rWxh/3HKX+adNbZ/Pe37ocyWXCEvNF+Ca2uPVFRk0At+V+xc++ PWu+6racAPhfPn5fcuvTd+g2Nfa88eGkA7YMGuLL+hsHD+ioVPHQUwcdnKVMSpD04l7A cR5RhSxgkdP4sCcz5Aaw7oxBuWt6u6nn6Tr/LPoS/UZnQVvSsJUySDAl56uPWuWc32Lo hGbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="XyZL/W8V"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si7489819edf.408.2021.03.29.00.19.56; Mon, 29 Mar 2021 00:20:18 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="XyZL/W8V"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229483AbhC2HS7 (ORCPT + 99 others); Mon, 29 Mar 2021 03:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbhC2HSo (ORCPT ); Mon, 29 Mar 2021 03:18:44 -0400 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 739D9C061574; Mon, 29 Mar 2021 00:18:44 -0700 (PDT) Received: by mail-il1-x12a.google.com with SMTP id r17so4271852ilt.0; Mon, 29 Mar 2021 00:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ipGIX5vIwXmNlWMmQnWuyNW0ntYcVKs6pD8ajiwAnug=; b=XyZL/W8VaxFDzjFLaaYW/fQo+48ztvKqEBg+KJxrYfBdVANhaJ1U3TLOtlYswRQkap 1lFPil6jY9ZwtJ8qKXZ0AcTcsVOpByWh2kz7E/BcqFWe7/mkw3uOMGgGnqbE0dCsugaZ 248C5uWfZJAcfMnGGkS1Vf/H6ARTbkOnYnNSyHOdC9TxblQ5cUj8qF0I66wSl6CBQnuh e4sV05K0uGcVI0jJ5OsMxNaHBaIYDAWAd7X7i2YWm+VyIpySXjm42YueJxQDKvSOMPJn yuUFAKlp2UB1qx9owUfcR4Gdt56qzzbkkfQP3LkszC879mU9WdQSFGA/loe/Klt+JCbW Gx3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ipGIX5vIwXmNlWMmQnWuyNW0ntYcVKs6pD8ajiwAnug=; b=GjV3cewFIio2XYL6zBd6Kh2u2gyyIfzCZQNbqlKtk/Hkri6JSEhJxbhsygld4Vl2LC FTtpN8c87vitGhqvuKYSTxqojaLIQWMs5Nl3xG8FA87UNl7dqRPKcFzo1MWzmSZ2oFWL 2YkXDL1P9ADfAxcBwzteXIxzY6sSvZixOVRqjCSggcgriFxd1oiRFq5qL9SYJSWiM6W5 y9nWbqCjguVMgqoDpJ4jqlAJDlXE3IgxbTzjAAswKHqqgyJJFPX1CaPSi9coBiLvv8FO MWk3xNFzKimUvRE4qzHA7+PyqiTy8H4V3rE/LLI3p6gSEw186PVwRcz6JBAc1guGrX5P 8cZQ== X-Gm-Message-State: AOAM533a3/tLo54Vp/JLtze1751SbDrzAptsRvZGuPRyu+rZiQ8SJRbP LsFoS0wJdydPzxkIUjovBCkU2ys1ze5ERNGyGFGfMhF+qmFoUA== X-Received: by 2002:a92:194c:: with SMTP id e12mr19805012ilm.292.1617002323859; Mon, 29 Mar 2021 00:18:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexandru Ardelean Date: Mon, 29 Mar 2021 10:18:32 +0300 Message-ID: Subject: Re: [PATCH 0/3] iio: adc: ad7923: convert driver resources routines to device-managed counterparts To: Lucas Stankus Cc: Lars-Peter Clausen , "Hennerich, Michael" , Jonathan Cameron , linux-iio , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 29, 2021 at 12:48 AM Lucas Stankus wrote: > > Following the initiative proposed by Alexandru, this patch series aims > to convert the ad7923 to use only device-managed routines. > This idea is becoming popular it seems :) Thanks to Lars for pointing out that spi_set_drvdata() omission. With that fixed: Reviewed-by: Alexandru Ardelean If you want, you can also search for more of these xxx_set_drvdata() omissions. There were more conversions to devm_ that forgot to remove those. Maybe a cocci script would be nice to find them. But all this is optional. Only if you want. > Part of the driver was already using devm_ functions, so it was possible > to convert the remainder of it without much hassle. > > With that, the deregistration function was no longer necessary and could > be entirely removed from the driver. > > Lucas Stankus (3): > iio: adc: ad7923: use devm_add_action_or_reset for regulator disable > iio: adc: ad7923: use device-managed function for triggered buffer > iio: adc: ad7923: register device with devm_iio_device_register > > drivers/iio/adc/ad7923.c | 39 +++++++++++++-------------------------- > 1 file changed, 13 insertions(+), 26 deletions(-) > > -- > 2.31.0 >