Commit 9d7bd3b1 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

drm: renesas: shmobile: Rename shmob_drm_connector.connector

Rename the "connector" member of the shmob_drm_connector subclass
structure to "base", to improve readability.
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarSui Jingfeng <suijingfeng@loongson.cn>
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/2382c4c796b53b5d2b24f99b85954ce632f21b90.1694767209.git.geert+renesas@glider.be
parent 51955324
...@@ -560,7 +560,7 @@ int shmob_drm_encoder_create(struct shmob_drm_device *sdev) ...@@ -560,7 +560,7 @@ int shmob_drm_encoder_create(struct shmob_drm_device *sdev)
static inline struct shmob_drm_connector *to_shmob_connector(struct drm_connector *connector) static inline struct shmob_drm_connector *to_shmob_connector(struct drm_connector *connector)
{ {
return container_of(connector, struct shmob_drm_connector, connector); return container_of(connector, struct shmob_drm_connector, base);
} }
static int shmob_drm_connector_get_modes(struct drm_connector *connector) static int shmob_drm_connector_get_modes(struct drm_connector *connector)
...@@ -632,7 +632,7 @@ shmob_drm_connector_init(struct shmob_drm_device *sdev, ...@@ -632,7 +632,7 @@ shmob_drm_connector_init(struct shmob_drm_device *sdev,
if (!scon) if (!scon)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
connector = &scon->connector; connector = &scon->base;
scon->encoder = encoder; scon->encoder = encoder;
scon->mode = &sdev->pdata->panel.mode; scon->mode = &sdev->pdata->panel.mode;
......
...@@ -33,7 +33,7 @@ struct shmob_drm_crtc { ...@@ -33,7 +33,7 @@ struct shmob_drm_crtc {
}; };
struct shmob_drm_connector { struct shmob_drm_connector {
struct drm_connector connector; struct drm_connector base;
struct drm_encoder *encoder; struct drm_encoder *encoder;
const struct videomode *mode; const struct videomode *mode;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment