Re: [PATCH v1 4/5] pwm: Unify coding style of of_device_id arrays
Philippe Mathieu-Daudé <[email protected]> Mon, 6 Jul 2026 10:28:16 +0200
| Newsgroups | dev.linux.lists.sophgo,dev.linux.lists.asahi,dev.linux.lists.chrome-platform,dev.linux.lists.imx,dev.linux.lists.linux-sunxi,org.infradead.lists.linux-amlogic,org.infradead.lists.linux-mediatek,org.infradead.lists.linux-riscv,org.infradead.lists.linux-rockchip,org.kernel.vger.linux-kernel,org.kernel.vger.linux-mips,org.kernel.vger.linux-pwm,org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-samsung-soc |
|---|---|
| Message-ID | <[email protected]> |
Hi Uwe,
On 6/7/26 09:19, Uwe Kleine-König (The Capable Hub) wrote:
> Hello Chen,
>
> On Mon, Jul 06, 2026 at 08:33:47AM +0800, Chen Wang wrote:
>> On 7/5/2026 11:14 PM, Uwe Kleine-König (The Capable Hub) wrote:
>>> - Use a single space in a of_device_id array terminator; A single space
>>> after the opening { and before the closing } in non-empty
>>> initializers;
>>> - No comma after an array terminator;
>>> - Also no trailing comma after a named initializer iff the
>> iff -> if
>
> This is actually intended. iff = "if and only if", see e.g.
> https://en.wikipedia.org/wiki/If_and_only_if .
I agree this scientific idiomatic expression is not well known
by non-native English speakers, and using the expanded form is
just simpler to review (thinking at non-native English speaker
reading your commit in the future).
>
>>> closing } is on the same line;
>>>
>>> Signed-off-by: Uwe Kleine-König (The Capable Hub) <[email protected]>
>>
>> [......]