Skip to content

Commit f16bb4d

Browse files
evelikov-workevelikov
authored andcommitted
drm: annotate drm_core_check_feature() dev arg. as const
This static inline function doesn't modify any state. Cc: intel-gfx@lists.freedesktop.org Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20190114085408.15933-1-emil.l.velikov@gmail.com
1 parent 4acc5be commit f16bb4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/drm/drm_drv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ static inline bool drm_dev_is_unplugged(struct drm_device *dev)
666666
*
667667
* Returns true if the @feature is supported, false otherwise.
668668
*/
669-
static inline bool drm_core_check_feature(struct drm_device *dev, u32 feature)
669+
static inline bool drm_core_check_feature(const struct drm_device *dev, u32 feature)
670670
{
671671
return dev->driver->driver_features & dev->driver_features & feature;
672672
}

0 commit comments

Comments
 (0)