X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fchunkeey.git;a=blobdiff_plain;f=target%2Flinux%2Fmediatek%2Fpatches-4.14%2F0200-thermal-mediatek-add-support-for-MT7622-SoC.patch;h=731bd163d87857209f504afb0fe473f9d738e9f5;hp=4f31eb8d65828842671543aa1efd1c74dd5a339e;hb=64b53247c494898eaa78090fbc0a0727fce055d2;hpb=f4a639a3d7d40b4f63c431c2d554c479fbcc6b74 diff --git a/target/linux/mediatek/patches-4.14/0200-thermal-mediatek-add-support-for-MT7622-SoC.patch b/target/linux/mediatek/patches-4.14/0200-thermal-mediatek-add-support-for-MT7622-SoC.patch index 4f31eb8d65..731bd163d8 100644 --- a/target/linux/mediatek/patches-4.14/0200-thermal-mediatek-add-support-for-MT7622-SoC.patch +++ b/target/linux/mediatek/patches-4.14/0200-thermal-mediatek-add-support-for-MT7622-SoC.patch @@ -14,8 +14,6 @@ Signed-off-by: Shunli Wang drivers/thermal/mtk_thermal.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) -diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c -index c75661a3801a..e709acb2235e 100644 --- a/drivers/thermal/mtk_thermal.c +++ b/drivers/thermal/mtk_thermal.c @@ -153,6 +153,12 @@ @@ -31,7 +29,7 @@ index c75661a3801a..e709acb2235e 100644 struct mtk_thermal; struct thermal_bank_cfg { -@@ -242,6 +248,12 @@ static const int mt2712_adcpnp[MT2712_NUM_SENSORS_PER_ZONE] = { +@@ -242,6 +248,12 @@ static const int mt2712_adcpnp[MT2712_NU static const int mt2712_mux_values[MT2712_NUM_SENSORS] = { 0, 1, 2, 3 }; @@ -44,7 +42,7 @@ index c75661a3801a..e709acb2235e 100644 /** * The MT8173 thermal controller has four banks. Each bank can read up to * four temperature sensors simultaneously. The MT8173 has a total of 5 -@@ -329,6 +341,25 @@ static const struct mtk_thermal_data mt2712_thermal_data = { +@@ -329,6 +341,25 @@ static const struct mtk_thermal_data mt2 .sensor_mux_values = mt2712_mux_values, }; @@ -70,7 +68,7 @@ index c75661a3801a..e709acb2235e 100644 /** * raw_to_mcelsius - convert a raw ADC value to mcelsius * @mt: The thermal controller -@@ -631,6 +662,10 @@ static const struct of_device_id mtk_thermal_of_match[] = { +@@ -631,6 +662,10 @@ static const struct of_device_id mtk_the { .compatible = "mediatek,mt2712-thermal", .data = (void *)&mt2712_thermal_data, @@ -81,6 +79,3 @@ index c75661a3801a..e709acb2235e 100644 }, { }, }; --- -2.11.0 -