From patchwork Thu Oct 19 14:43:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13429349 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 4A1C4CDB483 for ; Thu, 19 Oct 2023 14:43:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235426AbjJSOnS (ORCPT ); Thu, 19 Oct 2023 10:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235437AbjJSOnR (ORCPT ); Thu, 19 Oct 2023 10:43:17 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECCA9134 for ; Thu, 19 Oct 2023 07:43:14 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2c50fbc218bso85167951fa.3 for ; Thu, 19 Oct 2023 07:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697726593; x=1698331393; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZidanZapShOTMYSy8dRTfrdEdrq+jVskErnDZbTql3w=; b=UhuHLlVokjHz0B5ox0r5JYNKOlHoZX9rAHsF88NdEFU/A4Z1YLVnf8UMzNbxMq7kPr dRXuxRBY3dBtyUYYQ4AwAhR4IqUX0hJrmf0C2NXCXXkfBcwvEYb8emlBeYigKIza/y9z L9s0eBfho9aK6zzXg/U24pE8wbqwbHHpdzOYKaKVFHE6WPg4fHkTPoJ5OfTVx3Mq/k3i iWuet1//tqYbneR4s5iWRtiddQKFq8yZqnH4BwrQW+tBscVfMFNj8yAXjDn9OvWg3Aj3 DqxuWB3Ha1VYNYaY2nvireYYl7iwoyphc7wLQLW2w8ZdZWVh4j16gJVjWtVdlqkpedVh bucw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697726593; x=1698331393; 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=ZidanZapShOTMYSy8dRTfrdEdrq+jVskErnDZbTql3w=; b=UGbE1/fSXL8DYLDC/LeW4MDMAXXuJAvwei5pwi9Pa11Qpht2hzP8gEF9WGqm3rqC7+ NlARbYJ5wOXUJFlG3EfBCY9T5orSpyOiAkrw5vkloIJ3wwM2oZMv2LsmSk2IVAZfcpml Vo28wHU/DC50Ty8lIaySbU+FgWz4OamVE4Yq2mkqgYaQBhsoUblsLaAWcm3dU0l+UOqQ AEEgxYPqoyyT6ypSPdQNrM7kwPhx/DtQ3TSb3NCEQOLF29v+NbYFD0DPDhz5AZSLQmkA 7u8d1yrmKyS6OmbXKQLYKnuwIz69RHhIyw0AtuKtrHzY5QKcgsc8lUAUQZKB6yknDZSe V7ww== X-Gm-Message-State: AOJu0YydHsRgKJXx1csw1ACYaZFA9hilP9WKKrxAm3E3p+bcaYCY+OW8 6TxcaMzCIPem2vjnrjR0O7Xk5A== X-Google-Smtp-Source: AGHT+IEnwh5NZNVwZB6i0IRegzkzcEf9hRUomzf8uKNcKmuFRzY0N4UeiEB+cBUP6JfWBTFvSZNRMg== X-Received: by 2002:a2e:9854:0:b0:2c5:1ad0:e306 with SMTP id e20-20020a2e9854000000b002c51ad0e306mr1542594ljj.8.1697726593150; Thu, 19 Oct 2023 07:43:13 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id s16-20020a05651c201000b002b6cd89a3fcsm1115758ljo.118.2023.10.19.07.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 07:43:12 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH] thermal/qcom/tsens: drop ops_v0_1 Date: Thu, 19 Oct 2023 17:43:11 +0300 Message-Id: <20231019144311.1035181-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Since the commit 6812d1dfbca9 ("thermal/drivers/qcom/tsens-v0_1: Fix mdm9607 slope values") the default v0.1 implementation of tsens options is unused by the driver. Drop it now to stop compiler complaining about the unused static const. If the need for the default v0.1 ops struct arives, this commit can be easily reverted without further considerations. Fixes: 6812d1dfbca9 ("thermal/drivers/qcom/tsens-v0_1: Fix mdm9607 slope values") Signed-off-by: Dmitry Baryshkov --- 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 87c09f62ee81..32d2d3e33287 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,