Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3184166ybt; Sat, 4 Jul 2020 08:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtWgwJH9atiMr2RuHrzduPTU3N1estcjCUcogO7YRMJE3nUFd65BWzzYygPd4KuquX+ai3 X-Received: by 2002:a17:906:40d6:: with SMTP id a22mr38045278ejk.133.1593877436946; Sat, 04 Jul 2020 08:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593877436; cv=none; d=google.com; s=arc-20160816; b=icw4aNFpVJ3bn6cWNGNyzKB3U82jYd+ieWsZSw3tcDyXyKp1SrwYDEvbuCmzw7SZ2v QTFGebk06C/FA5sRyDNvZi5xahcPHklJx6feb48JbFwHsXEgwUhfigqmgYuok3RgGmib qwT8ATaN3/GSyOvxgryIT3IT3iIacgG+5IMwb7AT7IG7E0Ln/10NAQHlg6TUNgDYbVoe 6zqHczXNPc5poSAGXuv4V2yEJynV5PUQOHdqXF/iYRYElK0LD/dgFUwfiBw+DYSSGnMQ nKyWyjm9FfgDM2Zqt3UwvBD1N9yFm2bbllmw8vin2y5xmQdXxuRSRjsh62MTEGBkAMtp jUiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FgoKM/10xE4mftE0YlT2WjNcaQhvMFHTocaadvYxNSg=; b=Ycoj4/DyECys1DbL7/0Z1cyM7/h0McbUVHFB5iHH+nZUgDqOxZOGbFSZkcRFXMwTHz q5YjyQzXu3Z/0yIPIvLSZn1pc97IKZU39xSwdW/tiHjuDyBLysSkHsqQqhOxBgFDcOIn 9jWuyPirZKNgJvZ//5mtpIK1s/YIEwJ1JEQKuLGew+JVlJVKyvj0m0breEJ2ACfjg8Jx CCLMffF07edjCMGDTd3oFXe58w61tq7SEvKolCwP3k5CyHG7ImAlWUTqyvIqHGUbTk0U r3HyYUrPD2ckDhiU9OvwXA76dwvkQQdVuE+0bPLH4z85ZrAkjhlRXgYhNSZRQjLBqSNS o7cQ== 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 u4si11259152edl.565.2020.07.04.08.43.33; Sat, 04 Jul 2020 08:43:56 -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 S1726892AbgGDPnW (ORCPT + 99 others); Sat, 4 Jul 2020 11:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbgGDPnV (ORCPT ); Sat, 4 Jul 2020 11:43:21 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEC14C061794 for ; Sat, 4 Jul 2020 08:43:21 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrkJx-0007Ek-3w; Sat, 04 Jul 2020 17:43:17 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jrkJw-0007cZ-2M; Sat, 04 Jul 2020 17:43:16 +0200 Date: Sat, 4 Jul 2020 17:43:13 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Andy Shevchenko Cc: Miquel Raynal , Thierry Reding , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , linux-pwm@vger.kernel.org, Thomas Petazzoni , Linux Kernel Mailing List Subject: Re: [PATCH v6] gpio: pca953x: Add Maxim MAX7313 PWM support Message-ID: <20200704154313.qjaxtlz62y6kjytj@pengutronix.de> References: <20200503105453.23658-1-miquel.raynal@bootlin.com> <20200703145313.vwjsh5crdqx2u76a@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nbvhjrv6doy6cgjl" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nbvhjrv6doy6cgjl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 04, 2020 at 02:23:09PM +0300, Andy Shevchenko wrote: > On Fri, Jul 3, 2020 at 5:53 PM Uwe Kleine-K=F6nig > wrote: > > On Sun, May 03, 2020 at 12:54:53PM +0200, Miquel Raynal wrote: >=20 > ... >=20 > > > + ret =3D regmap_read(pca_chip->regmap, reg, &val); > > > + mutex_unlock(&pca_chip->i2c_lock); > > > + if (ret < 0) { > > > + dev_err(dev, "Cannot retrieve PWM intensity (%d)\n", re= t); > > > > Please use %pe for error codes. >=20 > %pe is mainly for error pointers, with plain integers it will look > awkward a bit. Yeah, the right usage is: dev_err(dev, "Cannot retrieve PWM intensity (%pe)\n", ERR_PTR(ret)); Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --nbvhjrv6doy6cgjl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAl8Ao44ACgkQwfwUeK3K 7AndkAf/VoVfxQww+BvyjBD+Vd05dYxw5ADB0MHirOdCfxKKnri7eYlXBGfEdlCB /MFlEhNXyr3sKDizZYtutASSaoncUhCRpxPMMWdRLo2B+ABWwbM0g/gWkLOyqDci RDaMvOYHkYSJrKsj05aDUUFLl3LsJP0Pd6Ie2F7ME1FtmElZ6RUL2+16OMEo1Mtu pEKjKy3ekggM4K94GtzboiFOPqf3OtExBCXnsNs8dZ0khSZVQXlrAQnd1WkKQRP8 /i3VZ1Ak0RNWPJkC4zX3OcQC9j4BsvXFmlHpN8raGXhFqkhJlXL10+fYuZLdyN24 z5XiVw9YzHcxhofr+108N7KU3Emt4A== =neRI -----END PGP SIGNATURE----- --nbvhjrv6doy6cgjl--