]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/sun4i: sun4i: Register quirks with the backend structure
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 19 Jul 2018 08:08:37 +0000 (10:08 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 19 Jul 2018 15:03:55 +0000 (17:03 +0200)
In prevision for introducing a new quirk that will be used at atomic
plane check time, register the quirks structure with the backend
structure. This way, it can easily be grabbed where needed.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180719080838.31598-1-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c
drivers/gpu/drm/sun4i/sun4i_backend.h

index d7950b52a1fd996cdbbaba632dce92db3cfe3842..e2f0d8fc3ddebc7ef73e77654da37e9df3ea4b14 100644 (file)
@@ -876,6 +876,8 @@ static int sun4i_backend_bind(struct device *dev, struct device *master,
                                    : SUN4I_BACKEND_MODCTL_OUT_LCD0));
        }
 
+       backend->quirks = quirks;
+
        return 0;
 
 err_disable_ram_clk:
index 4caee0392fa43e41ef462808ab68b351d63f2095..ad6609323f0eb70c8e581d39599a9d864ea3ad62 100644 (file)
@@ -187,6 +187,8 @@ struct sun4i_backend {
        /* Protects against races in the frontend teardown */
        spinlock_t              frontend_lock;
        bool                    frontend_teardown;
+
+       const struct sun4i_backend_quirks       *quirks;
 };
 
 static inline struct sun4i_backend *