Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2925715pxb; Tue, 12 Oct 2021 16:47:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUhHyvS2Jtw63UROvZdNCccURiJyO0Q4MSzjt3vvFWhxSbBbJVPvUx61Vrz6SrHt63TrhT X-Received: by 2002:a62:4d42:0:b0:44b:3078:7387 with SMTP id a63-20020a624d42000000b0044b30787387mr34793368pfb.27.1634082460856; Tue, 12 Oct 2021 16:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634082460; cv=none; d=google.com; s=arc-20160816; b=BUfZjvQVxYSzYjbc/HO9GxbSXMl3CeTyxabPl57Q5vp+sbKpZV1uhTESo36aBpqu5T FYwY7a+gujbtfRKK354MgfqZvSI9FPA+LXW8WrujDKoGYpkrrPtrqsNUUByd0lkYen01 gYKZQdHQM2Il9HXR9B9KvUaO17mfCQbg5wawk5uci7Osqb5Fz/qIwdeRD7Wg0aVcJqws C5invG41Omi3NEkkcXAq7JukDvu7k4kcNJqJP9pACLRSUcq1cw2g9Ltmf5Rbd0fMoe3Y n3GcqLuYglpdt2nmQ2Qu9aQRry5jhiSQN7a2/Jrtpt1MvPIDN748+9e/gcfc2RzJ9UlB 314g== 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=g9QIQ7pA6on+PhPbmC46MmFbUXQiDnzNiglml743kow=; b=kU4e996FqWHQoO3hxwJA2zUqQqr717j1cmQKXEh5Pk5V5Z4+PWMLaw5aip7pK7YYMC I/m0ixLpXIKg0kXf+gIUJ5iOADJ1I0t6sArM1xBFfLukomwT/Mf4A2j2KXwE8Aeo6yAF NGUIYymtAqdsVUX2AtublWtRQPNWZ3hTDWG5jWdSoPlaqP99+jt+/TH0QfSa/p3IW8HF y6buxdtEgze++1hcihPhDDuYc0hxInrAhnEukTVP3krGbuIhiuko9aEcWxM9wTagw6pj emDxXHMM8BXdrI5q5MfxzXZO9n+UxCt804x2TyhCsFyxIvFYC7yOnEyJufIRJO6ntJXJ vCOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k2m1G+Xq; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x16si14850256pgj.261.2021.10.12.16.47.28; Tue, 12 Oct 2021 16:47:40 -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=@linaro.org header.s=google header.b=k2m1G+Xq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233176AbhJLXsF (ORCPT + 99 others); Tue, 12 Oct 2021 19:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236321AbhJLXsC (ORCPT ); Tue, 12 Oct 2021 19:48:02 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F735C061570 for ; Tue, 12 Oct 2021 16:45:59 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id y12so2580213eda.4 for ; Tue, 12 Oct 2021 16:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g9QIQ7pA6on+PhPbmC46MmFbUXQiDnzNiglml743kow=; b=k2m1G+XqaO6GS9hxIV80tHPHDWpZY4uwLvDS+MT4diT5j6QCboVs3PDEau/U8LUwTW A6XepDfgCu5N08ZkIPJxerRz+/JGwOB2tjrirHQZ3McM1QnSir2qAoARulRpYgOvuqCM O1LwpUCr4ooefYltNCvn2LBwWK6OoU+Dw5EIMOUCXR5H6r2e9L/NbA5dpgYyPEcklvTD Q4+Ohi0pI+jnB/Cv6F8uJAUzLDC0me96Wc2TLjhAGe5/KN5CJWGvdEfx0Mi6eGwBQEJT yAzytTfNKk35T700tp2dqkUaZ4Aw9sg11TI+STxlLKa9a0Gae0rkumMyw6d65TYkP+KA PZfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g9QIQ7pA6on+PhPbmC46MmFbUXQiDnzNiglml743kow=; b=bVHoyyrIvYw2ccPmXMl6QmSGWz8rUqLRNXIHXEIMU3SG5DquVCUoeZyMMDUJCoFurl Dm7Pvj+QsZN43U2hu7z5Wkrt5liIlPTyTqPmRQezCnAUKh/jiUgStvDbQ28kSYB5xon7 8PUlJvs/zdAMY0MfuAEa/5SvwS5ktjlJqLePXQagDd89tsFpeECkOEJv1NSQDfQYXpg/ T5mIac3t6iPHMlen4bj+eQHeot3JrS7f+buV45HLZZVwA34XuNFN/Zs+PiQEdRclPMrm YPuDKN0MZ4rgi1J8TPz1Y0OoYx26bvWLrNWEP4C+fBxeVYvhmnkyV5hdI95gx5n2ULU5 jwdg== X-Gm-Message-State: AOAM533vEo5OvsBmKvQAocLAy1QkKC/INxPLYkSYXx8WxdX+lOw88j0v F76MKH2ellyfo2H6jwJPyaZ0F+Dj5Ak2sz6opg1ZD6EI1Yw= X-Received: by 2002:a05:6402:34f:: with SMTP id r15mr2991976edw.111.1634082358220; Tue, 12 Oct 2021 16:45:58 -0700 (PDT) MIME-Version: 1.0 References: <20211008092656.421-1-caihuoqing@baidu.com> In-Reply-To: <20211008092656.421-1-caihuoqing@baidu.com> From: Linus Walleij Date: Wed, 13 Oct 2021 01:45:47 +0200 Message-ID: Subject: Re: [PATCH v3 1/4] iio: light: cm3605: Make use of the helper function dev_err_probe() To: Cai Huoqing Cc: Kevin Tsai , Jonathan Cameron , Lars-Peter Clausen , linux-iio , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 8, 2021 at 11:27 AM Cai Huoqing wrote: > When possible use dev_err_probe help to properly deal with the > PROBE_DEFER error, the benefit is that DEFER issue will be logged > in the devices_deferred debugfs file. > Using dev_err_probe() can reduce code size, and the error value > gets printed. > > Signed-off-by: Cai Huoqing > --- > v2->v3: > *Handle platform_get_irq() that returns -EPROBE_DEFER. > *Handle the lack of availability of an IIO channel > by converting an -ENODEV to an -EPROBE_DEFER. This looks good to me! Reviewed-by: Linus Walleij Yours, Linus Walleij