thermal/drivers/tsens: Drop unnecessary hw_ids
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 1 Jan 2023 19:40:18 +0000 (21:40 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 16 Jan 2023 10:22:30 +0000 (11:22 +0100)
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: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230101194034.831222-5-dmitry.baryshkov@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/qcom/tsens-v0_1.c
drivers/thermal/qcom/tsens-v1.c

index 04d012e4f7288221be16cbad8ba411633b9b41ff..0bc4e5cec184a5b729945a5f0031cccc1afc00c1 100644 (file)
@@ -635,7 +635,6 @@ static const struct tsens_ops ops_9607 = {
 struct tsens_plat_data data_9607 = {
        .num_sensors    = 5,
        .ops            = &ops_9607,
-       .hw_ids         = (unsigned int []){ 0, 1, 2, 3, 4 },
        .feat           = &tsens_v0_1_feat,
        .fields = tsens_v0_1_regfields,
 };
index 1d7f8a80bd13a22446ca03e6e1df1cc3f8edc86f..96ef12d47bffe5aea5faaf93f500c15d27bfc3a4 100644 (file)
@@ -387,7 +387,6 @@ static const struct tsens_ops ops_8976 = {
 struct tsens_plat_data data_8976 = {
        .num_sensors    = 11,
        .ops            = &ops_8976,
-       .hw_ids         = (unsigned int[]){0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10},
        .feat           = &tsens_v1_feat,
        .fields         = tsens_v1_regfields,
 };