Skip to content

Commit

Permalink
drm: annotate drm_core_check_feature() dev arg. as const
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Emil Velikov authored and Emil Velikov committed Feb 13, 2019
1 parent 4acc5be commit f16bb4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/drm/drm_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f16bb4d

Please sign in to comment.