video-driver: diwali: Sort clock corners
Sort allowed clock corners for diwali v1 & v2 variants. Change-Id: Ic561cd4a0e7abcb0f239b294fa81807621f3ebdb Signed-off-by: Priyanka Gujjula <quic_pgujjula@quicinc.com>
This commit is contained in:

committed by
Govindaraj Rajagopal

vanhempi
58a111c212
commit
0dec23c1bd
@@ -226,4 +226,12 @@ int msm_vidc_init_dt(struct platform_device *pdev);
|
||||
int msm_vidc_read_context_bank_resources_from_dt(struct platform_device *pdev);
|
||||
void msm_vidc_deinit_dt(struct platform_device *pdev);
|
||||
|
||||
/* A comparator to compare loads (needed later on) */
|
||||
static inline int cmp(const void *a, const void *b)
|
||||
{
|
||||
/* want to sort in reverse so flip the comparison */
|
||||
return ((struct allowed_clock_rates_table *)b)->clock_rate -
|
||||
((struct allowed_clock_rates_table *)a)->clock_rate;
|
||||
}
|
||||
|
||||
#endif // _MSM_VIDC_DT_H_
|
||||
|
@@ -91,14 +91,6 @@ static int msm_vidc_load_u32_table(struct platform_device *pdev,
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* A comparator to compare loads (needed later on) */
|
||||
static int cmp(const void *a, const void *b)
|
||||
{
|
||||
/* want to sort in reverse so flip the comparison */
|
||||
return ((struct allowed_clock_rates_table *)b)->clock_rate -
|
||||
((struct allowed_clock_rates_table *)a)->clock_rate;
|
||||
}
|
||||
|
||||
static void msm_vidc_free_allowed_clocks_table(struct msm_vidc_dt *dt)
|
||||
{
|
||||
dt->allowed_clks_tbl = NULL;
|
||||
|
Viittaa uudesa ongelmassa
Block a user