diff options
author | Taneja, Archit <archit@ti.com> | 2011-03-15 00:28:22 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-15 03:04:27 -0400 |
commit | 31ef82377f1e0f1bc7d308ae4312e6cc5a431885 (patch) | |
tree | ad2154dfa61c9d2a38ad13895b9931cab03b48ae /drivers/video/omap2/dss/dss.c | |
parent | 235e7dba0264d4c6e56ee217fc7ef6d80da5eb67 (diff) |
OMAP: DSS2: FEATURES: Functions to return min and max values of parameters
Create 2 functions dss_feat_get_param_min() and dss_feat_get_param_max() which
return the minimum and maximum value of a parameter. Introduce a enum in
dss_features called dss_range_param which contains parameters whose ranges we
are interested in.
Replace this with dss_feat_get_max_dss_fck() which is specific to the parameter
DSS_FCK.
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss.c')
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 06ad31290853..562d8d28d4f2 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -457,7 +457,7 @@ int dss_calc_clock_div(bool is_tft, unsigned long req_pck, | |||
457 | 457 | ||
458 | prate = dss_get_dpll4_rate(); | 458 | prate = dss_get_dpll4_rate(); |
459 | 459 | ||
460 | max_dss_fck = dss_feat_get_max_dss_fck(); | 460 | max_dss_fck = dss_feat_get_param_max(FEAT_PARAM_DSS_FCK); |
461 | 461 | ||
462 | fck = dss_clk_get_rate(DSS_CLK_FCK); | 462 | fck = dss_clk_get_rate(DSS_CLK_FCK); |
463 | if (req_pck == dss.cache_req_pck && | 463 | if (req_pck == dss.cache_req_pck && |