[Intel-gfx] [PATCH 1/6] drm/i915: replace platform flags with a platform enum
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Thu Dec 1 07:54:49 UTC 2016
On ke, 2016-11-30 at 17:43 +0200, Jani Nikula wrote:
> The platform flags in device info are (mostly) mutually
> exclusive. Replace the flags with an enum. Add the platform enum also
> for platforms that previously didn't have a flag, and give them codename
> logging in dmesg.
>
> Pineview remains an exception, the platform being G33 for that.
>
> v2: Sort enum by gen and date
>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
The enum can be made into BIT() and the table can still be made with
some __builtin_ffs if that was found desireable.
With or without that;
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list