ARM: pxa: make pxafb_smart_*() empty when not enabled
Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
@@ -158,5 +158,18 @@ struct pxafb_mach_info {
|
|||||||
void pxa_set_fb_info(struct device *, struct pxafb_mach_info *);
|
void pxa_set_fb_info(struct device *, struct pxafb_mach_info *);
|
||||||
unsigned long pxafb_get_hsync_time(struct device *dev);
|
unsigned long pxafb_get_hsync_time(struct device *dev);
|
||||||
|
|
||||||
|
#ifdef CONFIG_FB_PXA_SMARTPANEL
|
||||||
extern int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int);
|
extern int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int);
|
||||||
extern int pxafb_smart_flush(struct fb_info *info);
|
extern int pxafb_smart_flush(struct fb_info *info);
|
||||||
|
#else
|
||||||
|
static inline int pxafb_smart_queue(struct fb_info *info,
|
||||||
|
uint16_t *cmds, int n)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int pxafb_smart_flush(struct fb_info *info)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@@ -1309,16 +1309,6 @@ static int pxafb_smart_init(struct pxafb_info *fbi)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int n_cmds)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int pxafb_smart_flush(struct fb_info *info)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int pxafb_smart_init(struct pxafb_info *fbi) { return 0; }
|
static inline int pxafb_smart_init(struct pxafb_info *fbi) { return 0; }
|
||||||
#endif /* CONFIG_FB_PXA_SMARTPANEL */
|
#endif /* CONFIG_FB_PXA_SMARTPANEL */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user