]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82bed6c9a4d7d99ba959a439570661713eb02115
treea12afd8574bc5fd78d2970abf378e14b2e89893b
parent8a41db2492cb658813aa5c125f27aad413269685
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