From patchwork Mon May 8 13:13:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 91160 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2171300vqo; Mon, 8 May 2023 06:51:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Xk3gwmo8XVsms8wjUGgA2dWwKHGc/+g4uTy573jKtb780yXDDW9Ejsb/nVmB//Quqmsn/ X-Received: by 2002:a05:6a20:d48c:b0:f6:15f3:ca36 with SMTP id im12-20020a056a20d48c00b000f615f3ca36mr10271128pzb.50.1683553875655; Mon, 08 May 2023 06:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683553875; cv=none; d=google.com; s=arc-20160816; b=HGRiEPKC34YRR8xqjBTDG2XmC1hsMq7Ro3/8fz6jK8gv6CYSfdxAM7xQE9q/TOY/QG 74RFy5FL/LBGNNt8VMRvc1hhLhYvfEvQXFxU5Ov40vi38yRc/rjM4w6vv0b0bTarkULE rtqzM+9begZy81qrDVfqDzJJv6MQ7jTB/8q0HoLJKvxvSgtZS9VMJu2nu+eZLjo4Ac4o L3qhqj/P6gVTHNhzN56KaOj0N/JTsd9QGumdfHdHXOeHLO2ntLZy/Rv3rGrVfhO58XjC l7jTMgLmP08TPk1drr9CC//GkrNCF1zigGXsu9cCZg/w9L6nX3Ew0OLoUw2QdIz+Em+D gujg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=fPadFlLPBY1XV2QeXcRoIHtkBD3+5FKuX66decVcclc=; b=DglkbNL/lqMm0OXqZOopo0+axv4P1MCFiTXkWCiAOUogSThJ5kzRyt0SNU/0CBmJFR JHtqtGBpRUqoYjTn7dKZ+P23y4WvKpZZ5QiAdi1Q9bj4XXB03olQ5RLRMkLW1jffFNdc WWc9e1x0JTcY+1ys++fEglPLQPENZ2HjqKe9CJppBGt8vPlEXAyX6gycOYP1WqUXQrVu A9EKD7soySU8sLrGk2dtm66dsCVUqauYTa23YpVegQga4qrfpa919KsqE+3tjBj+Gdyc TQt+sHxFrOwfMnNNYtgGINYj2hnngnhLSGuYKz+oobiIRW0bg9mHl0EbkZ1q+V6HWJuj gfFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=MY5uwEkf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i187-20020a639dc4000000b0051344de1eb8si8211543pgd.276.2023.05.08.06.50.58; Mon, 08 May 2023 06:51:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=MY5uwEkf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234333AbjEHNhe (ORCPT + 99 others); Mon, 8 May 2023 09:37:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234334AbjEHNha (ORCPT ); Mon, 8 May 2023 09:37:30 -0400 Received: from mx.kernkonzept.com (serv1.kernkonzept.com [IPv6:2a01:4f8:1c1c:b490::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D209C33864; Mon, 8 May 2023 06:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kernkonzept.com; s=mx1; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description; bh=fPadFlLPBY1XV2QeXcRoIHtkBD3+5FKuX66decVcclc=; b=MY5uwEkfWDQkFcimC6nTQDq8I8 QTHpbL2JV3Oj8H+1bnDFDCFQRVGrJEKLvYkn80FcphINT6JBTYhx7+QMBZDaYGPYLSwwCfICzFo7R 8J0NpagYW4QNdtGfU6Wj7R6Y+VdWfgxFo7OlCkjKNazY92WcUkDm4x9MUxHk5vEWzxgsGV7opHNCx sX0v7b1XQIQ+xpGl9okh5uAcx93tL3SobC8u43fn5olG9ty5bde6BB6MBzDkKggL54cntNmsQ3uJM R3gXF+6lGyl3BpX76wrgvntELaN3S1yoaFzXN9u9vEIeoAitmEQYI7lBQXcfky067KxtdSOgvnUpi 1jJB0UTQ==; Received: from [10.22.3.24] (helo=serv1.dd1.int.kernkonzept.com) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) id 1pw0hH-009LZn-TT; Mon, 08 May 2023 15:14:35 +0200 From: Stephan Gerhold Date: Mon, 08 May 2023 15:13:38 +0200 Subject: [PATCH v4 1/6] thermal: qcom: tsens: Drop unused legacy structs MIME-Version: 1.0 Message-Id: <20230508-msm8909-tsens-v4-1-d9119622cb19@kernkonzept.com> References: <20230508-msm8909-tsens-v4-0-d9119622cb19@kernkonzept.com> In-Reply-To: <20230508-msm8909-tsens-v4-0-d9119622cb19@kernkonzept.com> To: Daniel Lezcano Cc: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J. Wysocki" , Zhang Rui , Dmitry Baryshkov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Stephan Gerhold X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765334188801909406?= X-GMAIL-MSGID: =?utf-8?q?1765334188801909406?= The old single-cell parsing code was removed for MSM8939, MDM9607 and MSM8976 but for some reason the structs defining the bit positions etc were kept around (unused). Drop them now. Cc: Dmitry Baryshkov Fixes: 51d78b8b1beb ("thermal/drivers/tsens: Drop single-cell code for mdm9607") Fixes: dfadb4599ab0 ("thermal/drivers/tsens: Drop single-cell code for msm8939") Fixes: 3a908971f7cb ("thermal/drivers/tsens: Drop single-cell code for msm8976/msm8956") Reviewed-by: Konrad Dybcio Signed-off-by: Stephan Gerhold --- drivers/thermal/qcom/tsens-v0_1.c | 36 ------------------------------------ drivers/thermal/qcom/tsens-v1.c | 22 ---------------------- 2 files changed, 58 deletions(-) diff --git a/drivers/thermal/qcom/tsens-v0_1.c b/drivers/thermal/qcom/tsens-v0_1.c index e89c6f39a3ae..106d26076e3f 100644 --- a/drivers/thermal/qcom/tsens-v0_1.c +++ b/drivers/thermal/qcom/tsens-v0_1.c @@ -39,26 +39,6 @@ struct tsens_legacy_calibration_format tsens_8916_nvmem = { }, }; -struct tsens_legacy_calibration_format tsens_8939_nvmem = { - .base_len = 8, - .base_shift = 2, - .sp_len = 6, - .mode = { 12, 0 }, - .invalid = { 12, 2 }, - .base = { { 0, 0 }, { 1, 24 } }, - .sp = { - { { 12, 3 }, { 12, 9 } }, - { { 12, 15 }, { 12, 21 } }, - { { 12, 27 }, { 13, 1 } }, - { { 13, 7 }, { 13, 13 } }, - { { 13, 19 }, { 13, 25 } }, - { { 0, 8 }, { 0, 14 } }, - { { 0, 20 }, { 0, 26 } }, - { { 1, 0 }, { 1, 6 } }, - { { 1, 12 }, { 1, 18 } }, - }, -}; - struct tsens_legacy_calibration_format tsens_8974_nvmem = { .base_len = 8, .base_shift = 2, @@ -103,22 +83,6 @@ struct tsens_legacy_calibration_format tsens_8974_backup_nvmem = { }, }; -struct tsens_legacy_calibration_format tsens_9607_nvmem = { - .base_len = 8, - .base_shift = 2, - .sp_len = 6, - .mode = { 2, 20 }, - .invalid = { 2, 22 }, - .base = { { 0, 0 }, { 2, 12 } }, - .sp = { - { { 0, 8 }, { 0, 14 } }, - { { 0, 20 }, { 0, 26 } }, - { { 1, 0 }, { 1, 6 } }, - { { 1, 12 }, { 1, 18 } }, - { { 2, 0 }, { 2, 6 } }, - }, -}; - static int calibrate_8916(struct tsens_priv *priv) { u32 p1[5], p2[5]; diff --git a/drivers/thermal/qcom/tsens-v1.c b/drivers/thermal/qcom/tsens-v1.c index b822a426066d..51322430f1fe 100644 --- a/drivers/thermal/qcom/tsens-v1.c +++ b/drivers/thermal/qcom/tsens-v1.c @@ -42,28 +42,6 @@ struct tsens_legacy_calibration_format tsens_qcs404_nvmem = { }, }; -struct tsens_legacy_calibration_format tsens_8976_nvmem = { - .base_len = 8, - .base_shift = 2, - .sp_len = 6, - .mode = { 4, 0 }, - .invalid = { 4, 2 }, - .base = { { 0, 0 }, { 2, 8 } }, - .sp = { - { { 0, 8 }, { 0, 14 } }, - { { 0, 20 }, { 0, 26 } }, - { { 1, 0 }, { 1, 6 } }, - { { 1, 12 }, { 1, 18 } }, - { { 2, 8 }, { 2, 14 } }, - { { 2, 20 }, { 2, 26 } }, - { { 3, 0 }, { 3, 6 } }, - { { 3, 12 }, { 3, 18 } }, - { { 4, 2 }, { 4, 9 } }, - { { 4, 14 }, { 4, 21 } }, - { { 4, 26 }, { 5, 1 } }, - }, -}; - static int calibrate_v1(struct tsens_priv *priv) { u32 p1[10], p2[10];