Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4512043pxb; Mon, 27 Sep 2021 19:54:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFWUJg+6h3dps8QzjjauT3kqG3/6XloqAuSB4eW6UlwheMbV4YN9Btbsb4nqgU+AEnh9yi X-Received: by 2002:a50:9dc4:: with SMTP id l4mr4652593edk.208.1632797675665; Mon, 27 Sep 2021 19:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632797675; cv=none; d=google.com; s=arc-20160816; b=HrauAbE3uaBxZQzeseLRxB4s5OFgC8UgZ5XSQD+uu1qXxuPmtPm/ucdexwJ6ng66eH N/c38t5ZxmPmfRSTKCMcMS3dEatrsmNOhZiQe4Usrbg8tKMY7+h2SbrjO9Dt21iB6C2X GlQc8YrNLC5u9kSudXTWNXQ4WEhrcz/3IjocavnbkCUCvO14Dw5ugPoc8TE1i9qHfOkB AKMJw+f1ihPKo7iZlYpbhAT8juT1nO0cqnpbo2iHA8ngAMOm2OzMf0aOBL7hVVoWL6+K dDxT+0TLECdLqQoHhas/2FTqNJ36/7L86Mdgyhq/OqdkSnUGPvtNbnRaojAtL+lIs82F t0kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=75xDs1Zg3xs6+TkRFxfpeCvLkCeU6/6E7Et2JVpMeIk=; b=JcU+zNGgFALD8I5GbLb8dE+raHcOakZtzqP1wHaoxieqn1vgKG7a7Cg68YlY+W4sHp qC0OjkC1fxsGwBYVTv7O1KWtDDVcnV0K5W8+q1G+Aj8bMVlYO8TdyOdWDghzgdi+bddJ mCMEvEo0x10TWLqnyTdeNq9+rixbW6vbOESGZ8wWlVF/Esx5IEL3eugLdvJDQn0zpI1q w9J/sIUKAPsvjvU1rTQ7s5L0ouC49VIi4t7h+J97G4rfr/Wyb2V/YPjSXJXX2Gma+uzD ZRYPpiBmStFNyyMej6sZGN8DZSmficM5H9WggyU2NHAKIm8oB/g2GnjEyw44RCSRmQeB JQaA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 26si23645442ejk.661.2021.09.27.19.54.11; Mon, 27 Sep 2021 19:54:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238725AbhI1Cvn (ORCPT + 99 others); Mon, 27 Sep 2021 22:51:43 -0400 Received: from mx22.baidu.com ([220.181.50.185]:45848 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238590AbhI1Cvm (ORCPT ); Mon, 27 Sep 2021 22:51:42 -0400 Received: from BC-Mail-Ex30.internal.baidu.com (unknown [172.31.51.24]) by Forcepoint Email with ESMTPS id BE25CCC1775BA3014171; Tue, 28 Sep 2021 10:49:48 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex30.internal.baidu.com (172.31.51.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Tue, 28 Sep 2021 10:49:48 +0800 Received: from localhost (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 28 Sep 2021 10:49:48 +0800 Date: Tue, 28 Sep 2021 10:49:46 +0800 From: Cai Huoqing To: Martin Blumenstingl CC: Linus Walleij , Jonathan Cameron , Lars-Peter Clausen , Neil Armstrong , Kevin Hilman , Jerome Brunet , , , , Subject: Re: [PATCH 6/9] iio: adc: meson_saradc: Make use of the helper function dev_err_probe() Message-ID: <20210928024946.GA1628@LAPTOP-UKSR4ENP.internal.baidu.com> References: <20210927081426.762-1-caihuoqing@baidu.com> <20210927081426.762-6-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex11.internal.baidu.com (172.31.51.51) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27 9月 21 22:09:47, Martin Blumenstingl wrote: > Hello, > > first of all: thanks for this patch! > > On Mon, Sep 27, 2021 at 10:15 AM Cai Huoqing wrote: > [...] > > + if (IS_ERR(priv->clkin)) > > + return dev_err_probe(&pdev->dev, > > + PTR_ERR(priv->clkin), > Is there any specific reason why you put PTR_ERR() on a separate line? > it would still fit into the line above and be below the old 80 chars > per line limit. > For priv->vref you already have it the way I am suggesting there. > > [...] > > + if (IS_ERR(priv->core_clk)) > > + return dev_err_probe(&pdev->dev, > > + PTR_ERR(priv->core_clk), > the same question as above applies here as well > > > Best regards, > Martin Hi, Thanks for your feedback. I have resend v2 to fix it. here https://lore.kernel.org/linux-arm-kernel/20210928013621.1245-6-caihuoqing@baidu.com/ Many thanks Cai