drm/i915: Use hweight8() for 8bit masks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 21 Aug 2019 17:30:33 +0000 (20:30 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 23 Aug 2019 18:36:01 +0000 (21:36 +0300)
commit0b14d96820d1fd05ea610a0f5f952b34e5a24f2c
tree985f96a6727055fa68a5c5722cf1048eaf6da7c2
parentc08e91323920ec4b3a4d889af3988e300b1902f1
drm/i915: Use hweight8() for 8bit masks

Use hweight8() instead of hweight32() for 8bit masks. Doesn't actually
matter for us since the arch code will go for hweight32() anyway, but
maybe we stil want to do this for documentation purposes?

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