Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4272774pxb; Mon, 27 Sep 2021 13:11:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBuN0Y/x+djPj9sSVzd5KnD379mCHwRrkp9ocmKeGXFmIXQ9vqkOYL2XT10KmpYuDRD4L7 X-Received: by 2002:a17:90b:e0e:: with SMTP id ge14mr1048169pjb.138.1632773464388; Mon, 27 Sep 2021 13:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632773464; cv=none; d=google.com; s=arc-20160816; b=Ol9PT6L7dqO1RxbM4qQvdMdma581xQby7G6FmgKuvEGyv9eLDlxqtd8duXEwG6c9Z/ L+KIk/82a+4ozUAKStRI6WObplYCMpwFmyxWzmGlGVn7U8VBjJFE/COaTDYQzgCbuOuU qvAseAQxrTZALJaLYjRO3hsKyAIs/+J4cdtMho0S328g48MtQlhXxh2TA/oRX58jN6Fz RizWhArxvKyspelpkQt0dx+vwVHu2sxrmX9vgfNg306vcAlkFjuZb6xCJiyyfdwGhzVK K1rRnOsxnckKOGG0RkZlMLsoXeyCgLGUO5IOf6bUcWIB749A7oKWsFotRgcXjXsI1O0j n7OQ== 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=vWCgs3XZtqQ75S4Sam0oUHvtow8EHQKNfWFQPQcnRsY=; b=r64yL8oWDyoVBJFePJ0xCUCwVAvf/UTieMokZ32HPAdfSCofGEd8TxB8ad0Mue9tmy NK8KJnpwqjEqYplMkxUhEa+b4Uhaz+76TYFDrKU7KKdCxu0+GFXfMtDFbCrULvF0EKTG kDZm/eVH2Lh1RwzAh4xsIUIiMIiNJcht51vYFOEcPd2O0i07WjGy8GUTlcnL+5tcvwiN 23NGyh7YphC6ybrDQ4ofvDda8ITikygpcZ6AekMU2qseZZPPK5vPOlZQTz0DNxDp8G4f cWhxCihGzkxsMosXiw8w2HMNW502ua2RctdJaMJFrh4fIAWGsWftj8DOKudinUUoIq+J 8Jew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=CjCqPN4l; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h124si24192143pfg.88.2021.09.27.13.10.51; Mon, 27 Sep 2021 13:11:04 -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=@googlemail.com header.s=20210112 header.b=CjCqPN4l; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236865AbhI0ULi (ORCPT + 99 others); Mon, 27 Sep 2021 16:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236810AbhI0ULh (ORCPT ); Mon, 27 Sep 2021 16:11:37 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59819C061575; Mon, 27 Sep 2021 13:09:59 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id v18so38730528edc.11; Mon, 27 Sep 2021 13:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vWCgs3XZtqQ75S4Sam0oUHvtow8EHQKNfWFQPQcnRsY=; b=CjCqPN4lsrmL/kgXYQ/RxflbFh56hSOKqIeyX1W/oIBfrq4g8nLspVD4sQMrn+40Rh Rx4viRYm7QpwSajB8/nS9I5EnOQAzL0pUBz4lQns538q/Qteac9sWhcfIIrmfsOSKzsU M/PAXh8x8DmXoA/RtTV/ChQhPTk8C8Id1hnlJcijflS84t+U/LfK3VqO+GuY2jbR/wSS Jeouq+xThsOnrcpcRddG2ODCpZRewj156How3JR4A1KMdpDZs7HuWvu3b5Y3uekBZh/f anAzLHdRSEeqsXP37MCrOfOLFAdqYOJXZV5OWmUogHnZBCe+LfWz2FGRBS/GFuXNmIlm 9OmA== 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=vWCgs3XZtqQ75S4Sam0oUHvtow8EHQKNfWFQPQcnRsY=; b=UQpxaWpQs5jfXDlGKB1btQVWc28wYVXarxzaxtg32GTd8vsC/Kbx//jTXHymsZD7wZ zfIMFbP4T7bKaWfg6Eqccqg3GZ7h9DrVwEbI39UxoLdC+QlEMKlyXaZ4xu7tzznnXmlp BGwq7XT8R8OsxJsykn+0K5eD/U55eCpbqbRf/qZXqOE33rtGiOgLRYyAsF+80yauO+QD e27baglC0soiDMeEJxJcKXKvTUIEhstFd+twVDytkXP54EMrm0uxqenO0EMGVfzERXMh KnQfziuC6O/HU/rgSyHFX6jIKtgU/J1YckTUV1jO6iHsJfhtCX/T6cFz76beqOfdKVLM JRXA== X-Gm-Message-State: AOAM531yRwsV0BG+bA4FdIvEGzl9RrNnmzpSxWN3slJxL2xxZSbeCGKw 0illVw72TlpELzMjwlyKt0CIGSDls8VrTKbpvqQ= X-Received: by 2002:a17:906:f92:: with SMTP id q18mr2161486ejj.353.1632773397700; Mon, 27 Sep 2021 13:09:57 -0700 (PDT) MIME-Version: 1.0 References: <20210927081426.762-1-caihuoqing@baidu.com> <20210927081426.762-6-caihuoqing@baidu.com> In-Reply-To: <20210927081426.762-6-caihuoqing@baidu.com> From: Martin Blumenstingl Date: Mon, 27 Sep 2021 22:09:47 +0200 Message-ID: Subject: Re: [PATCH 6/9] iio: adc: meson_saradc: Make use of the helper function dev_err_probe() To: Cai Huoqing Cc: Linus Walleij , Jonathan Cameron , Lars-Peter Clausen , Neil Armstrong , Kevin Hilman , Jerome Brunet , linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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