From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E91AC47F2D5 for ; Wed, 29 Jul 2026 12:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785328448; cv=none; b=fY9gH7DSWpnKzcwBfQjQyXeTPVxIUjHvz6smKF40SlUlR7O1OsTLLnCq0M6ww7X0PDzzF/sc/Z0VgNLFxTRkBpgzAY1mhEhWbSEnbWY3xCWrCoN57Uw69nJpufPO/U8XTt7rrKm1NE4O5dcBNWthHwx0aIhvC66OzDE0ZHSbf4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785328448; c=relaxed/simple; bh=HeAEDpOyWDfK0HywfMKKJR7m/lfHHAOTVtMyX32Yin4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lrVwvPtL1dnpc3QYtnfAqTAPY9WpBSzSi0t7BivXrWAuY+U7bVFTI6PXweNQ3lRFgE3UGDAYVsb3bcYduvf0QMvAOlcUHWtU/S0SU8CjvpvCqN1GRcPb1hpFUobqKx7rY2NBRS2SKRSyVnpoChimBePo8Qsr2IU05DjMdOpqD5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=JyLSAyA7; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="JyLSAyA7" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4953e04ef16so8178355e9.2 for ; Wed, 29 Jul 2026 05:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1785328442; x=1785933242; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=hj7jv6pRB6x5AF5ocoOAZbiwUraKrz6rxk84/RgEz0M=; b=JyLSAyA7JLsBjzsv5sIAMPO8UgSES5gspaHVhSgXArmDW4bnZ3K4YkR+4qtU1fywnQ Irjg6ff/Nvjc9ubPdR9GnYaiSVWJ6Da7YS4a2hnizuFlf9PDpqpYTwK03dtfX8cAxayz 3UIZ5GdqQYnTu1hiva6mTgO8/7DP+6yIaC7oIU6+J9wmD2Rn8dcoVWOezjHdTsbyn5Mk wpC1l0wxXWdOpnXu+GBVY3mIhqePwqtPbHJTgwmpDO+x1laQYOe+JfuOWdoTQefrmkOK MowjE8U9DfsaCnyRNE5JCeZysqJapQ45v5K48JDGha168J44FXT5NQUi73Yy62IRY1vI IhkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785328442; x=1785933242; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hj7jv6pRB6x5AF5ocoOAZbiwUraKrz6rxk84/RgEz0M=; b=Z81hI6tXKq95Cwy/2qj/wXMiXsCL+lVEiYwGlszFm7njDqx1MXIyxbTdoafdObKcfn /JTxAH6kTaH87hkfnk15COvOOxYrGiLrMZUMS3gOcDg88OVigNgxGbSlC+F+4HllHDfF R7Dyvse57HGviKRIKpz7REJ0xOCvK8/JVNLFX9ZTDTl2z4Q91KR9NgQzCiQcEF7VeOCL xBYQVwFoE4tRBnpO2Bni+5UsFnrUpS7xHV+G8i3w5HINrzJ7NoB/0yF/ZvRiU+n8tTl9 XGXjUWGqcHBpswhPcKVKZicrBEik1sun8nVH1Q0nO8oCky5fp0dgCykgrNSmcnNuP8Lx O8PQ== X-Forwarded-Encrypted: i=1; AHgh+RrOQBB89RYen9W6f9GtMIpJqTemxVqdQ9kOmtnzRW6pFnUweDTZhzQqBYVVXluCI1o4u5BZBlGrl7dmE20=@vger.kernel.org X-Gm-Message-State: AOJu0Yylja/g27NJqoDWwIvsjDp7ZW+KwMekOrYft7FfmFDvDFfGqyma HqA9hAchlhBw+w6DWJYkK+STcba2nsgFP4rTlPZzGTEjhepWw0NLqSdHTF6i/KKfY2M= X-Gm-Gg: AR+sD11Tqgt0pKEy6Nsc7daYAdt7MYtwlKFWl+5axyfS1GHuec3eFdH/Gc43x31OPel GjSOXkj+HppvMAjiM2LVRKDmk6ZkowVmsNG0Q1Q+gppTPu2Esssug2ww6pKs1IoOt9x1VBmFF4l bMeALeSRBKOr++T7oNaqNSF00DUk5EfkarCrzh+L6uBC+4sLJ1odhsnhloTMm1h92fE0LfwEnvC 2IW3MCNjYGF/bMQcfMRlzkx2yVg/WJVN78YR57ZP/jJ5K4ZXMS0BqiLDjxzzlnVjIvW3WjCkc3F uW/pNeEXx1Zodjk3egFQk5kxLWMkQxPacPb6KGuPc9/9J9TU82FsG9BUr25th4yNFaENc31ck98 KLp0lMU+DzX+ry0y97CTdfpxQEek0cxB1zDA1OfqDA55471GFczN//TJpSBiez8IgFxvcgkjuZk dOgkB1gOaHtPYk842gixq72SZd8oEcwqHjyf+WCRCZlTkuz6x4v31vGxtMpTooq4xyxBstwBP/8 2uRTMRQyRH1sPJ04F9x9cboeDy7gOuiF+u2NDgmGrP6NnlzjBEnL7bIQS38UA== X-Received: by 2002:a05:600c:1f95:b0:490:c6c2:52 with SMTP id 5b1f17b1804b1-496c64261d4mr74271315e9.3.1785328441446; Wed, 29 Jul 2026 05:34:01 -0700 (PDT) Received: from localhost (p200300f65f47db0401da7fd03a16a046.dip0.t-ipconnect.de. [2003:f6:5f47:db04:1da:7fd0:3a16:a046]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-49764d6d0f8sm50701985e9.2.2026.07.29.05.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2026 05:34:00 -0700 (PDT) Date: Wed, 29 Jul 2026 14:33:59 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Svyatoslav Ryhel Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Lee Jones , Pavel Machek , Sebastian Reichel , Ion Agorria , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v10 2/7] mfd: Add driver for ASUS Transformer embedded controller Message-ID: References: <20260721095233.420823-1-clamor95@gmail.com> <20260721095233.420823-3-clamor95@gmail.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="6dqlofrf2szwmrad" Content-Disposition: inline In-Reply-To: --6dqlofrf2szwmrad Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v10 2/7] mfd: Add driver for ASUS Transformer embedded controller MIME-Version: 1.0 On Sat, Jul 25, 2026 at 04:23:13PM +0300, Svyatoslav Ryhel wrote: > =D1=87=D1=82, 23 =D0=BB=D0=B8=D0=BF. 2026=E2=80=AF=D1=80. =D0=BE 09:25 Uw= e Kleine-K=C3=B6nig > =D0=BF=D0=B8=D1=88=D0=B5: > > > > Hello, > > > > On Tue, Jul 21, 2026 at 12:52:28PM +0300, Svyatoslav Ryhel wrote: > > > From: Micha=C5=82 Miros=C5=82aw > > > > > > Support Nuvoton NPCE795-based ECs as used in Asus Transformer TF201, > > > TF300T, TF300TG, TF300TL and TF700T pad and dock, as well as TF101 do= ck > > > and TF600T, P1801-T and TF701T pad. This is a glue driver handling > > > detection and common operations for EC's functions. > > > > > > Co-developed-by: Svyatoslav Ryhel > > > Signed-off-by: Svyatoslav Ryhel > > > Signed-off-by: Micha=C5=82 Miros=C5=82aw > > > > Documentation/process/submitting-patches.rst has: > > > > [...] the ordering of Signed-off-by: tags should reflect the > > chronological history of the patch insofar as possible [...] > > > > So your S-o-b should be last when you submit a patch. > > > > > +#include > > > [...] > > > +#include > > > > will go away soon. Please rely on > > to provide a definition of struct of_device_id and drop > > the #include of mod_devicetable.h. > > > > > +static const struct of_device_id asus_ec_match[] =3D { > > > + { > > > + .compatible =3D "asus,sl101-ec-dock", > > > + .data =3D &asus_ec_sl101_dock_data > > > + }, { > > > + .compatible =3D "asus,tf101-ec-dock", > > > + .data =3D &asus_ec_tf101_dock_data > > > + }, { > > > + .compatible =3D "asus,tf201-ec-pad", > > > + .data =3D &asus_ec_tf201_pad_data > > > + }, { > > > + .compatible =3D "asus,tf600t-ec-pad", > > > + .data =3D &asus_ec_tf600t_pad_data > > > + }, > > > + { /* sentinel */ } > > > +}; > > > > Trailing comma after the assignments to .data please. > > >=20 > Sure, but out of curiosity, why in this case you ask for trailing > comma and if entries are in one line, you don't. Because this is the most used style. The rationale for the trailing comma is that if you want to add a new assignment to a multiline initializer you have to touch the line without comma: }, { .compatible =3D "asus,tf600t-ec-pad", - .data =3D &asus_ec_tf600t_pad_data + .data =3D &asus_ec_tf600t_pad_data, + .something_else =3D &foobar, }, so if the comma is already there, the patch reduces to: }, { .compatible =3D "asus,tf600t-ec-pad", .data =3D &asus_ec_tf600t_pad_data, + .something_else =3D &foobar, }, =2E For adding a new assignment to: { .compatible =3D "..." } you have to touch the line anyhow, so there is no advantage to already have the comma. And then it seems parsimony prevails. Best regards Uwe --6dqlofrf2szwmrad Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmpp8zUACgkQj4D7WH0S /k6ZNAf8DhR7uBfXuQZzNcJ2dR9KB5Mucc4l5ZRolBWJcq6FHN8KK2BbDb+bkrcE pUhYeNPt0LnZBA6JHWhJAM1zlHnLaQ2PlBWxeR4EIwAhM8nyXcfHgmgMJxBHSeEQ qHWXZKtQd90uCGYg4BnQO8LmgAQR610/ujayOjnD0EgB2Wy19ZkENuG5Nu+Irzef 8DWW0WMWbrTCP49l4fgVWsLE8/yOaBE1jBeyaZ17yXLwz5vbs6OfeCkqaK11AOnH KXbRlcea/K7YZX7wPKZLhHMSvmzSk+NEQgQpg7+qgg7NYMLDgJFCfvFTWhNj5lqb GcHcRJv6c3GBFhS3t9oSrHiBeXrX0A== =JxD4 -----END PGP SIGNATURE----- --6dqlofrf2szwmrad--