You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
PM / devfreq: rockchip_dmc: move some functions
Move rockchip_dmcfreq_vop_bandwidth_request and rockchip_dmcfreq_vop_bandwidth_update from rockchip_drm_fb.h to rockchip_dmc.h. Change-Id: I5b023e44b46a6c613af71452a940d31feb9b2d97 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -33,26 +33,6 @@ dma_addr_t rockchip_fb_get_dma_addr(struct drm_framebuffer *fb,
|
||||
unsigned int plane);
|
||||
void *rockchip_fb_get_kvaddr(struct drm_framebuffer *fb, unsigned int plane);
|
||||
|
||||
#ifdef CONFIG_ARM_ROCKCHIP_DMC_DEVFREQ
|
||||
int rockchip_dmcfreq_vop_bandwidth_request(struct devfreq *devfreq,
|
||||
unsigned int bw_mbyte);
|
||||
void rockchip_dmcfreq_vop_bandwidth_update(struct devfreq *devfreq,
|
||||
unsigned int bw_mbyte);
|
||||
#else
|
||||
static inline int
|
||||
rockchip_dmcfreq_vop_bandwidth_request(struct devfreq *devfreq,
|
||||
unsigned int bw_mbyte)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void
|
||||
rockchip_dmcfreq_vop_bandwidth_update(struct devfreq *devfreq,
|
||||
unsigned int bw_mbyte)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#define to_rockchip_fb(x) container_of(x, struct rockchip_drm_fb, fb)
|
||||
|
||||
struct rockchip_drm_fb {
|
||||
|
||||
@@ -26,11 +26,29 @@ static inline int rockchip_drm_register_notifier_to_dmc(struct devfreq *devfreq)
|
||||
|
||||
#ifdef CONFIG_ARM_ROCKCHIP_DMC_DEVFREQ
|
||||
int rockchip_dmcfreq_wait_complete(void);
|
||||
int rockchip_dmcfreq_vop_bandwidth_request(struct devfreq *devfreq,
|
||||
unsigned int bw_mbyte);
|
||||
void rockchip_dmcfreq_vop_bandwidth_update(struct devfreq *devfreq,
|
||||
unsigned int bw_mbyte);
|
||||
|
||||
#else
|
||||
static inline int rockchip_dmcfreq_wait_complete(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int
|
||||
rockchip_dmcfreq_vop_bandwidth_request(struct devfreq *devfreq,
|
||||
unsigned int bw_mbyte)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void
|
||||
rockchip_dmcfreq_vop_bandwidth_update(struct devfreq *devfreq,
|
||||
unsigned int bw_mbyte)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user