]> git.baikalelectronics.ru Git - kernel.git/commit
drm/debugfs: also take per device driver features into account
authorJani Nikula <jani.nikula@intel.com>
Thu, 23 Jan 2020 12:48:01 +0000 (14:48 +0200)
committerJani Nikula <jani.nikula@intel.com>
Sat, 25 Jan 2020 13:49:11 +0000 (15:49 +0200)
commitf62484e5e46d017a0c8be448e91ec65af3b0ff12
tree152413e1e74c773142ff8e990aab67584c075f66
parent7f11adc0cc7f4cb1509b8ab724d090b9af450d7e
drm/debugfs: also take per device driver features into account

Use drm_core_check_all_features() to ensure both the driver features and
the per-device driver features are taken into account when registering
debugfs files.

v3:
- files[i].driver_features == 0 actually means "don't care"

v2:
- use drm_core_check_all_features()

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200123124801.14958-2-jani.nikula@intel.com
drivers/gpu/drm/drm_debugfs.c