From patchwork Tue Dec 20 02:47:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13077443 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F38EC53210 for ; Tue, 20 Dec 2022 02:47:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232887AbiLTCrb (ORCPT ); Mon, 19 Dec 2022 21:47:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232901AbiLTCr2 (ORCPT ); Mon, 19 Dec 2022 21:47:28 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 880FB13CFB for ; Mon, 19 Dec 2022 18:47:27 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id cf42so16618564lfb.1 for ; Mon, 19 Dec 2022 18:47:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ms1zUNlDRsohNrXvw0gNoQaDLt0r2JwKikY8Nms/5Pg=; b=kRooxlmCt/VjLbn5kXtyZKyPGe5+A3FDiF+jq65Tdgmhbe+UCcE63dQ7X+WB5QoYRg 9polnWe/Qp1zCb1Ukd38mrBDIKIxBFREoxY1xcfHE0jWFlIHZKEgdhI/bNMuUKVDzBub GFSWoiSCcnMQgq1VbJbR+/kC72w6JTByeAm0k52kCyKc9fk4wBA1dYk2Km1pJCxSEtgi taU1VXe4B03su4JXTnLjP5JwZb8ngkRH3//8Kljn4cF+c0/J1CsAYV0FqGd8v/RgCQrr MmNfl6u9jANde8tBC8IoCuuzLdB7cYeInXW5Qx6kCKI50hdZuPsbVJuXjxXoMAPWOmEx WWqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ms1zUNlDRsohNrXvw0gNoQaDLt0r2JwKikY8Nms/5Pg=; b=KeO/obQK+HwQn+sXxNWVMUlF1tWUBDk4lqsM6Q5y0cpH436+wGQnOpr2TiP07bl3z+ geuUzyJr5+5KZ9DAkHSnXwgyfMd6JgthMDfyWX9cNR0MLG4gKcjg2x6BM822tpeoB1II +dAtMrNCbPJkHTpTuMye45xO4bC6f51ci8oehNvfK1uL6XZUZG+DHSS4uq1zZZ+ENu1j mssmk0rhTHqNEC3sbmng8o6TYUXky/3xNmv5WlNv7/zTvYVcX3bdpizNH7raXs9+uRzR yfAYVTK9yL5/HkbCrsa8Sqq72C3lpAs3EdXD16YM+/+O+svhkqmeP9iCsZ0CzcTMbi27 ZRrg== X-Gm-Message-State: ANoB5pmGwrn46uaTJCJpLkSw5Bf+Pcg99d9lu5f5UNLEktUH9yszlb0Q +9ys/puZxF86WR4mXCRfF8xXHg== X-Google-Smtp-Source: AA0mqf4yjU9amk5WZAyYKV+jkCrn8WwniNKlWzMxdJXpdLB/Q3UrJzXfkLS4i0W6kekMcPYdSTbBng== X-Received: by 2002:a05:6512:1599:b0:4b6:f119:c820 with SMTP id bp25-20020a056512159900b004b6f119c820mr10407208lfb.40.1671504445926; Mon, 19 Dec 2022 18:47:25 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id e13-20020a05651236cd00b004b5a85e369asm1274866lfs.252.2022.12.19.18.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 18:47:25 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 04/15] thermal/drivers/tsens: Drop unnecessary hw_ids Date: Tue, 20 Dec 2022 04:47:10 +0200 Message-Id: <20221220024721.947147-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221220024721.947147-1-dmitry.baryshkov@linaro.org> References: <20221220024721.947147-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- drivers/thermal/qcom/tsens-v0_1.c | 1 - drivers/thermal/qcom/tsens-v1.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/thermal/qcom/tsens-v0_1.c b/drivers/thermal/qcom/tsens-v0_1.c index 04d012e4f728..0bc4e5cec184 100644 --- a/drivers/thermal/qcom/tsens-v0_1.c +++ b/drivers/thermal/qcom/tsens-v0_1.c @@ -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, }; diff --git a/drivers/thermal/qcom/tsens-v1.c b/drivers/thermal/qcom/tsens-v1.c index 1d7f8a80bd13..96ef12d47bff 100644 --- a/drivers/thermal/qcom/tsens-v1.c +++ b/drivers/thermal/qcom/tsens-v1.c @@ -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, };