Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1033329rwb; Thu, 8 Dec 2022 06:05:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mZi887mHgtELDZY4o8ruwt5dpACIil8vtTT+2/xMBgy8uYaww2WtPOhMerBGwsTnjdire X-Received: by 2002:a17:902:7609:b0:189:3438:a326 with SMTP id k9-20020a170902760900b001893438a326mr77615524pll.127.1670508351758; Thu, 08 Dec 2022 06:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670508351; cv=none; d=google.com; s=arc-20160816; b=ShzoCONBmwMII49568VzVhAt/w7FV/8k4vGzF53RlI6q1ZaT2lVp6QRJItxeo9wD8g oNcDozaeb4kSV/YPtT1bgOOtcntsj52acHwqiq4r2piL9d2TaPHyJ3KhsSl3mxL3e/Jp HpM9vDh2oZxzf+2nNc9PETGjdIPsbqeZNzuv7d1Hvwv2cXmvougqzdI29Tsi1+L2t91g gy1vDb6zGBO7HMvM3/MYYHIfSI6SQPTQMWVhTBm7x4GKcFywq2fXnm/tY7/vbNOBGFSO ubeNj2cpy/iZqSRlBMrU5Y86d+jrVvo7OjNhgXtvlD/E9WFJ8Y4pqeF46DCxXWcN6SmT SCjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Y5UPbylazMiOOpGnnf2n57DReE5kKPuySglEpvnshbc=; b=etFFp/DQUqT4AI0E5n/V7q8Cwv0+Bmj03+cN4YC3ln/hU24QNDN/F67iaU2+Zy9XwV JycK+3h5BuLMOrDA8mGE73aKJmrOEyVwbMgMY0kUmDbTGeF0ixWemgr5rg0raOeKBWJb auFcUtHXv+dwfiLL4WFqVziCmJxFRaekT3NDynbSaiwCX2eBExQIlbu1Q/iGElUFifAM vTdKIzcvSEImG8zvsfyRO6MSV1p8nC+GP2zRfxYeB0AM/vvet8iK5jxJPthUk3iw+XCi LuNlzfOlkPVq/NWVtgFO/8WR93bgVL9Y+8NJCKqBew+bTgH9WIYB7jTDS+xjGwJ4Akdy AUIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p2RYVV7m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x204-20020a6331d5000000b004778463363csi23442730pgx.76.2022.12.08.06.05.41; Thu, 08 Dec 2022 06:05:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p2RYVV7m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbiLHNxw (ORCPT + 72 others); Thu, 8 Dec 2022 08:53:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbiLHNxv (ORCPT ); Thu, 8 Dec 2022 08:53:51 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6313837214 for ; Thu, 8 Dec 2022 05:53:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F3FDD61F23 for ; Thu, 8 Dec 2022 13:53:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E3E9C433C1; Thu, 8 Dec 2022 13:53:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670507629; bh=UFQfRk1vno7SOJWjl9cbkzX7RqM//nccHk5UmmdBsRA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p2RYVV7mpy7vFXjesp3hKa50RyAYHP6xR6F/NCvGl/FGqULl0p6i2rTwvIcjAwsOP 5mOYkZ5TjnrzZVQw3qvL+nXNfEgc/g1lXsBBGX5FjGUIbWSF2r3fmGBUbkP7Nooa5z y3tHxBmTLtF4F1KVpS6NcqtBL5yC3qSziMChs6NSw7up0v5hMTbxxNdK3/7PCkVu+4 VT4/VvtU4e6CtMogRye0IpRanYbfmfGXy5tu8bnTJigNJYFOUuNLuabP0ckoLqhX98 A3ONv+/bKRMdIsH69z9JfvaTt7BPhKLf384A6yhHX17SrQF1JTNZ2pIpI50jGNg5aU Ju7098aDnZ1iQ== Date: Thu, 8 Dec 2022 13:53:27 +0000 From: Lee Jones To: Matti Vaittinen Cc: Matti Vaittinen , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: rohm-bd*: Use dev_err_probe() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Nov 2022, Matti Vaittinen wrote: > The dev_err_probe() has (at least) following benefits over dev_err() > when printing an error print for a failed function call at a device > driver probe: > - Omit error level print if error is 'EPRBE_DEFER' > - Standardized print format for returned error > - return the error value allowing shortening calls like: > > if (ret) { > dev_err(...); > return ret; > } > > to > > if (ret) > return dev_err_probe(...); > > Convert the ROHM BD71828, ROHM BD718x7 and ROHM BD9576 core drivers to > use the dev_err_probe() when returned error is not hard-coded constant. > > Signed-off-by: Matti Vaittinen > --- > drivers/mfd/rohm-bd71828.c | 23 ++++++++++------------- > drivers/mfd/rohm-bd718x7.c | 21 ++++++++------------- > drivers/mfd/rohm-bd9576.c | 17 ++++++++--------- > 3 files changed, 26 insertions(+), 35 deletions(-) Applied, thanks. -- Lee Jones [李琼斯]