]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Convert to BITS_PER_TYPE
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Sep 2018 10:47:07 +0000 (11:47 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Sep 2018 12:32:03 +0000 (13:32 +0100)
commit74f6e183913b5dc90a004cafa84159ddb61cd0f0
treec3d6d4a9bc133d2c9a513ebf1e6d39a84ff53eec
parent2863b00941bc3062ea3299ed4057acfd9e52c335
drm/i915: Convert to BITS_PER_TYPE

In commit 9144d75e22ca ("include/linux/bitops.h: introduce BITS_PER_TYPE"),
we made BITS_PER_TYPE available to all and now we can use the macro to
replace some open-coded computation of sizeof(T) * BITS_PER_BYTE.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180926104707.17410-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_query.c
drivers/gpu/drm/i915/i915_syncmap.c
drivers/gpu/drm/i915/i915_utils.h
drivers/gpu/drm/i915/intel_device_info.c
drivers/gpu/drm/i915/intel_engine_cs.c