From patchwork Sat Jun 17 11:38:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 693789 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 55DFBEB64D9 for ; Sat, 17 Jun 2023 11:39:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234374AbjFQLja (ORCPT ); Sat, 17 Jun 2023 07:39:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233465AbjFQLj3 (ORCPT ); Sat, 17 Jun 2023 07:39:29 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF6331BF8 for ; Sat, 17 Jun 2023 04:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687001923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e4oaFvu+oLj9clZTX2+t/9r2R/dvlWv5GxKJkZqu9ZE=; b=fzcx5UiN6Gt9YSWLG7K8CU//PFGhBgEvvwL9E6OGpKq/A1szHHlPr7fJVdhAr7iBJPiJqf e2MbhMnxcBPANV9qXjVdnHvi23h3xWRXrqFJQe3KkatLXpgzBKd/7ajmdFSMeCSctxnL65 AWBxtZmThUf/8xzfIqBJlBVt7i381BA= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-133-b0qIhLH6ObGH8BdgodyPWw-1; Sat, 17 Jun 2023 07:38:41 -0400 X-MC-Unique: b0qIhLH6ObGH8BdgodyPWw-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-62ffc101d72so22850916d6.3 for ; Sat, 17 Jun 2023 04:38:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687001921; x=1689593921; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e4oaFvu+oLj9clZTX2+t/9r2R/dvlWv5GxKJkZqu9ZE=; b=J0xpUzfIzMkK49H+h+ClC3IdM6CenoHXs7snipuV0CuIfnNz11ECsnmYS03/gKGOQy lzg/6POOlyKX+LD9BAo2aoozg1ul2BH3VWkb7VcEp8uJG6pT8C4VLKlDImuAJ/6W2NIW g6luFBrC7gmgYjE+arrWaL3LvEp2k5yWoR58r955DORseBo+YelO+LdjSkImeM31X4ip +tyXCuRHiKjl2zQaVlNRU8Q3SQ7FjopuxNd2RSihKJSqRfZx+RwCTYVLlmdIezQFGv+M tsNABSP1nU/dKQFEhxI+a9eIwCH1zBZQRCrn0w80Fqv+v7oYqxQ6WxdzsYcI0D+3Y41K +fNw== X-Gm-Message-State: AC+VfDwmzzAm+4SCBsuZaR4Uy3/GhR8h2mtUAR87QbrtH5KugnmNVupc BQFpCSASCb03sTAv/z9Qlb+8FzMKAUgS3v2vpD1y9diLDgAp/oqOn2yJZ0uXd7uXCVAEcaUOC71 TqLV9LMo7xsRDz1SH0Ec= X-Received: by 2002:a05:6214:2484:b0:62f:ff5c:6b3e with SMTP id gi4-20020a056214248400b0062fff5c6b3emr5080933qvb.34.1687001921374; Sat, 17 Jun 2023 04:38:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kAPxY0P/+pHsf5eYAttHB/VT0n+7jpgTnH2PyzRpW3fTXbo/JyZj81xki2cMCorIp/25kfQ== X-Received: by 2002:a05:6214:2484:b0:62f:ff5c:6b3e with SMTP id gi4-20020a056214248400b0062fff5c6b3emr5080918qvb.34.1687001921169; Sat, 17 Jun 2023 04:38:41 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id s15-20020a0cdc0f000000b006300e1db3ecsm363670qvk.141.2023.06.17.04.38.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jun 2023 04:38:40 -0700 (PDT) From: Tom Rix To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, amitk@kernel.org, thara.gopinath@gmail.com, rafael@kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] thermal/drivers/tsens: remove unused variable ops_v0_1 Date: Sat, 17 Jun 2023 07:38:37 -0400 Message-Id: <20230617113837.3224912-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org gcc with W=1 reports drivers/thermal/qcom/tsens-v0_1.c:328:31: error: ‘ops_v0_1’ defined but not used [-Werror=unused-const-variable=] 328 | static const struct tsens_ops ops_v0_1 = { | ^~~~~~~~ This variable is not used, so remove it. Signed-off-by: Tom Rix --- drivers/thermal/qcom/tsens-v0_1.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/thermal/qcom/tsens-v0_1.c b/drivers/thermal/qcom/tsens-v0_1.c index a941b4241b0a..0caf4628582c 100644 --- a/drivers/thermal/qcom/tsens-v0_1.c +++ b/drivers/thermal/qcom/tsens-v0_1.c @@ -325,12 +325,6 @@ static const struct reg_field tsens_v0_1_regfields[MAX_REGFIELDS] = { [TRDY] = REG_FIELD(TM_TRDY_OFF, 0, 0), }; -static const struct tsens_ops ops_v0_1 = { - .init = init_common, - .calibrate = tsens_calibrate_common, - .get_temp = get_temp_common, -}; - static const struct tsens_ops ops_8226 = { .init = init_8226, .calibrate = tsens_calibrate_common,