]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/solomon: Use drm_WARN_ON_ONCE instead of WARN_ON
authorIker Pedrosa <ikerpedrosam@gmail.com>
Sat, 20 Sep 2025 09:45:42 +0000 (11:45 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Fri, 26 Sep 2025 13:04:45 +0000 (15:04 +0200)
commit683bb2424cd5be17cca02067b038e9da5aa68dc6
tree0ba22e13917acee25aa014680ff0cb069aed9641
parent2258f03989afb66087538a5d6d56c18ef6532b07
drm/solomon: Use drm_WARN_ON_ONCE instead of WARN_ON

To prevent log spam, convert all instances to the DRM-specific
drm_WARN_ON_ONCE() macro. This ensures that a warning is emitted only
the first time the condition is met for a given device instance, which
is the desired behavior within the graphics subsystem.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
Link: https://lore.kernel.org/r/20250920-improve-ssd130x-v2-2-77721e87ae08@gmail.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
drivers/gpu/drm/solomon/ssd130x.c