drm/i915: Fix TV get_modes to return modes count
authorZhenyu Wang <zhenyu.z.wang@intel.com>
Wed, 4 Mar 2009 11:36:01 +0000 (19:36 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 27 Mar 2009 22:12:13 +0000 (15:12 -0700)
commit02c5dd985ddc5407aa9cc7e0f4456ca63b294f16
tree779e05304b4ff2f75b2327f62858ed3b8b415b1f
parent771cb081354161eea21534ba58e5cc1a2db94a25
drm/i915: Fix TV get_modes to return modes count

The get_modes hook must return the number of modes added.  This also fixes
TV mode's clock calculation int overflow issue, and use 0.01 precision for
mode refresh validation.

Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_tv.c