Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2348296rdb; Fri, 8 Dec 2023 05:49:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUKM4switPG+BlMRIduAgi4cUKwNpxj/PN8AAES1Vdx6OECRI2YetQXQkY5bWidaN8yNH6 X-Received: by 2002:a17:902:7ec8:b0:1d0:8cbf:39db with SMTP id p8-20020a1709027ec800b001d08cbf39dbmr21342plb.88.1702043355995; Fri, 08 Dec 2023 05:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702043355; cv=none; d=google.com; s=arc-20160816; b=VUsKGWpf77flQ7U0mUzwjmDr6FsG+p3S1Dhifk4QWPDG30X/u17tCa/LWOuA9SG//J MZWP0sWJ1opZ1I03qXXqAVjmbwBkKewr1y3WP+V/N9nuDNRZBTXQytIiGlQT6f+GhRvC V6sG+OCHGYbnevC05VEXFi/xdD1RP+F2vDXNEJ5w5ougWJiePkNPERCAdDj/VNJDDA8s 6+DVlBmZ/tGwgkPnHccYqcolaiFO6ws6jDzpAmPn/+uUSk89XX2rbgORenOL7RTtpg02 e4TgVGf6+MJtauIHZO0nXviquNYIEd4b6C+Wgz9+E0wE6aFxNh4yU2W5iwAM5UHS0k6i q2sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tQ07+7twL+DUsuEKlo0i2kSfdkLfUiFQBXNBuSPmsrU=; fh=gMHJUsh6UyIiIYafgGOYAHSWfBcxM02qCx0T8UTBzWU=; b=e+Lgpg3G9gO/CYMtbCfX8fFbpAYkUUIJZJJwGjLIhN1l0GG6TBkpxtuomFdJ31QmP4 EYHl7eQ1mPQCg25i1ragaf2xHLU5dhk1h06xpPJWVjk14AadPVHuqpwPdaokKKyvLJCa YJyK8+yaPBLYgkViJyjCIYrVbfsp8fCPyb3+WopRy+WujCq+pHKwfH90ImfEBhgA8Lom WiUEj8FySx5aE35BhZ3+Cw4M75/5GM/K7NAy1Fd/kZw1XtL24LCYbIuzyHhsx2B138bl 7GZs5ESPAfplaAok3OF4YT3x/0GXIqQo5rrils5xbcAAjo+otUtW/11zvLI24duCNoxV JfqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="jjII/BUZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id iw17-20020a170903045100b001d0519835d9si1612851plb.112.2023.12.08.05.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 05:49:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="jjII/BUZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 769F482CD614; Fri, 8 Dec 2023 05:49:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573831AbjLHNs6 (ORCPT + 99 others); Fri, 8 Dec 2023 08:48:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573854AbjLHNsz (ORCPT ); Fri, 8 Dec 2023 08:48:55 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B244319A5; Fri, 8 Dec 2023 05:49:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702043341; x=1733579341; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=XNlRwVlmc+8hzsq40kB9DkDfrP9F0EEFpnBMErhT0CY=; b=jjII/BUZbzjZSeBHP/Wlg1pkrkOfnZvwwJQ8C5SrLVi0bIV7uKEjYH6W k4LlbJw37vSGrGKYTwU1pEjoTwU00/feQ8R5yI899srZ8Xp/i7bmsKNAL nT+uIZa9PjlpSMlTb1/yM3ng7adN3Z7WffwYIRXqNajWMVQsIW7XNTc0c bWzzeoYdoStkD/Xq2TduIvPV5RmYn40EhdqqMCxUEksBEXPBAJ/Iu8gBF B0cMHU3MbK4B/jh18zQrElMpFxS2piUnCaTL4XCVScCouTxbhX/JXmeah VBDlpGdjW3x9EJnzEC83f1k7WmCJkrEC2Plt0VaO6JV+D4D0pBoIakASc w==; X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="7732128" X-IronPort-AV: E=Sophos;i="6.04,261,1695711600"; d="scan'208";a="7732128" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 05:49:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,261,1695711600"; d="scan'208";a="17460342" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.49.180]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 05:48:58 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Hans de Goede , platform-driver-x86@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 1/1] platform/x86: ips: Remove unused debug code Date: Fri, 8 Dec 2023 15:48:45 +0200 Message-Id: <20231208134845.3900-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 08 Dec 2023 05:49:13 -0800 (PST) Remove unused debug code inside #if 0 ... #endif. Signed-off-by: Ilpo Järvinen --- drivers/platform/x86/intel_ips.c | 33 -------------------------------- 1 file changed, 33 deletions(-) diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index 4dfdbfca6841..e26e7e14c44c 100644 --- a/drivers/platform/x86/intel_ips.c +++ b/drivers/platform/x86/intel_ips.c @@ -1105,39 +1105,6 @@ static int ips_monitor(void *data) return 0; } -#if 0 -#define THM_DUMPW(reg) \ - { \ - u16 val = thm_readw(reg); \ - dev_dbg(ips->dev, #reg ": 0x%04x\n", val); \ - } -#define THM_DUMPL(reg) \ - { \ - u32 val = thm_readl(reg); \ - dev_dbg(ips->dev, #reg ": 0x%08x\n", val); \ - } -#define THM_DUMPQ(reg) \ - { \ - u64 val = thm_readq(reg); \ - dev_dbg(ips->dev, #reg ": 0x%016x\n", val); \ - } - -static void dump_thermal_info(struct ips_driver *ips) -{ - u16 ptl; - - ptl = thm_readw(THM_PTL); - dev_dbg(ips->dev, "Processor temp limit: %d\n", ptl); - - THM_DUMPW(THM_CTA); - THM_DUMPW(THM_TRC); - THM_DUMPW(THM_CTV1); - THM_DUMPL(THM_STS); - THM_DUMPW(THM_PTV); - THM_DUMPQ(THM_MGTV); -} -#endif - /** * ips_irq_handler - handle temperature triggers and other IPS events * @irq: irq number -- 2.30.2