Re: [PATCH v2 2/4] pwm: sun50i: Add H616 PWM support

From: Richard GENOUD

Date: Tue Jan 13 2026 - 03:42:06 EST


Hi Uwe,
+ for (unsigned int i = 0; i < data->npwm; i++) {

Huh, AFAIK we're not using declarations in for loops in the kernel.

Actually, I've read somewhere (in LWN I guess) that Linus seems ok with that,
but I'll remove it if you prefer.

If you find your source again, I'd be interested.
I took me some time, but I finally found it (thanks to Hervé):
https://lore.kernel.org/all/CAHk-=wiCOTW5UftUrAnvJkr6769D29tF7Of79gUjdQHS_TkF5A@xxxxxxxxxxxxxx/



Best regards
Uwe

Regards,
Richard