diff options
author | Yannick Fertre <yannick.fertre@st.com> | 2020-01-21 13:13:52 +0300 |
---|---|---|
committer | Benjamin Gaignard <benjamin.gaignard@st.com> | 2020-02-04 13:38:59 +0300 |
commit | 544aa6cefb24d75d7316ee3d9bb7865e69c375b6 (patch) | |
tree | 092afe5f1cddc1d01b4baa9a845c0d67cd0b6ac7 /drivers/gpu/drm/stm/ltdc.h | |
parent | 6f21293dbbde5f66788a5645ddea3c567dc02443 (diff) | |
download | linux-544aa6cefb24d75d7316ee3d9bb7865e69c375b6.tar.xz |
drm/stm: ltdc: add number of interrupts
The number of interrupts depends on the ltdc version.
Don't try to get interrupt which not exist, avoiding
kernel warning messages.
Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
Acked-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1579601632-7001-1-git-send-email-yannick.fertre@st.com
Diffstat (limited to 'drivers/gpu/drm/stm/ltdc.h')
-rw-r--r-- | drivers/gpu/drm/stm/ltdc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/stm/ltdc.h b/drivers/gpu/drm/stm/ltdc.h index a1ad0ae3b006..310e87f0667c 100644 --- a/drivers/gpu/drm/stm/ltdc.h +++ b/drivers/gpu/drm/stm/ltdc.h @@ -19,6 +19,7 @@ struct ltdc_caps { const u32 *pix_fmt_hw; /* supported pixel formats */ bool non_alpha_only_l1; /* non-native no-alpha formats on layer 1 */ int pad_max_freq_hz; /* max frequency supported by pad */ + int nb_irq; /* number of hardware interrupts */ }; #define LTDC_MAX_LAYER 4 |