]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - include/linux/platform_data/video-clcd-versatile.h
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / include / linux / platform_data / video-clcd-versatile.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
420c34e4
RK
2#ifndef PLAT_CLCD_H
3#define PLAT_CLCD_H
4
ec4c4d87 5#ifdef CONFIG_PLAT_VERSATILE_CLCD
420c34e4
RK
6struct clcd_panel *versatile_clcd_get_panel(const char *);
7int versatile_clcd_setup_dma(struct clcd_fb *, unsigned long);
8int versatile_clcd_mmap_dma(struct clcd_fb *, struct vm_area_struct *);
9void versatile_clcd_remove_dma(struct clcd_fb *);
ec4c4d87
AB
10#else
11static inline struct clcd_panel *versatile_clcd_get_panel(const char *s)
12{
13 return NULL;
14}
15static inline int versatile_clcd_setup_dma(struct clcd_fb *fb, unsigned long framesize)
16{
17 return -ENODEV;
18}
19static inline int versatile_clcd_mmap_dma(struct clcd_fb *fb, struct vm_area_struct *vm)
20{
21 return -ENODEV;
22}
23static inline void versatile_clcd_remove_dma(struct clcd_fb *fb)
24{
25}
26#endif
420c34e4
RK
27
28#endif