diff options
| author | Simon Glass <[email protected]> | 2024-07-31 08:44:09 -0600 |
|---|---|---|
| committer | Anatolij Gustschin <[email protected]> | 2024-07-31 16:52:51 +0200 |
| commit | b023948e4f839c612e57ea68b21cb40c96874c12 (patch) | |
| tree | f1e96aa789650990c08ed60c44680c99c4d461c2 /include | |
| parent | 8ada14b4d9dcdf9d0efa902d80f40b7d3e7b678d (diff) | |
video: Move last_sync to private data
Rather than using a static variable, use the video device's private
data to remember when the last video sync was completed. This allows
each display to have its own sync and avoids using static data in SPL.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/video.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/video.h b/include/video.h index 4d8df9baaad..4013a949983 100644 --- a/include/video.h +++ b/include/video.h @@ -97,6 +97,7 @@ enum video_format { * the LCD is updated * @fg_col_idx: Foreground color code (bit 3 = bold, bit 0-2 = color) * @bg_col_idx: Background color code (bit 3 = bold, bit 0-2 = color) + * @last_sync: Monotonic time of last video sync */ struct video_priv { /* Things set up by the driver: */ @@ -121,6 +122,7 @@ struct video_priv { bool flush_dcache; u8 fg_col_idx; u8 bg_col_idx; + ulong last_sync; }; /** |
