[Intel-gfx] [PATCH] drm/i915/bios: Fix ports mask

Christoph Hellwig hch at infradead.org
Thu Jul 22 07:22:59 UTC 2021


> > init_vbt_missing_defaults(struct drm_i915_private *i915)
> > {
> > 	enum port port;
> > -	int ports = PORT_A | PORT_B | PORT_C | PORT_D | PORT_E | PORT_F;
> > +	int ports = BIT(PORT_A) | BIT(PORT_B) | BIT(PORT_C) | \
> > +		    BIT(PORT_D) | BIT(PORT_E) | BIT(PORT_F);

No need for the \, this isn't a macro.


More information about the Intel-gfx mailing list