提交 ca7b70b1 编写于 作者: D Dmitry Baryshkov 提交者: Daniel Lezcano

thermal/drivers/tsens: Drop unnecessary hw_ids

The tsens driver defaults to using hw_id equal to the index of the
sensor. Thus it is superfluous to declare such hw_id arrays. Drop such
arrays from mdm9607 and msm8976 data.
Reviewed-by: NKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: NDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230101194034.831222-5-dmitry.baryshkov@linaro.orgSigned-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
上级 acd31b9f
...@@ -635,7 +635,6 @@ static const struct tsens_ops ops_9607 = { ...@@ -635,7 +635,6 @@ static const struct tsens_ops ops_9607 = {
struct tsens_plat_data data_9607 = { struct tsens_plat_data data_9607 = {
.num_sensors = 5, .num_sensors = 5,
.ops = &ops_9607, .ops = &ops_9607,
.hw_ids = (unsigned int []){ 0, 1, 2, 3, 4 },
.feat = &tsens_v0_1_feat, .feat = &tsens_v0_1_feat,
.fields = tsens_v0_1_regfields, .fields = tsens_v0_1_regfields,
}; };
...@@ -387,7 +387,6 @@ static const struct tsens_ops ops_8976 = { ...@@ -387,7 +387,6 @@ static const struct tsens_ops ops_8976 = {
struct tsens_plat_data data_8976 = { struct tsens_plat_data data_8976 = {
.num_sensors = 11, .num_sensors = 11,
.ops = &ops_8976, .ops = &ops_8976,
.hw_ids = (unsigned int[]){0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10},
.feat = &tsens_v1_feat, .feat = &tsens_v1_feat,
.fields = tsens_v1_regfields, .fields = tsens_v1_regfields,
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册