Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4915236pxb; Tue, 28 Sep 2021 06:53:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytkJ2d7Opdcc/hpsmrwpLcvkAakKnelvgJ/mc75RFXck5Jb4ox5JCTZICIyz53XZBTWA79 X-Received: by 2002:a63:4b63:: with SMTP id k35mr4701486pgl.206.1632837180405; Tue, 28 Sep 2021 06:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632837180; cv=none; d=google.com; s=arc-20160816; b=rBjBSgiVWz3oFHG5SmmHAkHSfHsWBl0teOv3WB9qvrAMS2+f5YdziA/EOeo+WqJlaK gYN19YSnnmd7YAzk3KqFgkdAFcSKe1AIsePg4qD+vipBRSvG/pJc6sch3MBg1zab1pXk 7fQCGGICG7IYY1l0CmdBATgutngiMnz8X9wlh5k1M/6QqdJEDe2C2kR0PiMBatdBT0He GEfByDdiyxkwUD3RKVHw4JnaOAlkYgDXWC5RUS+wtcYpETon2DmNtalqqsgQFzUeq5XU XrSKcYQ0hjDmpnY/7aoF16bl8ueQXkmwQlNgE8Ceu+Jx4GGG797oSuBfDsEzAjfeBHA+ khTQ== 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=hqwz9jzyEQV5H4SW8S/gf8kyYKDVCl9EoNAa0kvGs9E=; b=JwbwSa9/c3tA64tOWBBZ2MCObJbkW/daNh45j1a6dDKHEPK4r3bWkqyaPP9vO3wjxa KCpNr6AhXmjUC81hP6e3KPZHnP4oEA1Nxr/1wj/S4dtyfOZVlyRWNBBb7h+DaY2/Hx5T /n6NUdNP+lozHj5CeDB4uy81w8Ydhjsz6nuOz4tDwUsm081lDyLln44bXNj0/KUb4uhN z1LjJBctJ7WE1REQY0tSY7WfiptJ7cDUYvvw6DgXOKKA9otBPrJfzrIdY7jWnoo5vRAN 30VEK8yzisH/DeYprGPa4Er1ACvtgY0lwWI8cgi0k9k87V3feC8UK15g93teA9bfFjWL ts3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lK1N+HWc; 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 e33si28610944pge.288.2021.09.28.06.52.45; Tue, 28 Sep 2021 06:53: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; dkim=pass header.i=@linaro.org header.s=google header.b=lK1N+HWc; 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 S241093AbhI1Nwd (ORCPT + 99 others); Tue, 28 Sep 2021 09:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240979AbhI1Nwc (ORCPT ); Tue, 28 Sep 2021 09:52:32 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B941C061575 for ; Tue, 28 Sep 2021 06:50:53 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id y26so53622975lfa.11 for ; Tue, 28 Sep 2021 06:50:53 -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=hqwz9jzyEQV5H4SW8S/gf8kyYKDVCl9EoNAa0kvGs9E=; b=lK1N+HWcCfWtNCrGgY4s6GgX9CsGhnRcYX4lqPYKVXVMLm9dFqGOmTWH6W7yDgrYlP r5EfG2iKtNsCiPEpu2jIIZUO/prlSrOSngipvA1TaZXN//4VkeA+JwIztwUCHInTjF+X dIEeqXK9vl1zabQddSGCMK/1z7p7VHD0/EGwo/HlhXJ3zAduBt5JgEYfTeOMBww2Fp7C uuEQ+v8uMPilV3Gj8rG9xjCBY2Z3AgQB7zHz7LAOKEGK+E4GoP5y67eAshWxmcfY0b/C tbJ5BllnohxxoWYH9FNEsSkrxF7kZTx9LML4VnlI/nkZyyXKBdokKSpCUGceySjEP260 j7fw== 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=hqwz9jzyEQV5H4SW8S/gf8kyYKDVCl9EoNAa0kvGs9E=; b=L09M2dUzrk5ZwkdBAW4PYssrqBviUApigE/9gzDsPSaXQ8tdlZzDOdmht/tPkCPsT0 4ktFjrNMdAw464f7y/huwsr0OTPr0foZuFbTc2Miy+CImGgYkYQtk++eF4b8Xxm35t+m ERrFSpAtbkFg839bqCh6xQ2r0UFwkl8l21MYEezWz/WgUyH1deTIn3IOKvmhPrk/Rjvy hZ7KPcYAGGNMaUQ765u1ArRfQBvaKfOEupjazUPOHMH09LLOXz7f0SEGaSUh77fR74LJ 8giXGaJDJnhWKNweof9/8O24UtqcvK4XikWTpSLhwKzMbUstU8SJwcuqO6Z9cZteiqcB 6UJw== X-Gm-Message-State: AOAM532XmgqttqXn82CD5yMTEYFymxhHz+G5H9VoQgP4y015F1qT0zkg Rk//Jw3H+tc0qaRERATQGV4l1+Z+LYZNAkUt++S11g== X-Received: by 2002:a05:651c:4ca:: with SMTP id e10mr43638lji.259.1632837047280; Tue, 28 Sep 2021 06:50:47 -0700 (PDT) MIME-Version: 1.0 References: <20210928013621.1245-1-caihuoqing@baidu.com> <20210928013621.1245-7-caihuoqing@baidu.com> In-Reply-To: <20210928013621.1245-7-caihuoqing@baidu.com> From: Linus Walleij Date: Tue, 28 Sep 2021 15:50:36 +0200 Message-ID: Subject: Re: [PATCH v2 7/9] iio: adc: qcom-pm8xxx-xoadc: Make use of the helper function dev_err_probe() To: Cai Huoqing Cc: Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Vladimir Zapolskiy , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Andy Gross , Bjorn Andersson , Heiko Stuebner , Linux ARM , linux-iio , linux-kernel , "open list:ARM/Amlogic Meson..." , MSM , "open list:ARM/Rockchip SoC..." 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:37 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 (...) > - return -ENXIO; > + return -ENODEV; Why? I think it's the right change, but should be in the changelog. Yours, Linus Walleij