Some control value should be set according to sensor type.
So, define the member variable to exynos_tmu_platform_data
sturct and parse it from DT.
Change-Id: Ic0ab32c1c5bc37ad8c86909a1beb2d53504d88d3
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
of_property_read_u32(np, "samsung,tmu_cal_type", &pdata->cal_type);
+ if (of_property_read_u32(np, "samsung,tmu_sensor_type", &pdata->sensor_type))
+ pr_err("%s: failed to get thermel sensor type\n", __func__);
+
of_node_put(np);
return 0;
}
u8 default_temp_offset;
enum soc_type type;
+ u32 sensor_type;
u32 cal_type;
};