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: 13283533 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 E3020EB64D9 for ; Sat, 17 Jun 2023 11:39:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234629AbjFQLja (ORCPT ); Sat, 17 Jun 2023 07:39:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232312AbjFQLj3 (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 CCDC91FD5 for ; Sat, 17 Jun 2023 04:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687001926; 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=hVRz5Fu8zYvJy+PMFxodTTLHgdNH93UlbaJTpRaJp//1P0W0G6uvp+nQOPSq+oO3KaYw0Q VC3iTl1CDfx5837wM2VGLPwSo5CiGAwwEIGrJoL6mwtFMkMtRwQN9tIVIh9arGBBOgzkM4 M3IPbU7HJ3Vd2JNZDkEZk+mbzQTWLeI= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-133-a1djm14OMh22CCMHO2EGNg-1; Sat, 17 Jun 2023 07:38:41 -0400 X-MC-Unique: a1djm14OMh22CCMHO2EGNg-1 Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-6300c2a972cso5138266d6.1 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=lfWR8wOsSLvlezpsFaTydmY/G1NPoQPfhjMasSXcLdZqgkaTJzQ9zzxc00P9VDbXWi t1hDJ56Ww6/aYqnqDIdJC6hzTaI2c9f2QtP0Nwu2bP7t2RVFb+uOV3oiW+xigEaqM9hJ YBMIZ367dBNpzK0VWOMgnuCyl3yKFoJbMCzGu/CaOqByEw08DJ7xpmCKgKNbZyAc5DXt It8l0T9Gd8cyq+WlnFFLZJr9gCdpcvWeJjNT/n3r1RyU4OzTV5DfSg+jyNSukZq9xgYL Nw0sgClqikWXUZQ87gYaPuhUAg/yuUSHU3c+SSekKMWaOhUGcPAlHaYIC5YU3LHGUxOb XiGw== X-Gm-Message-State: AC+VfDwIVNiHbVfdyxagjVKJ96QP5Z6DjQeqiP5/T0a+GZw8Nee4xLl+ 7nZB7kWh4D03aGDp63mf0tOb1QYeIEQMyxMuT/XiXzsgyLTgVYpKhM+h/y9YqpfxfxFE72QloCq iAuE/oX5nirhPelRmSXkd/65QTw== X-Received: by 2002:a05:6214:2484:b0:62f:ff5c:6b3e with SMTP id gi4-20020a056214248400b0062fff5c6b3emr5080927qvb.34.1687001921371; 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-arm-msm@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,