projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63926ba
)
drm/atomic: Constify drm_atomic_crtc_needs_modeset()
author
Ville Syrjälä
<ville.syrjala@linux.intel.com>
Thu, 24 Nov 2016 17:47:02 +0000
(19:47 +0200)
committer
Ville Syrjälä
<ville.syrjala@linux.intel.com>
Mon, 28 Nov 2016 15:48:58 +0000
(17:48 +0200)
drm_atomic_crtc_needs_modeset() doesn't change the passed in
crtc state, so pass it as const.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/1480009622-28127-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
include/drm/drm_atomic.h
patch
|
blob
|
history
diff --git
a/include/drm/drm_atomic.h
b/include/drm/drm_atomic.h
index
5d5f85d
..
d6d241f
100644
(file)
--- a/
include/drm/drm_atomic.h
+++ b/
include/drm/drm_atomic.h
@@
-418,7
+418,7
@@
int drm_atomic_debugfs_cleanup(struct drm_minor *minor);
* should clear mode_changed during its ->atomic_check.
*/
static inline bool
-drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state)
+drm_atomic_crtc_needs_modeset(
const
struct drm_crtc_state *state)
{
return state->mode_changed || state->active_changed ||
state->connectors_changed;