Re: [PATCH] drm: cleanup duplicate dependencies in kconfig

From: Julian Braha

Date: Fri Jun 19 2026 - 04:03:34 EST


Hi Thomas,

On 6/19/26 07:25, Thomas Zimmermann wrote:
> Is there a functional difference between 'if' and 'depends on'?

No functional difference. In Kconfig, 'if..endif' is just a way to
factor out repeated 'depends on'.

> IMHO it would be nicer to remove the if.

I think the if..endif style is more succinct, and many other subsystems
do this too. But it would also be dangerous to remove it since there may
be config options that don't also have the 'depends on DRM'.

- Julian Braha