thermal: int340x: Increase bitmap size
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 14 Mar 2022 22:08:55 +0000 (15:08 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Mar 2022 18:36:10 +0000 (19:36 +0100)
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
for correctness increase to u32.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fixes: 16fc8eca1975 ("thermal/int340x_thermal: Add additional UUIDs")
Cc: 5.1+ <stable@vger.kernel.org> # 5.1+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int3400_thermal.c

index 6067bb0..a0b5991 100644 (file)
@@ -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;