Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4915437pxb; Tue, 28 Sep 2021 06:53:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqKwNQP4e1ikQUfXAzHMx9E4HixE6zuTMWjEuYpwYvlzbTMdUSxk4lu7o7Kk6GIgMg74DR X-Received: by 2002:a17:906:318f:: with SMTP id 15mr6878716ejy.206.1632837196713; Tue, 28 Sep 2021 06:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632837196; cv=none; d=google.com; s=arc-20160816; b=IaIJn9BOjN3VrWN/E7CK0Lzr3UiDKnMe2HvrJPbN0sD6vQHBE3UTiHIeyzu/Xmgn66 dyTVbu2etYw6G/YbumY6M47s9x3p/M2kxIgDi+jxGGpmnfU03MAbXva6FHAAO73YPXcT Wt8NeQMCYmzidmPZm5skzR9xNFdU+2ChXt9yWYFMH+a6FmbnKSItmzyfXcsHoQpOze00 JNhDzvGzCxPHsOdVwTnDOixYFEfO7Ewp1X5agkSlljjCuldOOatG4UnJ91jMmUZUdRcK PRv8oRuEXyL2u9TovtizXUWpRG+2j04oMsCswUcMC4FLVq+GyI5CmpBD2qn3/RWcy4Hp vYXQ== 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=zKhQNZjOIfjJSyht2FLszmL1D3tP60bcjgnElckVMHw=; b=TC4JX+JnYjDr4KAXGQqhIOjy3W9SqBgRGZhNoVgtJB6kGYSqi42zYaJUjEVQZPT12B WsAuh/93nguv5UHg05JfJfEJzsQhToynwAhFXkRayRco4ksZD/ssZiKAodkiEx7U2kWv yP4+/bmuMQU+F5Z14pwrWy4UGOuLRCOV3Xw8CUbFAsMzpPgzmUDZwamFHnDP5qqrNNXP IcWPx+BqKjxtZ+cAejRU3yNf448JfFeof4/m8msyGjNOhtiRPScqqPzXopBK0LzHkpiY TO93aphUiRt0fOVEgN9QIGetS7Bf8iY0SG50R5RFb5nJoOzhZIJmLvjlbA6jI420D6uc hUDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SWEdIIJw; 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 w13si27501386ede.264.2021.09.28.06.52.48; Tue, 28 Sep 2021 06:53:16 -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=SWEdIIJw; 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 S241057AbhI1Nuw (ORCPT + 99 others); Tue, 28 Sep 2021 09:50:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241026AbhI1Nur (ORCPT ); Tue, 28 Sep 2021 09:50:47 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37811C061575 for ; Tue, 28 Sep 2021 06:49:05 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id e15so93132700lfr.10 for ; Tue, 28 Sep 2021 06:49:05 -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=zKhQNZjOIfjJSyht2FLszmL1D3tP60bcjgnElckVMHw=; b=SWEdIIJwb6X69/Lam+uJXQ6A4Xb8I8sL8BhXeM3sLLTYm81aA3aB2/BC6+HJbIZ9Np WiUtxZii+TvQXkeuNHoLpp/YKiZcjUc3Lma1kF6etJ6fJulA7H1Qa8WOsMnSi5VDacoL /39tpHlEqw4oO0o7g3FG9oLdkaCQxKO7AbQCK6zgWE6ybQxqsB6INHnMLtSrMMXN31zB o9o+clLvDMIS1yiRptqNduVYmZRDoTw+nqRIl1EoKZ08skFyuzAttaoiGBoDTpD6lePa LrrE5kHQR/1R/mXEYc1KOigNq/loDqFZHEnIbM6jnTX4khW1moblBvMKPX9ySC7ZbAnH lx0w== 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=zKhQNZjOIfjJSyht2FLszmL1D3tP60bcjgnElckVMHw=; b=MlklczTH9yZ+Vrxxtzl9bLykeqlYRyRMdiiPxPrMj2iK2lcXV3BYRGziYNig8QVnLO Tgvs0XtRd+NQittMgLa41qWizaUYsArRf+eSMIuFTt7zc4QrPFAY/yL4U4TS9GNCFpIw XSSxFdpiQuUmMF4mtVDclGCjpL04vYMLDN9eb3uX9yyJElOuppAVBEEtK5ZVyIOXXaQH LKO+Tfj/58xIZeV0aRjNhu4XFbJS2SNpim2u8+ea0EFLuLj145Mf7zTzJcOQoBE/Ve9I I3rpdFKtqqV7cIMekrXFsNMzNip9k9trEELCnS6LhD5LDE1b5v2rpc7DESc6vnF8b/hU EieA== X-Gm-Message-State: AOAM532WsaGzG73EFlHfcClVlI9R3LiwU3uqqR9/akc4Oy98b8B/bHGg 00ZYOYAYAEFsAKMCKc0sDvgl8281YJqibELa0sYBMQ== X-Received: by 2002:a05:6512:e82:: with SMTP id bi2mr5737173lfb.95.1632836938527; Tue, 28 Sep 2021 06:48:58 -0700 (PDT) MIME-Version: 1.0 References: <20210928014156.1491-1-caihuoqing@baidu.com> <20210928014156.1491-3-caihuoqing@baidu.com> In-Reply-To: <20210928014156.1491-3-caihuoqing@baidu.com> From: Linus Walleij Date: Tue, 28 Sep 2021 15:48:47 +0200 Message-ID: Subject: Re: [PATCH v2 3/4] iio: light: gp2ap002: 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 Tue, Sep 28, 2021 at 3:42 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 Reviewed-by: Linus Walleij Yours, Linus Walleij