@@ -497,10 +497,10 @@ static const struct mtk_ddp_comp_match mtk_ddp_matches[DDP_COMPONENT_DRM_ID_MAX]
497
497
[DDP_COMPONENT_WDMA1 ] = { MTK_DISP_WDMA , 1 , NULL },
498
498
};
499
499
500
- static bool mtk_drm_find_comp_in_ddp (struct device * dev ,
501
- const unsigned int * path ,
502
- unsigned int path_len ,
503
- struct mtk_ddp_comp * ddp_comp )
500
+ static bool mtk_ddp_comp_find (struct device * dev ,
501
+ const unsigned int * path ,
502
+ unsigned int path_len ,
503
+ struct mtk_ddp_comp * ddp_comp )
504
504
{
505
505
unsigned int i ;
506
506
@@ -514,10 +514,10 @@ static bool mtk_drm_find_comp_in_ddp(struct device *dev,
514
514
return false;
515
515
}
516
516
517
- static unsigned int mtk_drm_find_comp_in_ddp_conn_path (struct device * dev ,
518
- const struct mtk_drm_route * routes ,
519
- unsigned int num_routes ,
520
- struct mtk_ddp_comp * ddp_comp )
517
+ static unsigned int mtk_ddp_comp_find_in_route (struct device * dev ,
518
+ const struct mtk_drm_route * routes ,
519
+ unsigned int num_routes ,
520
+ struct mtk_ddp_comp * ddp_comp )
521
521
{
522
522
int ret ;
523
523
unsigned int i ;
@@ -554,26 +554,31 @@ int mtk_ddp_comp_get_id(struct device_node *node,
554
554
return - EINVAL ;
555
555
}
556
556
557
- unsigned int mtk_drm_find_possible_crtc_by_comp (struct drm_device * drm ,
558
- struct device * dev )
557
+ unsigned int mtk_find_possible_crtcs (struct drm_device * drm , struct device * dev )
559
558
{
560
559
struct mtk_drm_private * private = drm -> dev_private ;
561
560
unsigned int ret = 0 ;
562
561
563
- if (mtk_drm_find_comp_in_ddp (dev , private -> data -> main_path , private -> data -> main_len ,
564
- private -> ddp_comp ))
562
+ if (mtk_ddp_comp_find (dev ,
563
+ private -> data -> main_path ,
564
+ private -> data -> main_len ,
565
+ private -> ddp_comp ))
565
566
ret = BIT (0 );
566
- else if (mtk_drm_find_comp_in_ddp (dev , private -> data -> ext_path ,
567
- private -> data -> ext_len , private -> ddp_comp ))
567
+ else if (mtk_ddp_comp_find (dev ,
568
+ private -> data -> ext_path ,
569
+ private -> data -> ext_len ,
570
+ private -> ddp_comp ))
568
571
ret = BIT (1 );
569
- else if (mtk_drm_find_comp_in_ddp (dev , private -> data -> third_path ,
570
- private -> data -> third_len , private -> ddp_comp ))
572
+ else if (mtk_ddp_comp_find (dev ,
573
+ private -> data -> third_path ,
574
+ private -> data -> third_len ,
575
+ private -> ddp_comp ))
571
576
ret = BIT (2 );
572
577
else
573
- ret = mtk_drm_find_comp_in_ddp_conn_path (dev ,
574
- private -> data -> conn_routes ,
575
- private -> data -> num_conn_routes ,
576
- private -> ddp_comp );
578
+ ret = mtk_ddp_comp_find_in_route (dev ,
579
+ private -> data -> conn_routes ,
580
+ private -> data -> num_conn_routes ,
581
+ private -> ddp_comp );
577
582
578
583
return ret ;
579
584
}
0 commit comments