diff mbox series

[3/3] drm/vkms: change vkms driver to use drm_writeback_connector.base pointer

Message ID 20220111101801.28310-3-suraj.kandpal@intel.com (mailing list archive)
State New, archived
Headers show
Series [1/3] drm: add writeback pointers to drm_connector | expand

Commit Message

Suraj Kandpal Jan. 11, 2022, 10:18 a.m. UTC
Changing vkms driver to accomadate the change of
drm_writeback_connector.base to a pointer the reason for which is
explained in the Patch(drm: add writeback pointers to drm_connector).

Signed-off-by: Kandpal, Suraj <suraj.kandpal@intel.com>
---
 drivers/gpu/drm/vkms/vkms_writeback.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Suraj Kandpal Jan. 31, 2022, 4:14 a.m. UTC | #1
Hi All,
Gentle Reminder! Any Review comments?

> Changing vkms driver to accomadate the change of
> drm_writeback_connector.base to a pointer the reason for which is
> explained in the Patch(drm: add writeback pointers to drm_connector).
> 
> Signed-off-by: Kandpal, Suraj <suraj.kandpal@intel.com>
> ---
>  drivers/gpu/drm/vkms/vkms_writeback.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/vkms/vkms_writeback.c
> b/drivers/gpu/drm/vkms/vkms_writeback.c
> index 8694227f555f..6de0c4213425 100644
> --- a/drivers/gpu/drm/vkms/vkms_writeback.c
> +++ b/drivers/gpu/drm/vkms/vkms_writeback.c
> @@ -114,7 +114,7 @@ static void vkms_wb_atomic_commit(struct
> drm_connector *conn,
>  	struct vkms_device *vkmsdev = drm_device_to_vkms_device(conn-
> >dev);
>  	struct vkms_output *output = &vkmsdev->output;
>  	struct drm_writeback_connector *wb_conn = &output-
> >wb_connector;
> -	struct drm_connector_state *conn_state = wb_conn->base.state;
> +	struct drm_connector_state *conn_state = wb_conn->base->state;
>  	struct vkms_crtc_state *crtc_state = output->composer_state;
> 
>  	if (!conn_state)
> @@ -140,8 +140,8 @@ int vkms_enable_writeback_connector(struct
> vkms_device *vkmsdev)  {
>  	struct drm_writeback_connector *wb = &vkmsdev-
> >output.wb_connector;
> 
> -	vkmsdev->output.wb_connector.encoder.possible_crtcs = 1;
> -	drm_connector_helper_add(&wb->base,
> &vkms_wb_conn_helper_funcs);
> +	vkmsdev->output.wb_connector.encoder->possible_crtcs = 1;
> +	drm_connector_helper_add(wb->base,
> &vkms_wb_conn_helper_funcs);
> 
>  	return drm_writeback_connector_init(&vkmsdev->drm, wb,
>  					    &vkms_wb_connector_funcs,
Regards,
Suraj Kandpal
diff mbox series

Patch

diff --git a/drivers/gpu/drm/vkms/vkms_writeback.c b/drivers/gpu/drm/vkms/vkms_writeback.c
index 8694227f555f..6de0c4213425 100644
--- a/drivers/gpu/drm/vkms/vkms_writeback.c
+++ b/drivers/gpu/drm/vkms/vkms_writeback.c
@@ -114,7 +114,7 @@  static void vkms_wb_atomic_commit(struct drm_connector *conn,
 	struct vkms_device *vkmsdev = drm_device_to_vkms_device(conn->dev);
 	struct vkms_output *output = &vkmsdev->output;
 	struct drm_writeback_connector *wb_conn = &output->wb_connector;
-	struct drm_connector_state *conn_state = wb_conn->base.state;
+	struct drm_connector_state *conn_state = wb_conn->base->state;
 	struct vkms_crtc_state *crtc_state = output->composer_state;
 
 	if (!conn_state)
@@ -140,8 +140,8 @@  int vkms_enable_writeback_connector(struct vkms_device *vkmsdev)
 {
 	struct drm_writeback_connector *wb = &vkmsdev->output.wb_connector;
 
-	vkmsdev->output.wb_connector.encoder.possible_crtcs = 1;
-	drm_connector_helper_add(&wb->base, &vkms_wb_conn_helper_funcs);
+	vkmsdev->output.wb_connector.encoder->possible_crtcs = 1;
+	drm_connector_helper_add(wb->base, &vkms_wb_conn_helper_funcs);
 
 	return drm_writeback_connector_init(&vkmsdev->drm, wb,
 					    &vkms_wb_connector_funcs,