Skip to content

Commit e527cd9

Browse files
paulkocialkowskimripard
authored andcommitted
drm/sun4i: sun4i: Register quirks with the backend structure
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
1 parent 490cda5 commit e527cd9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/gpu/drm/sun4i/sun4i_backend.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,8 @@ static int sun4i_backend_bind(struct device *dev, struct device *master,
876876
: SUN4I_BACKEND_MODCTL_OUT_LCD0));
877877
}
878878

879+
backend->quirks = quirks;
880+
879881
return 0;
880882

881883
err_disable_ram_clk:

‎drivers/gpu/drm/sun4i/sun4i_backend.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ struct sun4i_backend {
187187
/* Protects against races in the frontend teardown */
188188
spinlock_t frontend_lock;
189189
bool frontend_teardown;
190+
191+
const struct sun4i_backend_quirks *quirks;
190192
};
191193

192194
static inline struct sun4i_backend *

0 commit comments

Comments
 (0)