]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dsm: remove unnecessary dsm priv structure
authorJani Nikula <jani.nikula@intel.com>
Thu, 14 Jun 2018 10:47:09 +0000 (13:47 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 14 Jun 2018 12:59:09 +0000 (15:59 +0300)
commit7bfd1c26e0b75f5630e884df2719514209b0f2a8
tree29ae9033a223c8aa8b3132ba1625519f1b8ac619
parent2d6f85738c43c79c9225bf9ca583978f06742153
drm/i915/dsm: remove unnecessary dsm priv structure

Pass a local acpi_handle around instead of having a static dsm priv
structure. If we need it later, we can always move it to dev_priv, and
the change at hand will make that easier as well.

Care is taken to preserve old behaviour, particularly using the last
non-NULL acpi handle, whether it makes sense or not.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180614104709.2808-1-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_acpi.c