]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/sitronix/st7571-i2c: Fix encoder callbacks function names
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 15 Jul 2025 11:03:50 +0000 (13:03 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Wed, 16 Jul 2025 10:12:38 +0000 (12:12 +0200)
It seems the driver took some inspiration from ssd130x and some of the
functions (encoder callbacks) were not renamed to use a st7571_ prefix.

Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/20250715110411.448343-2-javierm@redhat.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
drivers/gpu/drm/sitronix/st7571-i2c.c

index eec846892962dce2d0b86c9c5c226d44135f2b0d..634b426e2874546bd321434ce8ddff517b82488b 100644 (file)
@@ -550,8 +550,8 @@ static const struct drm_crtc_funcs st7571_crtc_funcs = {
  * Encoder
  */
 
-static void ssd130x_encoder_atomic_enable(struct drm_encoder *encoder,
-                                         struct drm_atomic_state *state)
+static void st7571_encoder_atomic_enable(struct drm_encoder *encoder,
+                                        struct drm_atomic_state *state)
 {
        struct drm_device *drm = encoder->dev;
        struct st7571_device *st7571 = drm_to_st7571(drm);
@@ -565,8 +565,8 @@ static void ssd130x_encoder_atomic_enable(struct drm_encoder *encoder,
        st7571_send_command_list(st7571, &command, 1);
 }
 
-static void ssd130x_encoder_atomic_disable(struct drm_encoder *encoder,
-                                          struct drm_atomic_state *state)
+static void st7571_encoder_atomic_disable(struct drm_encoder *encoder,
+                                         struct drm_atomic_state *state)
 {
        struct drm_device *drm = encoder->dev;
        struct st7571_device *st7571 = drm_to_st7571(drm);
@@ -581,8 +581,8 @@ static const struct drm_encoder_funcs st7571_encoder_funcs = {
 };
 
 static const struct drm_encoder_helper_funcs st7571_encoder_helper_funcs = {
-       .atomic_enable = ssd130x_encoder_atomic_enable,
-       .atomic_disable = ssd130x_encoder_atomic_disable,
+       .atomic_enable = st7571_encoder_atomic_enable,
+       .atomic_disable = st7571_encoder_atomic_disable,
 };
 
 /*