ACPI / i915: replace open-coded _DSM code with helper functions
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 19 Dec 2013 12:38:20 +0000 (20:38 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 5 Jan 2014 15:07:15 +0000 (16:07 +0100)
commitd5c3d79e5ec6219fb20bf358d1e1bbaea1c36591
treeb6eb89f43a09775d77a609dc444099032134264e
parentea547d7db031e0cb010911470cbf5ba17e27eab0
ACPI / i915: replace open-coded _DSM code with helper functions

Use helper functions to simplify _DSM related code in i915 driver.

Function intel_dsm() is used to check functions supported by ACPI _DSM
method, but it has strange check for special value 0x80000002. After
digging into nouveau driver, I think the check is copied from nouveau
driver and is useless for i915 driver, so remove it.

Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/gpu/drm/i915/intel_acpi.c