drm/vc4: hdmi: Add a spinlock to protect register access
[linux-2.6-microblaze.git] / drivers / gpu / drm / vc4 / vc4_hdmi.h
index 33e9f66..006142f 100644 (file)
@@ -178,6 +178,11 @@ struct vc4_hdmi {
 
        struct debugfs_regset32 hdmi_regset;
        struct debugfs_regset32 hd_regset;
+
+       /**
+        * @hw_lock: Spinlock protecting device register access.
+        */
+       spinlock_t hw_lock;
 };
 
 static inline struct vc4_hdmi *