Skip to content

Commit a9bb617

Browse files
committed
drm/atomic-helper: Change parameter name of crtc_set_mode()
crtc_set_mode() deals with calling the modeset related hooks for CRTC, connectors and bridges if and when a new commit changes them. It takes the drm_atomic_state being committed as a parameter. However, that parameter name is called as old_state, which is pretty confusing. Let's rename that variable as state. Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent 488e107 commit a9bb617

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/drm_atomic_helper.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,15 +1375,15 @@ void drm_atomic_helper_calc_timestamping_constants(struct drm_atomic_state *stat
13751375
EXPORT_SYMBOL(drm_atomic_helper_calc_timestamping_constants);
13761376

13771377
static void
1378-
crtc_set_mode(struct drm_device *dev, struct drm_atomic_state *old_state)
1378+
crtc_set_mode(struct drm_device *dev, struct drm_atomic_state *state)
13791379
{
13801380
struct drm_crtc *crtc;
13811381
struct drm_crtc_state *new_crtc_state;
13821382
struct drm_connector *connector;
13831383
struct drm_connector_state *new_conn_state;
13841384
int i;
13851385

1386-
for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) {
1386+
for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
13871387
const struct drm_crtc_helper_funcs *funcs;
13881388

13891389
if (!new_crtc_state->mode_changed)
@@ -1399,7 +1399,7 @@ crtc_set_mode(struct drm_device *dev, struct drm_atomic_state *old_state)
13991399
}
14001400
}
14011401

1402-
for_each_new_connector_in_state(old_state, connector, new_conn_state, i) {
1402+
for_each_new_connector_in_state(state, connector, new_conn_state, i) {
14031403
const struct drm_encoder_helper_funcs *funcs;
14041404
struct drm_encoder *encoder;
14051405
struct drm_display_mode *mode, *adjusted_mode;

0 commit comments

Comments
 (0)