diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-03-18 17:05:43 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-03-21 12:59:04 +0200 |
commit | 701d25b40c2e69a0b8e472a8b40a13a0b051bb43 (patch) | |
tree | 35875face68141b254f77740bbc1a6664890e307 /drivers/gpu | |
parent | 4d1de97568321828b9e63522c60ee77d23925471 (diff) | |
download | talos-op-linux-701d25b40c2e69a0b8e472a8b40a13a0b051bb43.tar.gz talos-op-linux-701d25b40c2e69a0b8e472a8b40a13a0b051bb43.zip |
drm/i915/dsi: use the BIT macro for clarity
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/9115c0a80ad57075700e006db965dd31cc4358fc.1458313400.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dsi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c index 1981212ffc8d..dd6f7bc4f444 100644 --- a/drivers/gpu/drm/i915/intel_dsi.c +++ b/drivers/gpu/drm/i915/intel_dsi.c @@ -412,7 +412,7 @@ static void intel_dsi_port_enable(struct intel_encoder *encoder) temp &= ~LANE_CONFIGURATION_MASK; temp &= ~DUAL_LINK_MODE_MASK; - if (intel_dsi->ports == ((1 << PORT_A) | (1 << PORT_C))) { + if (intel_dsi->ports == (BIT(PORT_A) | BIT(PORT_C))) { temp |= (intel_dsi->dual_link - 1) << DUAL_LINK_MODE_SHIFT; temp |= intel_crtc->pipe ? @@ -1200,14 +1200,14 @@ void intel_dsi_init(struct drm_device *dev) /* Pipe A maps to MIPI DSI port A, pipe B maps to MIPI DSI port C */ if (port == PORT_A) - intel_encoder->crtc_mask = 1 << PIPE_A; + intel_encoder->crtc_mask = BIT(PIPE_A); else - intel_encoder->crtc_mask = 1 << PIPE_B; + intel_encoder->crtc_mask = BIT(PIPE_B); if (dev_priv->vbt.dsi.config->dual_link) - intel_dsi->ports = (1 << PORT_A) | (1 << PORT_C); + intel_dsi->ports = BIT(PORT_A) | BIT(PORT_C); else - intel_dsi->ports = 1 << port; + intel_dsi->ports = BIT(port); /* Create a DSI host (and a device) for each port. */ for_each_dsi_port(port, intel_dsi->ports) { |