]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe/sysfs: Simplify sysfs registration
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 16 Sep 2025 17:00:29 +0000 (19:00 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 17 Sep 2025 19:59:31 +0000 (21:59 +0200)
commitfb3c27a69c4736a9a78bb344b56907f8fb172edc
tree064dbf23f7b4a07972013b3e08ec25ae09e28e3e
parenta2d6223d224f333f705ed8495bf8bebfbc585c35
drm/xe/sysfs: Simplify sysfs registration

Instead of manually maintaining each sysfs file define and use
attribute groups and register them using device managed function.
Then use is_visible() to filter-out unsupported attributes.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250916170029.3313-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_device_sysfs.c