]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm: annotate drm_core_check_feature() dev arg. as const
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 14 Jan 2019 08:54:07 +0000 (08:54 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 13 Feb 2019 17:40:13 +0000 (17:40 +0000)
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
include/drm/drm_drv.h

index 35af23f5fa0d081a97eef6fa8e2e805b1e768669..eca73330ffaf55a4f6164300260a58f251736a4e 100644 (file)
@@ -666,7 +666,7 @@ static inline bool drm_dev_is_unplugged(struct drm_device *dev)
  *
  * Returns true if the @feature is supported, false otherwise.
  */
-static inline bool drm_core_check_feature(struct drm_device *dev, u32 feature)
+static inline bool drm_core_check_feature(const struct drm_device *dev, u32 feature)
 {
        return dev->driver->driver_features & dev->driver_features & feature;
 }