drm/i915: Convert pxvid to extvid lookup table to a function
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Mon, 1 Dec 2014 16:01:05 +0000 (18:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Dec 2014 08:35:29 +0000 (09:35 +0100)
commitd972d6ee55102f1acb48c55537fb5989136358b7
tree6969a2fe6643ef9a5c3f07b00b59d059f69da6c4
parentbfc882b4e30fbc169ecfe3508378623743806f56
drm/i915: Convert pxvid to extvid lookup table to a function

The conversion table can be replaced with simple enough function.

   text    data     bss     dec     hex filename
 839688   10987      24  850699   cfb0b drivers/gpu/drm/i915/i915.ko
 839224   10987      24  850235   cf93b drivers/gpu/drm/i915/i915.ko

Result is 494 saved bytes (.05525%).

v2: - no run on sentences from subject (Chris, Jani)
    - be verbose about the savings (Chris, Daniel)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v1)
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c