thermal: int340x: Increase bitmap size
Subsystems (2)
PATCH v2 1/1 thermal: int340x: Increase bitmap size
The number of policies are 10, so can't be supported by the bitmap size of u8. Even though there are no platfoms with these many policies, but as correctness increase to u32.
Signed-off-by Srinivas Pandruvada <[email protected]>
Fixes 16fc8eca1975 ("thermal/int340x_thermal: Add additional UUIDs")
---
v2
- Changed u16 to u32 for better alignment as suggested by David
drivers/thermal/intel/int340x_thermal/int3400_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/intel/int340x_thermal/int3400_thermal.c +1 -1
@@ -53,7 +53,7 @@ struct int3400_thermal_priv {struct art *arts;int trt_count;struct trt *trts; -u8 uuid_bitmap; +u32 uuid_bitmap;int rel_misc_dev_res;int current_uuid_index;char *data_vault;
Signature · 1 line
2.31.1
Quoted 20 lines · Srinivas Pandruvada
The number of policies are 10, so can't be supported by the bitmap size of u8. Even though there are no platfoms with these many policies, but as correctness increase to u32.
Signed-off-by Srinivas Pandruvada <[email protected]>Fixes 16fc8eca1975 ("thermal/int340x_thermal: Add additional UUIDs")---
v2
- Changed u16 to u32 for better alignment as suggested by Daviddrivers/thermal/intel/int340x_thermal/int3400_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/thermal/intel/int340x_thermal/int3400_thermal.c +0
-0
drivers/thermal/intel/int340x_thermal/int3400_thermal.c struct int3400_thermal_priv {
Quoted 9 lines
drivers/thermal/intel/int340x_thermal/int3400_thermal.c +1
-2@@ -53,7 +53,7 @@ struct int3400_thermal_priv {struct art *arts;int trt_count;struct trt *trts; -u8 uuid_bitmap; +u32 uuid_bitmap;int rel_misc_dev_res;int current_uuid_index;char *data_vault; --
Applied as 5.18 material, thanks!