Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3043928pxf; Sun, 14 Mar 2021 22:52:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziKu0d3cgbtum4SBF2F65SHefW23YeZGvX3nEW4c/GnnHz3qCdCxG0B/XCAP6n1LF+SmjI X-Received: by 2002:a17:906:1a4b:: with SMTP id j11mr21752630ejf.55.1615787545494; Sun, 14 Mar 2021 22:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615787545; cv=none; d=google.com; s=arc-20160816; b=jAuRSdWGqkoqwCtKZmY4ZvtLd5d+UFxrpG0rvhqx8QnHGwaA4nv7B1411kaNMbMov2 ALNSoAkI7/RXFTAHn0fypj3kYuUYjm29zo8K9DDCdhKUkFUNcYOM2g/ZxB0462UxJHQl 7Ds/Pn4O+7pFksSRxhFmvZcZpf3F+4YgzXk5mD9CzMKGUQvMJm3VhPblfPH/HQkh8Vb4 2qhhA2/xGm0iNjZEhgB0wTFBRHOxqGL0Z5MiS/n8sDnoLcUDsBf3+xgM2djDDo8TGUfT U2AiuE04evGRaR1hsy2A7hTrkePBSAicxnSizx6uHeNyKpaMS6Qptag1MSztMQo0Nqe7 V6Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent:date :mime-version:references:in-reply-to:cc:to:reply-to:from:subject :message-id; bh=r4K0u/jpzmh8yUiz5MOhG3v0ej5UbQ2ZoYoYHKWsHpQ=; b=I0kuDpDXxsPMWoVCJaVZ2S5XW7IIGmlZxVkNk2ZY0s703PlinQyknPwB3KarWLfXym 0pNT6ukB9imxrxXaXK5WtB9x2kvz0hByHcIWqbwAswrX4Cr/0qNum+ToD7gA55dN+1+V NBPn+S8ENhXbDO0RnlzpwYTQsSbHZ3p9dTd7OyW19QHOz8Ecc4V/3fLqO+wuEOhuRv+H JevsiTPDtrtQi40Y7d9IzFXzb3/C/n0j8wVEyUdUy06UgBOKH/5AR+AEKQRcZn2U9UIz Siz44jyowxUScf0r1SP/jJxbPGpB4dI57hWLHSvvkEor+x00rz6UqySzrEHh4im3K6BF XiXg== 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 dt8si10354231ejc.111.2021.03.14.22.52.03; Sun, 14 Mar 2021 22:52:25 -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 S229918AbhCOFuA (ORCPT + 99 others); Mon, 15 Mar 2021 01:50:00 -0400 Received: from mail-lj1-f182.google.com ([209.85.208.182]:41900 "EHLO mail-lj1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbhCOFtk (ORCPT ); Mon, 15 Mar 2021 01:49:40 -0400 Received: by mail-lj1-f182.google.com with SMTP id f26so14742733ljp.8; Sun, 14 Mar 2021 22:49:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:reply-to:to:cc :in-reply-to:references:mime-version:date:user-agent :content-transfer-encoding; bh=r4K0u/jpzmh8yUiz5MOhG3v0ej5UbQ2ZoYoYHKWsHpQ=; b=Qu7vMWhmilWVGpEGkHGC5V/yhuuakIg/cgztHNqvQBiPMe8ys06cKIDQSQxyn8rAcr aTmg6q9xyuoMVVvH+L+X2wCD58id1a0fI1QYbARLQuWNPEoxDxUnGhgBllI2Kmzi+U0o NTXr8IYLEigCJma+SFL/OBl1EDVacUg7pltmS6j8/A/e9bpWT5E+fX4dALWyXowgjndX KW+MAaA5r6M/X3D7bd+g5ltWyB8G1mbOnZIlOwYUXphEk7r2Zb78hdF9DKU6tEu08LR3 MO1+amnTRF1MF3CgwXrj/x5sv9W6ZfmzOkwy9K8RXIsKfrT0vrfm2/bgoVRt+6Q7WTBk uZvA== X-Gm-Message-State: AOAM533lnCLj3VjZjlC9tS1d5Pl98i4pVbhh9IDMSlQw5fyTCJo0KIIn m/Zen5LjgCaVKtWpXb2a4go= X-Received: by 2002:a2e:7117:: with SMTP id m23mr9780547ljc.197.1615787378969; Sun, 14 Mar 2021 22:49:38 -0700 (PDT) Received: from dc7vkhyyyyyyyyyyyyycy-3.rev.dnainternet.fi (dc7vkhyyyyyyyyyyyyycy-3.rev.dnainternet.fi. [2001:14ba:16e2:8300::4]) by smtp.gmail.com with ESMTPSA id m24sm2569907lfq.184.2021.03.14.22.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 22:49:38 -0700 (PDT) Message-ID: <53cd571332cd7e941589a25c284fc9e28c69725f.camel@fi.rohmeurope.com> Subject: Re: [PATCH 2/3] regulator: bd9571mwv: Fix regulator name printed on registration failure From: Matti Vaittinen Reply-To: matti.vaittinen@fi.rohmeurope.com To: Geert Uytterhoeven , Marek Vasut , Liam Girdwood , Mark Brown Cc: Yoshihiro Shimoda , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org In-Reply-To: <20210312130242.3390038-3-geert+renesas@glider.be> References: <20210312130242.3390038-1-geert+renesas@glider.be> <20210312130242.3390038-3-geert+renesas@glider.be> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 15 Mar 2021 07:49:32 +0200 User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-03-12 at 14:02 +0100, Geert Uytterhoeven wrote: > If a regulator fails to register, the driver prints an error message > like: > > bd9571mwv-regulator bd9571mwv-regulator.6.auto: failed to > register bd9571mwv-regulator regulator > > However, the platform device's name is already printed as part of > dev_err(), and does not allow the user to distinguish among the > various > regulators that are part of the PMIC. > > Fix this by printing regulator_desc.name instead, to change the > message > like: > > bd9571mwv-regulator bd9571mwv-regulator.6.auto: failed to > register DVFS regulator > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Matti Vaittinen