diff options
author | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2022-06-06 12:05:11 +0300 |
---|---|---|
committer | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2022-06-07 19:43:07 +0300 |
commit | 5efc64e9b93a2df85581ea425ee7d0f435855f13 (patch) | |
tree | 6ebbe6017ca2a95ee67f2e188e302e4d4a860126 | |
parent | 0e5f8d41508b3c190d12b2d5e404788597635926 (diff) |
lib/intel_chipset: restore usage of has_flatccs flag
When older patches had been merged on top of newer patches
has_flatccs flag usage had gotten lost, put it back here.
While at it also set has_flatccs flag to take only one bit
since it is of boolean type.
CC: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
-rw-r--r-- | lib/intel_chipset.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 81547408..de4749e1 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -41,7 +41,7 @@ struct intel_device_info { unsigned display_ver; unsigned gt; /* 0 if unknown */ bool has_4tile : 1; - bool has_flatccs; + bool has_flatccs : 1; bool is_mobile : 1; bool is_whitney : 1; bool is_almador : 1; @@ -221,7 +221,6 @@ void intel_check_pch(void); #define HAS_4TILE(devid) (intel_get_device_info(devid)->has_4tile) -/* use HAS_4TILE here as all devices with 4-tile have flat ccs. */ -#define HAS_FLATCCS(devid) HAS_4TILE(devid) +#define HAS_FLATCCS(devid) (intel_get_device_info(devid)->has_flatccs) #endif /* _INTEL_CHIPSET_H */ |