Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2571257pxb; Sun, 24 Jan 2021 11:56:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhXkiHMz73DTJ00xDFyPwFcC1A97pSUs6XA3hncRRthySW+XDsfEQlZP0lsfxXcXoHyyj7 X-Received: by 2002:a05:6402:4252:: with SMTP id g18mr3085783edb.231.1611518198778; Sun, 24 Jan 2021 11:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611518198; cv=none; d=google.com; s=arc-20160816; b=HO+62QsDw8FfWYBE2KPoLy149N/VImELw+FVnmop+jfFQxkXAbvBQBSc9dNhvT79+n YCFswFaoCH9JOQ/xzf112Z2YPU6WWC3hy+o3Yv7sHm28krcqNQ4bHUC7RKtaYljz2Ipu 0RtiKCfPvrdl3Fezgz8M6Mp5pXttBgYYjlCqimRPMovj1ZyiA4AHw680qTxQDBwW6+cw K+jIuwbl2mhI3Tu+U8PJyNvKqbvEWHTMXe7yxMQ04FxZBRz/swA5SGlDJ02awKS/KLtX ausTB8QjS6v7SU+LDGTPgzHzzRDCR1nnaiZjpIZf26K+mmH+xQxwIeY2ZRq6rfXRQVsU dA6w== 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=Ltb649fO8RUvDMlMxNJBpTVqk8j9NP6KsJDcg7ev6Y4=; b=jE9PZ97e9r9RHR6cgXTF+lnr09zNjR5o45dsDSv4l5WPKmLRg5y8paJ0FLPoommCyL 5vAL/V7IA8E0A1DNBueyxN8Fjdh25xUrRRWRnyydJNw/nDYiMNE5mNQegzfcDLUnJbV5 i6pgYy/ryRftEAlpJAC0UXG2+G21tCqRgE8fgyzLvLu/IRrd1l1OotxblU9LiMJu6dw0 2jvSAvxTsploMKz5DK6yapM5SVWrqN+mpizUB2VUoSvHCHlu9BrLa/Hkh3lfExRoI5nf VgwTf6pKE/kBFRx6BCcTjSv/BPjCfDPRI0gHNBveDY3XzG86M4KqUN1NxBOyBc43xQUQ IEmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JCV5O1pS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si6756063edf.247.2021.01.24.11.56.15; Sun, 24 Jan 2021 11:56:38 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=JCV5O1pS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726477AbhAXTyq (ORCPT + 99 others); Sun, 24 Jan 2021 14:54:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbhAXTyp (ORCPT ); Sun, 24 Jan 2021 14:54:45 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A27C061573 for ; Sun, 24 Jan 2021 11:54:05 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id t6so6311310plq.1 for ; Sun, 24 Jan 2021 11:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ltb649fO8RUvDMlMxNJBpTVqk8j9NP6KsJDcg7ev6Y4=; b=JCV5O1pSwqZq2AVnFfiH+vbw0ZzxLViHrbzqAmhlg+AhbLd5UtFp+2y6R+M4oXRV8h JmGcdYDUaOclT4744iIAHXZkeoHsVjRT8wzXE2wVrZqbl0H7r5WwmrDLCCCN3l4m3G+n WKENMKmvh6ymZpV/8sxlcDADbKpefc4esxNhK/dMcW7Dl7DL0gV3F4tJY9uhXDGH5Dgv 22l0hM6O+nCQLHxxKqqb73AvXRqHA1JAEBa1GJqFKOUhSWDQf/QtOW4DL6xLAsf1NSWj zbRjdTljsrBqgqEegVtL2ayIiat612CrON95QQ7BvfK6htck5N8/ubyCnbSw7uJSv584 mc5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ltb649fO8RUvDMlMxNJBpTVqk8j9NP6KsJDcg7ev6Y4=; b=oXg54z95DUh7rDeeMu/KbOqg8Ewf3cycGs63LFEdFgZtmcPb3HmcfbxRXwp3Y5Un+Q nbQkrl1sIVr4vTZ4AbFxFBfb2JiretCfgqkvpxFrvQizuWf+bIeNo420mAxK3RTLcHuO 5WEUO9c8QyLKrbmGZwWsHck7AW4enrV1cTSRhhI2elYOmbsFS5guG3DF50yWXXa39I26 pc87l32lV2REKAMIFBGKWsLa6lAEIulBvnm6yltubcOoET980F0/gO1+a2giN7koRaGi fgTkZKIrJ8cdRXz73VbQsi6NEwhx9J9a23kE956Eqk4x2gnNs4GG9FTTEfUoqHICwgSx ZfXQ== X-Gm-Message-State: AOAM530hmTeo6SXBwCRLsVtm07KODQJjAkrqYPSiNjIqo72NRhIGzbqp ZGgsK9y/T2qgS0KiQmEhBTb2BRmoU9ef9v94vAU= X-Received: by 2002:a17:902:b190:b029:df:fff2:c345 with SMTP id s16-20020a170902b190b02900dffff2c345mr2435989plr.17.1611518044950; Sun, 24 Jan 2021 11:54:04 -0800 (PST) MIME-Version: 1.0 References: <20210123121313.79530-1-hdegoede@redhat.com> <20210123121720.79863-1-hdegoede@redhat.com> <20210123121720.79863-2-hdegoede@redhat.com> In-Reply-To: <20210123121720.79863-2-hdegoede@redhat.com> From: Andy Shevchenko Date: Sun, 24 Jan 2021 21:53:48 +0200 Message-ID: Subject: Re: [PATCH v4 11/13] ASoC: arizona-jack: Cleanup logging To: Hans de Goede Cc: Lee Jones , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown , patches@opensource.cirrus.com, Linux Kernel Mailing List , Charles Keepax , ALSA Development Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 23, 2021 at 2:17 PM Hans de Goede wrote: > > Cleanup the use of dev_foo functions used for logging: > > 1. Many of these are unnecessarily split over multiple lines > 2. Use dev_err_probe() in cases where we might get a -EPROBE_DEFER > return value ... > if (IS_ERR(info->micd_pol_gpio)) { > ret = PTR_ERR(info->micd_pol_gpio); > - dev_err(arizona->dev, > - "Failed to get microphone polarity GPIO: %d\n", > - ret); > + dev_err_probe(arizona->dev, ret, "getting microphone polarity GPIO\n"); > return ret; > } I still think that using dev_err_probe() naturally, i.e. as a part of the return statement is better. -- With Best Regards, Andy Shevchenko