]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/hdcp: Clean up local variables
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Dec 2019 18:05:49 +0000 (20:05 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Jan 2020 16:27:41 +0000 (18:27 +0200)
commit5e6de2c501d112d6d8a6cf90bbcf6fd63340724b
tree6a51415a92699d8223a181015fd1c55012bd24bf
parent48139efcf74ec00f4e952ef4b8a66109958662dd
drm/i915/hdcp: Clean up local variables

Eliminate the inconsistencies in the hdcp code local variables:
- use dev_priv over dev
- use to_i915() instead of dev->dev_private
- initialize variables when declaring them
- a bit of declaration suffling to appease ocd

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191204180549.1267-10-ville.syrjala@linux.intel.com
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
drivers/gpu/drm/i915/display/intel_hdcp.c