[Intel-gfx] [PATCH] drm/i915/fia: FIA registers offset implementation.

Lucas De Marchi lucas.de.marchi at gmail.com
Wed Oct 31 17:23:12 UTC 2018


On Wed, Oct 31, 2018 at 04:58:27PM +0000, Srivatsa, Anusha wrote:
> >>> >  /* ICL PHY DFLEX registers */
> >>> > -#define PORT_TX_DFLEXDPMLE1          _MMIO(0x1638C0)
> >>> > +#define PORT_TX_DFLEXDPMLE1          _MMIO(FIA1_BASE +
> >PORT_TX_DFLEXDPMLE1_OFFSET)
> >
> >IMO either:
> >
> >#define _PORT_TX_DFLEXDPMLE1		0x008C0
> >#define PORT_TX_DFLEXDPMLE1		_MMIO(FIA1_BASE +
> >_PORT_TX_DFLEXDPMLE1)
> >
> >or just:
> >
> >#define PORT_TX_DFLEXDPMLE1		_MMIO(FIA1_BASE + 0x008C0)
> 
> Makes sense. I ll make this change...

I think the second option makes more sense. The additional underscored name
doesn't improve readability.

Lucas De Marchi


More information about the Intel-gfx mailing list