Re: [PATCH] pwm: pxa: Depend on OF and simplify accordingly

Uwe Kleine-König (The Capable Hub) <[email protected]> Fri, 10 Jul 2026 10:07:23 +0200
Newsgroups dev.linux.lists.spacemit,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-riscv,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pwm
Message-ID <alCn7yq5ltsRAP5j@monoceros>
Hello,

On Sun, Jul 05, 2026 at 10:39:08AM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> The SoCs that this driver actually works on all imply OF already. (ARM
> selects USE_OF unless some archs are enabled that cannot be selected
> together with ARCH_PXA or ARCH_MMP, ARM64 and RISCV select OF.)
> 
> With OF known to be enabled a few conditionals in the driver can be
> simplified.
> 
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <[email protected]>
> ---
> Hello,
> 
> while doing a treewide cleanup I wondered if these conditionals are
> relevant at all. A bit of research found they are not. We will get over
> losing compile coverage for COMPILE_TEST && !OF.

I applied this patch to

https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next

for the next merge window.

Best regards
Uwe
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmpQqDkACgkQj4D7WH0S
/k7m5Af9EqKXVKajJznf7LCaNjAtLjnYKXogyd5DJe9y4h12iiQ4E0L16zTpUquA
+d8H4y6WBqv5Sw/V1kHyXR4nva8Hjse/yb9oVj9PzSCs/bfseheHbPyKGgJ635V+
N0YEJAYFE9cyv9h1EFpkpJ0lr7jgjTfv/j/XGZ/jaX1o637SKwlYRu/UCVghyU9U
ddbPgQuE1VdQeFwHn71waBzEf1Pa4xboL1VKpqAxVJYl5YWYmyLhyG24Jy45VSzI
1RfIyMrMfBpcjhp7W74SmhrlceCWG4ihxmgGOOb+eDtQ8k2YRo9eT6Z1vc9efPFq
Pi3mXdk0vITyiipLDathqGOmy46Yuw==
=5MWJ
-----END PGP SIGNATURE-----