Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp898871lqd; Wed, 24 Apr 2024 23:08:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5rfFSrI76C1jj2dLIUzltFGqrIvBUJS2HQUw7x36BvlcbhMN4krHPCF6AdcA1QBPZ70lLQVwQGTMRhQgulc6RIJmxvh8gFAI4SMtU4Q== X-Google-Smtp-Source: AGHT+IH4Hr8XxUiHPAOCDJhrBDGZdZ7eQZuVJyKfR5jJ7Yg3wmDsPstxNjznj+4oMkK2qIvGAW/g X-Received: by 2002:a17:903:4d1:b0:1e4:6938:6fe3 with SMTP id jm17-20020a17090304d100b001e469386fe3mr4339701plb.58.1714025334250; Wed, 24 Apr 2024 23:08:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714025334; cv=pass; d=google.com; s=arc-20160816; b=OBVG4PjrvTbdAQOqHSrc0d5+x6cOENYPN/qWyWIMNAF8L9GMT5t2mWXl/wSQ3iM7V+ 6/Qs48D21wF/fJ3ttJe/pZ7jt07nqBq8OimZ1EpeaT4RCTPAs9p0ggJCdnH35ExDqr9x joJNLW6N1EBo9h/2jD+TBb5+bPaxpMEfMnoRYDPydF1By/ewku/6DxfzwD01oYlJnLri HkUksH0b/qmevpG1bhHp31IY60/IEce/xSDId+Mk/rTpAYqdI0/wvHo85Wh1o2wXE5wi KVL4nGuTB7vRjghPFQVk/MaxylQORQ4lrqnrkB8UYR5jKyGc0AGc6GHYjs+55C2SAl+C W9ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=rvXAwUZaV7n2jcsP1CffanymDetA45pnhMeUgVri1LY=; fh=4wMu3qmOWga6S/1dZXblbWcHWUIgraqx8Ypur4qkaog=; b=oxX7yWEbjmAYi1i8qHOck6ZM5k33N/HRTKkJ7Jsc9boeUqEUNij0JKtpPBdXJRFtFZ NslH4nf4Gm1bJdPFZ7cEY+T9EFBP4ycLK4nv1ul9B195PqFpm5t0EGSttC43alpGYwwr qBAoz3jzHifuJYCC+xCBg0HTXo54z3rHuZssDWU9o5ZjXsYQyi8uIP988OYrdwSU/is/ qVkpg+a3G9mlBd4ffsmLfsHNvOQoYt5EBKlxCglxC7NAc5gs8acHTI2uy3lhnvLBfsfo 5BhoIDwDvc0/3MCfhTIVZRW6Ek4bx3VMK9I23bE5vMsR89k/4vIv21RBEQ9VV9FRtq03 94bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-158052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158052-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p4-20020a170902ebc400b001e84a89fc6csi12943441plg.238.2024.04.24.23.08.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 23:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-158052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158052-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C23DD281A63 for ; Thu, 25 Apr 2024 06:08:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8CA83DBBF; Thu, 25 Apr 2024 06:08:50 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 014303C466 for ; Thu, 25 Apr 2024 06:08:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714025330; cv=none; b=jwvzhzyv14c8ro9zauRk9j1Nx0vvVHIbKICkPi6Ws/PEe21BymqpQo5e6zvkhNEgqwvvaCWNcVXJGvjZgtFZfhQevygW+y161Z02Vggi3pUthZbcCrZxgl0BaT1qffLg33W8NFAVfcsBQsT44U+VrpJqUUUIvx72tv++6Nz/Qfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714025330; c=relaxed/simple; bh=xm4lJVgPXqL1ldM/qcSHe43N26hkKvKIxlWsVth/exk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=enSxbUYUeCXpC+f48Wxr2LTmW5hKADBnqI8232Muspm0YpyUvr3MWKCo5IIHUKuZLFP1TvdbwoPXIz1D8vwI+HXe3yDpM1doSd1OxCjgMsbl3+R8wmGixYmtEuF5o1hYwiVddd/MLUoOcILJWPJc23XuaHy3konBnr8wihpFrQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rzsHV-0003tM-OE; Thu, 25 Apr 2024 08:08:29 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzsHT-00ECyT-5a; Thu, 25 Apr 2024 08:08:27 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rzsHT-008MV3-0D; Thu, 25 Apr 2024 08:08:27 +0200 Date: Thu, 25 Apr 2024 08:08:26 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Xilin Wu , Bryan O'Donoghue Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Junhao Xie , Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Bjorn Andersson , Konrad Dybcio , Tengfei Fan , Molly Sophia , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 02/10] pwm: Add SI-EN SN3112 PWM support Message-ID: <7j7d3ygupaprtryygxlpyjezd6naaaevrnzrpybxe7twcvuhbm@fzmswsfql37r> References: <20240424-ayn-odin2-initial-v1-0-e0aa05c991fd@gmail.com> <20240424-ayn-odin2-initial-v1-2-e0aa05c991fd@gmail.com> <17d36836-67cb-4d5a-a8b4-ecf1517a0020@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zh4yvalyaaytqrij" Content-Disposition: inline In-Reply-To: <17d36836-67cb-4d5a-a8b4-ecf1517a0020@linaro.org> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --zh4yvalyaaytqrij Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Wed, Apr 24, 2024 at 04:55:26PM +0100, Bryan O'Donoghue wrote: > On 24/04/2024 16:29, Xilin Wu via B4 Relay wrote: > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include >=20 > Includes should be alphabetised Also check if you need them all. (E.g. I wonder about delay.h) > > + dev_dbg(priv->pdev, "request regmap_write 0x%x 0x%x\n", reg, val); > > + err =3D regmap_write(priv->regmap, reg, val); > > + if (err) > > + dev_warn_ratelimited( > > + priv->pdev, > > + "regmap_write to register 0x%x failed: %pe\n", reg, > > + ERR_PTR(err)); >=20 > Multi-line should be encapsulated in {} >=20 > if (err) { > stuff > goes here > } In my eyes a single state doesn't need {} even when spanning multiple lines. > > + return err; > > +} Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --zh4yvalyaaytqrij Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmYp81oACgkQj4D7WH0S /k6kxAf/c1u90d3vIMOZL5Sy8DR9MgBQGKJaZnQQUCk3HIdQyVyA4LhxHyxHiO/e oLm0HCG9idBnRK5mTyNmtWhLg0djTCR6DxSeGUhuAPa3Nr6BZGMTYYkU0ESYIFcW bKRxD29EiCcTvj0d7Ls5XwvXmmWTRkPMgoCXgtD2FDmyPCXvhfIEpOp+B8pvN/LD rToO/lFSpmxBzT9sOCqoT/4nCjOSKh/NZXuilf/zbxArH0gKjnTzSek0OFH+nC2s /oLGB00jxl8YKpSoUU0N67bbmnhYbLTVCed0yBT3wp9K1Mn9BBTns35UVkit5ytW SwUooPCJ8Mvb64kcHSgtz4CKCq7BdQ== =QM2k -----END PGP SIGNATURE----- --zh4yvalyaaytqrij--