Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9322269ybl; Fri, 17 Jan 2020 09:57:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxnndCUpxXQrbxQfuGHDpzFvO7IecC7KOe3lDqlAyO/htI+QWSpRkDZdes7afScSTkCdQ1V X-Received: by 2002:a9d:74c4:: with SMTP id a4mr7078572otl.119.1579283872097; Fri, 17 Jan 2020 09:57:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579283872; cv=none; d=google.com; s=arc-20160816; b=ohVggG3bu0vDvugDvW8nOeBYmH2/JvtpwzL5nefqrRm7sbH55kmDE5g5gsOC1h0WvM lsXRW1axmPhW2ZzheVWDPiK2zyYa5W7zesm1ewwhiySYOX1cYudWLqEaBv4JZTWvpoHj RJQIz02dlW+sILkNhOjPqv5+GFTShhaskcWzHUM/tUbVwaNSxDAIGPS3/UIWDlFK8mpk 9LG8oIKcYzCzJglz6nlUpyR6QSWhaRytjE3OstzA64Yr+DWM33yl7hp25OlIS91/TYz8 liwpErXDfIp3dm0Aj/mctaXxozzakQvn6oYsGoxOSNVgxYG8K2Ttw45QP+8ujy+/OmvF YKaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BtXiUlUFc9pMm1F/FG6mJ6ieXuPOqrn9JPInceWEjMQ=; b=WkUUxUA9wQ47cLpTwjKI51ohpl8sLGatIhlBaE9q01T/9Fi7u0RkaIni3hwGwK3cHv 0wYT+ShZiKjZTSgGqnjc8PiAjZEdOsYcr2B3+AzMbTrQkB+FItk39oEcig1CfbQTE3ZD v/87eZGSng1HeAARakDwZSdEqviqukAjQCTzfHL/1llir4F8Sk0sNr5D7XoEdgIF9q6P 5nxWia1K9LiaCua//PZFOq1LTGIiHCHX9s0mn+K4uP3XIj29AvWUZixl1qKnG/kLE3ox wN67KvNxGeqB2ofTz98MnPVWsP0pdGnUkszyvHN9sLv2Atrc4HLjUr3OPrNM28szQeR/ lZRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si16049641otq.40.2020.01.17.09.57.40; Fri, 17 Jan 2020 09:57:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729255AbgAQR4m (ORCPT + 99 others); Fri, 17 Jan 2020 12:56:42 -0500 Received: from mga12.intel.com ([192.55.52.136]:28768 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729108AbgAQR4i (ORCPT ); Fri, 17 Jan 2020 12:56:38 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2020 09:56:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,331,1574150400"; d="scan'208";a="249323711" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 17 Jan 2020 09:56:31 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 346664BC; Fri, 17 Jan 2020 19:56:27 +0200 (EET) From: Andy Shevchenko To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, "Guilherme G . Piccoli" , linux-kernel@vger.kernel.org Cc: Andy Shevchenko Subject: [PATCH v1 8/8] rtc: cmos: Switch DMI table match to a test of variable Date: Fri, 17 Jan 2020 19:56:26 +0200 Message-Id: <20200117175626.56358-8-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200117175626.56358-1-andriy.shevchenko@linux.intel.com> References: <20200117175626.56358-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we have a common x86 quirk that provides an exported variable, use it instead of local DMI table match. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-cmos.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 09b7cdda9f55..b8b67a98c47a 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -1219,16 +1220,6 @@ static void use_acpi_alarm_quirks(void) static inline void use_acpi_alarm_quirks(void) { } #endif -static const struct dmi_system_id rtc_cmos_surface3_table[] = { - { - .ident = "Microsoft Surface 3", - .matches = { - DMI_MATCH(DMI_PRODUCT_NAME, "Surface 3"), - }, - }, - {} -}; - /* Every ACPI platform has a mc146818 compatible "cmos rtc". Here we find * its device node and pass extra config data. This helps its driver use * capabilities that the now-obsolete mc146818 didn't have, and informs it @@ -1243,7 +1234,7 @@ static void cmos_wake_setup(struct device *dev) use_acpi_alarm_quirks(); - if (dmi_check_system(rtc_cmos_surface3_table)) + if (x86_microsoft_surface_3_machine) acpi_rtc_info.flags |= CMOS_RTC_FLAGS_SHARED_IRQ; rtc_wake_setup(dev); -- 2.24.1