lkml.org 
[lkml]   [2022]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 074/475] thermal: int340x: Increase bitmap size
    Date
    From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>

    commit 668f69a5f863b877bc3ae129efe9a80b6f055141 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/thermal/intel/int340x_thermal/int3400_thermal.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c
    +++ b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c
    @@ -49,7 +49,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;
    };

    \
     
     \ /
      Last update: 2022-04-14 16:41    [W:4.050 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site