diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-03-15 20:51:09 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-03-16 17:08:48 +0100 |
commit | c3aeadc8d3580b319d51c62fb82255b06a1c4fd8 (patch) | |
tree | ebdf5cf9f3ed40525a35cbb35f20e4335dda9deb /drivers/gpu/drm/i915/intel_dsi.h | |
parent | drm/i915/dsi: start using enum mipi_dsi_pixel_format (diff) | |
download | linux-c3aeadc8d3580b319d51c62fb82255b06a1c4fd8.tar.xz linux-c3aeadc8d3580b319d51c62fb82255b06a1c4fd8.zip |
drm/i915: add for_each_port_masked macro
Same as for_each_dsi_port, but for general use. Leave the
for_each_dsi_port version around as an "alias" for now to not cause too
much churn. No functional changes.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/a0ef5bf33395e1fcd87178b17d6687b022042cf7.1458070700.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dsi.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dsi.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dsi.h b/drivers/gpu/drm/i915/intel_dsi.h index 54f072cd78f1..e582ef8f3dac 100644 --- a/drivers/gpu/drm/i915/intel_dsi.h +++ b/drivers/gpu/drm/i915/intel_dsi.h @@ -119,9 +119,7 @@ static inline struct intel_dsi_host *to_intel_dsi_host(struct mipi_dsi_host *h) return container_of(h, struct intel_dsi_host, base); } -#define for_each_dsi_port(__port, __ports_mask) \ - for ((__port) = PORT_A; (__port) < I915_MAX_PORTS; (__port)++) \ - for_each_if ((__ports_mask) & (1 << (__port))) +#define for_each_dsi_port(__port, __ports_mask) for_each_port_masked(__port, __ports_mask) static inline struct intel_dsi *enc_to_intel_dsi(struct drm_encoder *encoder) { |