Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1006262rdb; Wed, 24 Jan 2024 01:43:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMv7KZu78shXqdrUmnTZRXW7UTr+1fiyU6Ahz6VYUzMUVVYhgSr76vO0LGaEh/VXtjv+ed X-Received: by 2002:aa7:df13:0:b0:555:2b97:3f57 with SMTP id c19-20020aa7df13000000b005552b973f57mr1639698edy.84.1706089385056; Wed, 24 Jan 2024 01:43:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706089385; cv=pass; d=google.com; s=arc-20160816; b=ANBJFVc7K6yHnsux4sMRffWwIzKI5U+QrOGeg2mixGPDzBk70V80g0xMLP2MBHaqi9 QvQJEZyAaqD7xbwvvP9WuSgtClk6ndNjR4QoqZPlDHFNub0cn/MGu03Cme9gd0WwK2CA QURhVW47+1S9idYgUIB6NTYfkZR0cknww9vwZjRe6gOt9fEr1+4RwMi/mf54I0kK6N/f NNDIKa0dyAIaAfRwl7LTwBchiRhUWLs1Sw2haoFeYoVANmT3Qg/ty3I5tt827LGY559V TI4iFcbhBRf3IHBY260LDrXnLSPCZ7E2GYDxqdsKCq3oIFpgy1BUK/V1K+MtsECbwIzd qLKg== 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=VsFspqP0sxKJQYQbqsp5WlyvyyJgnc0Z+WNWnU2s/GQ=; fh=02goHv1gf6IZnl+8PZbgYXgaPEv5CNyC0dSuav09zS8=; b=BNWsmAYxj6PRE86liVa1v8PgqNuHuSepbWd15fZWZiCsBQlDWxD6IJq9XqeE4Ir+Xo EW9s1eUxZo62E0HbiklhzmoCVZZV/ImPnrunjH3HRyK3z2KC/80AMODgjF///akoOu6x rCYcFrpWgNv6l8QADjaIHHFUFQc7XCiUCM2m5zHfSzeMs6OPMaZW67iZYPgDz9bypDr8 C7M9o/Yycx3eSfZWQ7i58k6mfCFtPR0wPtBiFz7itYYoKx0ivE1CGxSMa5cd816SpOe3 kd541pjsp/FpZLvPbCbfdFuKwI+IF+kFI8IdXg4uISy1xwjyRTADXLwvLRbIAGIr/ipb 9G6Q== 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-36734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36734-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v11-20020a056402174b00b0055a4d8ad6edsi6162018edx.641.2024.01.24.01.43.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 01:43:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36734-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B79BB1F2148B for ; Wed, 24 Jan 2024 09:43:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DC9A1802E; Wed, 24 Jan 2024 09:42:57 +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 8D1A518026 for ; Wed, 24 Jan 2024 09:42:54 +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=1706089376; cv=none; b=jkaOLqcW4A8U7a0PH+Li8INW7qNOxzhQ7TrgQ+OE0CT7XusFdJouCuqPX/kL8/+DEL2nCMg5rzJRz5qGC0QZOQfSPJWU9aMR9LXe6lavzk7jMJjHqFW0d9ZlncluSTkSAL7WzrfWadxXbYXvf1rnllvl48/QLvyUKLfTJi02gTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706089376; c=relaxed/simple; bh=c7AtDwtfUT29Girxwftwf36NoI+3PFJkKiX9LOmNFk4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H1FO4a5WyGhu1WJ26d+UsNB143mpjAfNZ5j8qhzf5S3wsGicAH3joV0GtBOMxDyEKsmv2uTU61wiY8LUXc6XE8bGlolXbC/m8CIBtsddXL4Mo8Oxd3Ipfjo5EkzD0eVjPnOGKyG8kawlJF8qiWlwt5ezmapU4af5hyuYpbnSjzY= 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 1rSZmM-0003ht-Lz; Wed, 24 Jan 2024 10:42:42 +0100 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 1rSZmL-0021gA-J6; Wed, 24 Jan 2024 10:42:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rSZmL-0071nX-1a; Wed, 24 Jan 2024 10:42:41 +0100 Date: Wed, 24 Jan 2024 10:42:41 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Jerome Brunet Cc: Thierry Reding , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-pwm@vger.kernel.org, JunYi Zhao Subject: Re: [PATCH v4 3/6] pwm: meson: generalize 4 inputs clock on meson8 pwm type Message-ID: References: <20231222111658.832167-1-jbrunet@baylibre.com> <20231222111658.832167-4-jbrunet@baylibre.com> <4kcbh4dezgpic2dpgdi2swtx2puqiq74w2tungmxipf4nznpn7@u4g4f3cimps4> <1jy1cfw0qa.fsf@starbuckisacylon.baylibre.com> 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="a3xdp7xgdzkgzofk" Content-Disposition: inline In-Reply-To: <1jy1cfw0qa.fsf@starbuckisacylon.baylibre.com> 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 --a3xdp7xgdzkgzofk Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 24, 2024 at 10:11:59AM +0100, Jerome Brunet wrote: > On Wed 24 Jan 2024 at 10:08, Uwe Kleine-K=F6nig wrote: > > I suggest to make this > > > > const char *parent_names[MESON_NUM_MUX_PARENTS]; >=20 > Ok. >=20 > > > > to make it more explicit that really four entries are needed here. This > > also makes is unnecessary to add the additional NULL entries to > > pwm_gxbb_ao_parent_names and the other arrays. >=20 > I would normally agree but I'd prefer to be explicit. >=20 > There are some instance where the NULL is in the middle, this can't go > away. I think it looks if some inputs are explicitly NULL while the > other are implicit. Adding soem NULLs explicitly is fine for me. Using an array of fixed length still (somewhat) ensures that later no shorter arrays are added which result in surprises. Best reagrds Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --a3xdp7xgdzkgzofk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmWw25AACgkQj4D7WH0S /k5e0wf7BlbmFsY4+YWO4iLdNo0BVoOnMnfSSNw2yPZA+YdUvXeulZDQTshMRkgQ xNmIvXbYDeBBIUFQ64FzQQ89VyKcwTX459zycaNAg06N51FSdCM1EQO1F/Y6fqy1 g4+9fH3mHi+UJkcekm0st27G0uTvfiJ7RtkyQYK2KMD1OBmYr2ADURGmMppLzvLX 6XMsShbScQdqNKMGa2MGjB4plt3IzjyX5ZMRYaMdZABnZJsKJGXWfcr9p3fLZ3I+ Dvkti+CdMw7zHXAelVFD2EMKCMbV33PjedcIzBe9TTOQM5SPtoZHy3QIbQ+WdqNK sbr4C8C10SJBSSUbB1NJfIJfQUTNhw== =ENZk -----END PGP SIGNATURE----- --a3xdp7xgdzkgzofk--