Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3029774ybt; Sat, 4 Jul 2020 04:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6uqab4Zzvn9BJ0MKYze6cOQPM4ybuW9HmFOMbxCKVx729OS/OcQA3+Wtj22COAhTgv2Kb X-Received: by 2002:a05:6402:1c0f:: with SMTP id ck15mr43618171edb.155.1593861840040; Sat, 04 Jul 2020 04:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593861840; cv=none; d=google.com; s=arc-20160816; b=AIgvcMHVS4OGaFwToIAIGV/nESLDyEpNP1L1TbtyNHobNfD7TUoDTsFLW91meM5C4h +Dkle7wrPMwwyVcncuKKKbmEURu84UWPdVPYAEZnQ260V3cUCrnvBElat70aNwTlvmjE RMLGzN/6Tck0uG4+ZzHNXHB1sjQS6k6GAQMtOo6fDkDfqvtxqcoC8ELVADIaS8fMLcoA en6MNrT08/N/4kiwJHnrU3G/yZ7VIsi3TPOZUcQro2OGncU6fOZ15MwMDSZdHNHjoRwI hPDJvvARCcQKdDROMz9j35cOpBZpq8VwZ2VPapk4cri6KCWDfxxsWIadciBL1PxCtHJp mDgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=p1oWWVkh0jsAVWB9JrpnkR/n6AxGrkt00WC1nemoJio=; b=FOZdPbWh5yWzg5PmQVpeOkBeaw5Tf3YeO0q4/vhh/Paz0lSlU/PALYSH8n73eTZJkw 3hr9wZIk9D/4snaTEM/qvG7ZQfr4PG95kowuc9pwyDv4umc4KbkHUKOqYMcqgImM4h7I navFHrrllqE16W1FRDzf958iieCZnN8bse61i51ZNigFk7e+F2WaInH7JiuD6iXcY6pP ogj3soIaxjfqZkuNK0jnq3rDHLv+1XLTHI6xI+cvjcM6VjPdIvoSIKADG/Da/4mVq2p3 RJueJ8pcgiVE3QwRE3cpDvKbn2XI+Xs17u4fR97CCdTBvtCU0RNISYWW6YK/0MpUFrOE j4fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sjszTJJj; 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 b25si9721041ejg.500.2020.07.04.04.23.37; Sat, 04 Jul 2020 04:24:00 -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=@gmail.com header.s=20161025 header.b=sjszTJJj; 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 S1727868AbgGDLX1 (ORCPT + 99 others); Sat, 4 Jul 2020 07:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726726AbgGDLX1 (ORCPT ); Sat, 4 Jul 2020 07:23:27 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE1D4C061794; Sat, 4 Jul 2020 04:23:26 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id e8so16235944pgc.5; Sat, 04 Jul 2020 04:23:26 -0700 (PDT) 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:content-transfer-encoding; bh=p1oWWVkh0jsAVWB9JrpnkR/n6AxGrkt00WC1nemoJio=; b=sjszTJJj7c0qTEa/EeZ6b8AWETs9E9g+N09S543MR1gVkk82OE4Nrg3y2fZLRpLZva zGLSDyL1ssL/wBoD1u7Uwtc4w2hjwu/62KL8jXeH/wv+P7uMFRZhODuR9wgmPj4TnASp O5mgeOnd7uh+bVxznpm8wmPFA2UX6uoSyXYcj0GFZKevWjDaXfzvZaIsjOAaCkt0eYIs /e8lpttYwzKPtT98eNClQ+fbsQvaKR6YG2cADKwbvXOVkFjKfyviKV+JxFK25yaAEWlw TzrOif3wsh0JlzlNJVTGGwWzHCwQuPhwka3VYmQKJyaRhXyBZPIi/YDUdEbGKGDfGnV2 U3RQ== 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:content-transfer-encoding; bh=p1oWWVkh0jsAVWB9JrpnkR/n6AxGrkt00WC1nemoJio=; b=CTg8Ky5jKXjrccZBajDXW0nOEVp6k8L0I8owbaTgD16x1RJ42e3bVbgiij2FjSZZYa VW38GxbjCLqwpsoG/MK09eylpZHC7nboE05I0bmdqxDzSCczUdmCJEouOTVinsTI1dwS /Ny3wmiVz5j4l1lQ9LENG+L/qhIgJS8OndhMhxGHNglZK75bDbyaWSdhi0lYEzhmB/PT EXkmSLjAxgrBn/qF+P4retTei/CqvE6SOYA00SWERUNugugQmRpiq0SKYm9PQMCGKw4m u32IEAWkuQsFuCajLxryuysIl9C7GLmp2jKnGrwmOzZJhW9V8zIAr7d9BRAdntmvYqY/ hUOw== X-Gm-Message-State: AOAM530cj/FxhnAlHbsYxtC4qnBjvTfgN0zCsfn0rBQzcRPn8Z24MCKO YtXSvTsHPh8T3foTpP0oBPz0te2BSs+LUvcrtOk= X-Received: by 2002:a63:a05f:: with SMTP id u31mr26586009pgn.4.1593861805751; Sat, 04 Jul 2020 04:23:25 -0700 (PDT) MIME-Version: 1.0 References: <20200503105453.23658-1-miquel.raynal@bootlin.com> <20200703145313.vwjsh5crdqx2u76a@pengutronix.de> In-Reply-To: <20200703145313.vwjsh5crdqx2u76a@pengutronix.de> From: Andy Shevchenko Date: Sat, 4 Jul 2020 14:23:09 +0300 Message-ID: Subject: Re: [PATCH v6] gpio: pca953x: Add Maxim MAX7313 PWM support To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Miquel Raynal , Thierry Reding , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , linux-pwm@vger.kernel.org, Thomas Petazzoni , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 3, 2020 at 5:53 PM Uwe Kleine-K=C3=B6nig wrote: > On Sun, May 03, 2020 at 12:54:53PM +0200, Miquel Raynal wrote: ... > > + 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", ret)= ; > > Please use %pe for error codes. %pe is mainly for error pointers, with plain integers it will look awkward a bit. > > + return 0; > > + } --=20 With Best Regards, Andy Shevchenko