From: Kristian Høgsberg Date: Wed, 16 Dec 2009 20:16:16 +0000 (-0500) Subject: drm/i915: Implement IS_* macros using static tables X-Git-Tag: v2.6.33-rc4~76^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfdf1fa23f4074c9f8766dc67a928bbf680b1ac9;p=pandora-kernel.git drm/i915: Implement IS_* macros using static tables Instead of using the IS_I9XX etc macros that expand to a ton of comparisons, use new struct intel_device_info to capture the capabilities of the different chipsets. The drm_i915_private struct will be initialized to point to the device info that correspond to the actual device and this way, testing for a specific capability is just a matter of checking a bit field. Signed-off-by: Kristian Høgsberg Signed-off-by: Eric Anholt --- Reading git-diff-tree failed