Commit f4392860 authored by Jani Nikula's avatar Jani Nikula

drm: make drm_core_check_feature() bool that it is

Bool is the more appropriate return type here, use it.
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180327204722.31246-3-jani.nikula@intel.com
parent 885a31cb
...@@ -115,9 +115,9 @@ static inline bool drm_drv_uses_atomic_modeset(struct drm_device *dev) ...@@ -115,9 +115,9 @@ static inline bool drm_drv_uses_atomic_modeset(struct drm_device *dev)
#define DRM_SWITCH_POWER_CHANGING 2 #define DRM_SWITCH_POWER_CHANGING 2
#define DRM_SWITCH_POWER_DYNAMIC_OFF 3 #define DRM_SWITCH_POWER_DYNAMIC_OFF 3
static inline int drm_core_check_feature(struct drm_device *dev, int feature) static inline bool drm_core_check_feature(struct drm_device *dev, int feature)
{ {
return ((dev->driver->driver_features & feature) ? 1 : 0); return dev->driver->driver_features & feature;
} }
/* returns true if currently okay to sleep */ /* returns true if currently okay to sleep */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment