mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-03 19:53:02 +09:00
drm/rockchip: Avoid multiple definition
Change-Id: I091eb45fd4ccc30e648d4b743e1f541a8718cc9d Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <soc/rockchip/rockchip_dmc.h>
|
||||
|
||||
#include "rockchip_drm_drv.h"
|
||||
#include "rockchip_drm_fb.h"
|
||||
#include "rockchip_drm_gem.h"
|
||||
#include "rockchip_drm_backlight.h"
|
||||
|
||||
|
||||
@@ -31,4 +31,19 @@ rockchip_fb_alloc(struct drm_device *dev, struct drm_mode_fb_cmd2 *mode_cmd,
|
||||
|
||||
dma_addr_t rockchip_fb_get_dma_addr(struct drm_framebuffer *fb,
|
||||
unsigned int plane);
|
||||
|
||||
#ifdef CONFIG_ARM_ROCKCHIP_DMC_DEVFREQ
|
||||
int rockchip_dmcfreq_vop_bandwidth_request(unsigned int bw_mbyte);
|
||||
void rockchip_dmcfreq_vop_bandwidth_update(unsigned int bw_mbyte);
|
||||
#else
|
||||
static inline int rockchip_dmcfreq_vop_bandwidth_request(unsigned int bw_mbyte)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void rockchip_dmcfreq_vop_bandwidth_update(unsigned int bw_mbyte)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _ROCKCHIP_DRM_FB_H */
|
||||
|
||||
@@ -33,18 +33,4 @@ static inline int rockchip_drm_register_notifier_to_dmc(struct devfreq *devfreq)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARM_ROCKCHIP_DMC_DEVFREQ
|
||||
int rockchip_dmcfreq_vop_bandwidth_request(unsigned int bw_mbyte);
|
||||
void rockchip_dmcfreq_vop_bandwidth_update(unsigned int bw_mbyte);
|
||||
#else
|
||||
int rockchip_dmcfreq_vop_bandwidth_request(unsigned int bw_mbyte)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void rockchip_dmcfreq_vop_bandwidth_update(unsigned int bw_mbyte)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user