]> git.baikalelectronics.ru Git - kernel.git/commit
drm: add drm_core_check_all_features() to check for a mask of features
authorJani Nikula <jani.nikula@intel.com>
Thu, 23 Jan 2020 12:48:00 +0000 (14:48 +0200)
committerJani Nikula <jani.nikula@intel.com>
Sat, 25 Jan 2020 13:49:01 +0000 (15:49 +0200)
commit7f11adc0cc7f4cb1509b8ab724d090b9af450d7e
tree6334c3dfa3deb7cceadda137c5befaae31fed98b
parenta961e5c68e373599c790f1a0aa8e718bb9ac5be7
drm: add drm_core_check_all_features() to check for a mask of features

Add new drm_core_check_all_features() function to check for a mask of
features. All features in the mask are required.

Redefine existing drm_core_check_feature() in terms of this function,
using the drm_driver_feature enum for the parameter.

v3:
- add drm_core_check_all_features() (Thomas)

v2:
- fix kernel-doc (Ville)
- add an extra variable for clarity (Ville)

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-1-jani.nikula@intel.com
include/drm/drm_drv.h