diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-11-05 07:40:19 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-11-05 07:46:15 -0500 |
commit | 230edc033d9ebb62c1db9579262089fdb2353ee9 (patch) | |
tree | befdfbe794f35803e16a20366d717d12e6d2b74b /drivers/video/omap2/dss/dispc.c | |
parent | a4ae0ba80b23b5b6e7702eb58bcf6e7487507adb (diff) |
OMAPDSS: DISPC: fix DS variable name
check_horiz_timing_omap3() has a variable named 'DS'. i386 uses DS name
for something else, causing a compilation error. As 'DS' is not a very
good local variable name in the first place, let's change it to 'ds',
fixing the issue.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dispc.c')
-rw-r--r-- | drivers/video/omap2/dss/dispc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 05def42e528b..33c4403642dc 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c | |||
@@ -1999,7 +1999,7 @@ static int check_horiz_timing_omap3(enum omap_plane plane, | |||
1999 | const struct omap_video_timings *t, u16 pos_x, | 1999 | const struct omap_video_timings *t, u16 pos_x, |
2000 | u16 width, u16 height, u16 out_width, u16 out_height) | 2000 | u16 width, u16 height, u16 out_width, u16 out_height) |
2001 | { | 2001 | { |
2002 | int DS = DIV_ROUND_UP(height, out_height); | 2002 | const int ds = DIV_ROUND_UP(height, out_height); |
2003 | unsigned long nonactive; | 2003 | unsigned long nonactive; |
2004 | static const u8 limits[3] = { 8, 10, 20 }; | 2004 | static const u8 limits[3] = { 8, 10, 20 }; |
2005 | u64 val, blank; | 2005 | u64 val, blank; |
@@ -2026,8 +2026,8 @@ static int check_horiz_timing_omap3(enum omap_plane plane, | |||
2026 | */ | 2026 | */ |
2027 | val = div_u64((u64)(nonactive - pos_x) * lclk, pclk); | 2027 | val = div_u64((u64)(nonactive - pos_x) * lclk, pclk); |
2028 | DSSDBG("(nonactive - pos_x) * pcd = %llu max(0, DS - 2) * width = %d\n", | 2028 | DSSDBG("(nonactive - pos_x) * pcd = %llu max(0, DS - 2) * width = %d\n", |
2029 | val, max(0, DS - 2) * width); | 2029 | val, max(0, ds - 2) * width); |
2030 | if (val < max(0, DS - 2) * width) | 2030 | if (val < max(0, ds - 2) * width) |
2031 | return -EINVAL; | 2031 | return -EINVAL; |
2032 | 2032 | ||
2033 | /* | 2033 | /* |
@@ -2037,8 +2037,8 @@ static int check_horiz_timing_omap3(enum omap_plane plane, | |||
2037 | */ | 2037 | */ |
2038 | val = div_u64((u64)nonactive * lclk, pclk); | 2038 | val = div_u64((u64)nonactive * lclk, pclk); |
2039 | DSSDBG("nonactive * pcd = %llu, max(0, DS - 1) * width = %d\n", | 2039 | DSSDBG("nonactive * pcd = %llu, max(0, DS - 1) * width = %d\n", |
2040 | val, max(0, DS - 1) * width); | 2040 | val, max(0, ds - 1) * width); |
2041 | if (val < max(0, DS - 1) * width) | 2041 | if (val < max(0, ds - 1) * width) |
2042 | return -EINVAL; | 2042 | return -EINVAL; |
2043 | 2043 | ||
2044 | return 0; | 2044 | return 0; |