drm/i915: refactor stepping info retrieval
authorJani Nikula <jani.nikula@intel.com>
Tue, 20 Oct 2015 12:38:33 +0000 (15:38 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 12 Nov 2015 14:29:43 +0000 (16:29 +0200)
commitb1a14c6e40413f833dadc1d23b43c530f4b8e381
treee9686fb7212ca7deb22f39ccc131a89cf11149c3
parentb9cd5bfd8263ecce6ae1c581b84c34c5670395de
drm/i915: refactor stepping info retrieval

Have only one if ladder for platforms and only one range check for
size. Makes it easier to handle new platforms. Remove the use of
negative return values in char, which might underflow to be positive for
some negative error codes.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1445344713-1407-3-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_csr.c