kernel: bump 5.4 to 5.4.24
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-5.4 / 950-0212-thermal-brcmstb_thermal-Add-BCM2838-support.patch
index 4193dec68f53a995a5ec0dd20254d2bab62807b6..6fed7ec4eb9cd7ddabc5f26b8973d0336d75c6fa 100644 (file)
@@ -62,8 +62,8 @@ Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
 +      const struct brcmstb_thermal_of_data *socdata;
  };
  
- static void avs_tmon_get_coeffs(struct thermal_zone_device *tz, int *slope,
-@@ -155,17 +162,18 @@ static inline u32 avs_tmon_temp_to_code(
+ /* Convert a HW code to a temperature reading (millidegree celsius) */
+@@ -142,17 +149,18 @@ static inline u32 avs_tmon_temp_to_code(
  static int brcmstb_get_temp(void *data, int *temp)
  {
        struct brcmstb_thermal_priv *priv = data;
@@ -84,7 +84,7 @@ Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
  
        t = avs_tmon_code_to_temp(priv->thermal, val);
        if (t < 0)
-@@ -290,13 +298,34 @@ static int brcmstb_set_trips(void *data,
+@@ -277,13 +285,34 @@ static int brcmstb_set_trips(void *data,
        return 0;
  }
  
@@ -121,7 +121,7 @@ Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
        {},
  };
  MODULE_DEVICE_TABLE(of, brcmstb_thermal_id_table);
-@@ -317,11 +346,27 @@ static int brcmstb_thermal_probe(struct
+@@ -304,11 +333,27 @@ static int brcmstb_thermal_probe(struct
        if (IS_ERR(priv->tmon_base))
                return PTR_ERR(priv->tmon_base);