From: Soomin Kim Date: Thu, 21 Jul 2016 13:41:03 +0000 (+0900) Subject: [COMMON] thermal: samsung: Change property name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac566f9eaa6268e5cdb1a5c33939c239011854ca;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: samsung: Change property name The property name in DT is changed to from "mode" to "sensing_mode". Also, the thermal driver parses property with the name. Change-Id: I5c579a3f71634f81ff3e58421cd0cff8a11c291e Signed-off-by: Soomin Kim --- diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index eb5f482ffd47..2ee1fd832c3f 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -967,16 +967,18 @@ static int exynos_map_dt_data(struct platform_device *pdev) return -ENODEV; } - of_property_read_string(pdev->dev.of_node, "sensing_method", &temp); - if (of_property_read_string(pdev->dev.of_node, "tmu_name", &tmu_name)) { dev_err(&pdev->dev, "failed to get tmu_name\n"); } else strncpy(data->tmu_name, tmu_name, THERMAL_NAME_LENGTH); - for (i = 0; isensing_mode = i; + if (of_property_read_string(pdev->dev.of_node, "sensing_mode", &temp)) + dev_err(&pdev->dev, "failed to get sensing_mode of thermel sensor\n"); + else { + for (i = 0; isensing_mode = i; + } data->hotplug_enable = of_property_read_bool(pdev->dev.of_node, "hotplug_enable"); if (data->hotplug_enable) {