Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp239891pxa; Wed, 26 Aug 2020 09:19:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNoGi9wQjvtbzNp0mw5gsjwKs1s4pYnm+0fu01qt61uEZpX+bkTf/2Ag9CEaMcXo3h1xSh X-Received: by 2002:a17:906:18a9:: with SMTP id c9mr16341881ejf.294.1598458740755; Wed, 26 Aug 2020 09:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598458740; cv=none; d=google.com; s=arc-20160816; b=oGz4XosQq80RlM9/QQ+LNw3aw/IYcwCIzUho0M18A4iFCvCtofGa06mQksWif+db5E A/HlT2zdceV+T6MxmIoM5Gn0IN4MaWNn2xvp5x2b88OqjbDbyT2R0Ff+rZR+jWXPvEHK Io+qKtQWoZjzt7sBDavE6cmEiW5M1xB7TcU3qyu8zJGe0viUszI6hhuw5P1CQa/g8Y+Q 7RKN/uPsS0R60QEcQaueyn+RId7+j2ImJXEWwbBSS89xJujENP7yRcfBn52eUvrEbvq3 b4C7CfO5CtDW6p6rrrQsiupGukbgKbVqAXSba+AZCY+YGlssLNcIogEr4q+AozHQ+JPu ycew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date; bh=laWDGcI0X9wsLJOKujDeA1CnpKtg4JiaZl3VvU6mRis=; b=KNSpuhnXaxgOykoBCllCd/h5y0nFQCG7R2CmJINDCW3oueUA1aMAOnpJo0Dgi+Wv1y nfjYliJoJe6hTwaeSjEmUn9LFY0dL5cHQO0oj5NromwqEH1X7MOL/0H5G7F2V4cje6/8 fNo2H2YGoHNQdBnANyEOeByWL+t3EPBU5QnxjPJ2hCh3RoLsnrB3nZZxcIfUo8LZImfr RmMSuk7CIAKGhvncxce2R+s7+2rpnF46xNk+AnRb0udV6BLeInjxbX/CK9ScffhDVqfN rX7XpQpNZHj0ywlhjkhiKgYLy2X1+qp4sYhqow0/XsByhn2koVyZ06JMnCeri1aeMNys 2+tw== 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 c32si533264edf.111.2020.08.26.09.18.38; Wed, 26 Aug 2020 09:19:00 -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 S1727846AbgHZQRa (ORCPT + 99 others); Wed, 26 Aug 2020 12:17:30 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:38598 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726745AbgHZQRZ (ORCPT ); Wed, 26 Aug 2020 12:17:25 -0400 Received: by mail-ed1-f66.google.com with SMTP id b2so2248827edw.5; Wed, 26 Aug 2020 09:17:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=laWDGcI0X9wsLJOKujDeA1CnpKtg4JiaZl3VvU6mRis=; b=Yso8pcDs7StuKbqxo7YfPxzXF+ArWOAdQ7s5J3Di2/5xW4VxZjFl1qv8dkjURDPC8x x/7BI+2vIOXPZsAq6S8KKIH/qf1ndtXv7ZQND6vWVGUkRv1OpVkrVcvozih75igf//D3 +KavaylnD8xSwYW5HGiduFpJ44mxm8dsnRKa1+BPPUdGYJa2AqJkWfrvRBVF9f1mbS9N ErIfd5LNCxPhVLcVZ5TnbGCdt3MvF0T3yLSMt7ZHdyBupLGggCOsLYVOh2gdfMa7t+Xg Zmc+U9rpNEOY56msVdCMoW+PEbKYsD/CQAy5lpQDq7S0dvWCvVGqWN3CJ5yyhgtdC3tc B6fw== X-Gm-Message-State: AOAM531ReCFTiMTpgYE9Okec05LEG3e1i48ikCqT65udH8h827LEYa3m 1iRClSdRgAeKAw8lkKmDw+Q= X-Received: by 2002:aa7:d70a:: with SMTP id t10mr12649505edq.161.1598458642874; Wed, 26 Aug 2020 09:17:22 -0700 (PDT) Received: from kozik-lap ([194.230.155.216]) by smtp.googlemail.com with ESMTPSA id p9sm2325797ejg.120.2020.08.26.09.17.21 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Aug 2020 09:17:22 -0700 (PDT) Date: Wed, 26 Aug 2020 18:17:19 +0200 From: Krzysztof Kozlowski To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Peter Rosin , Kukjin Kim , Michael Hennerich , Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , Marek Vasut , Maxime Coquelin , Alexandre Torgue , Beniamin Bia , Tomasz Duszynski , Linus Walleij , Jonathan Bakker , Alexandru Ardelean , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH 08/16] iio: adc: stm32: Simplify with dev_err_probe() Message-ID: <20200826161719.GB31748@kozik-lap> References: <20200826145153.10444-1-krzk@kernel.org> <20200826145153.10444-8-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200826145153.10444-8-krzk@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26, 2020 at 04:51:45PM +0200, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/iio/adc/stm32-adc-core.c | 62 ++++++++++++------------------- > drivers/iio/adc/stm32-adc.c | 10 ++--- > drivers/iio/adc/stm32-dfsdm-adc.c | 10 ++--- > 3 files changed, 30 insertions(+), 52 deletions(-) For this one I have a follow up - I found more of places for conversion. I will send v2 for this one only. Best regards, Krzysztof