drm/mgag200: Switch I2C code to managed cleanup
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 16 May 2022 13:43:40 +0000 (15:43 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 May 2022 18:23:48 +0000 (20:23 +0200)
commitb279df242972ae816a75cf1cc732af836f999100
treea12afd8574bc5fd78d2970abf378e14b2e89893b
parent16f1456466c269ecda32b88c3f8fdd76f8ec370c
drm/mgag200: Switch I2C code to managed cleanup

Store the I2C state within struct mga_device and switch I2C to
managed release. Simplifies the related code and lets us remove
mga_connector_destroy().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220516134343.6085-5-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_i2c.c
drivers/gpu/drm/mgag200/mgag200_mode.c