Message ID | 20240223162905.12416-1-W_Armin@gmx.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-78730-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp698689dyb; Fri, 23 Feb 2024 08:35:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXRQ7pr7Ap+X051DxVMEfwC/JbtqTpeNpp5tm60zmbDp+5t1XppJbDzTuS6W3nQT7IVv/IVu3OnsEwGh+7r/qJG8LDbQw== X-Google-Smtp-Source: AGHT+IHThqZFS+JPVPTL1KMFXnYwdl1wLIKBP4so9ou1BRpzNaZ+4WzJRHgbhml/nHDF+eZIWZMv X-Received: by 2002:a17:902:eccf:b0:1dc:6a9:50bb with SMTP id a15-20020a170902eccf00b001dc06a950bbmr502537plh.40.1708706105392; Fri, 23 Feb 2024 08:35:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708706105; cv=pass; d=google.com; s=arc-20160816; b=J14u8aUyU19I/ERQddBv8PDoaZYqs7KuHZtTIMN4edSWy2fLjnw/YbAINkaCnB7gdG KADMigWFyOxcQxRxJLV5Ar9j/PvRMxGaQakl9uFOOwxp2rwpUx3ZcMnn8x1qhQkn+6Oq 4VjOm7wnYbVG8elrX6OU3f/fgKOb7rZnCG8hxWSR7eTL9mvjTdRYhetxnZ2NW2cSWpEd xxpUVgoaNLhV7ybN/yF/kDXZrW1+oFlu1ezkjqP39UkZmoEul2L5iW2W0AbiiwwKUOzh KrcFjN1ev0EYmsPMskq8NvkkCgZ5h0uCdOLjgc6yFK1JLcOjo/Tzf5MBWsbU7MzDbUL/ Y9sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=E51CmpiO8W2kSjgin4/tA3OSTo5YQSNiy04m+TfdlBM=; fh=oglljD868LPhcoDP0rcfwv19S8wWlwLT5GZxOaaPrmY=; b=FR1Q+z6kD0c21IUaiSwZwsGmkyJySpTr9loVt+toxsmkM7qhoodml5ycNbZx6c2JqC wYfutiIqh+s7CiNs9DNu27CesYZeBormX2eVQn1YD8kCwtoFaWkkNn8Yn3agT2p7TLbc gD8zw7nitTovCS0Kh3mLWIJYS9atbTZ+quS0vQpOw38SlhKGOIFMJB8xV4Yb86dekhNn PMuNr6j1HfFzrPTtF/K7gHYDsWx2AlhC2LSo6cTvYDz3KXKYSyTxFVL1+zx26f+rlobL kYXVr+wnhgOvwdWXxiwbXfo01bebkKlE5G/g7nOrVsVv80yh2/StX8yZTThs8IDqhJNN AkSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=XJIKuRy6; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-78730-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78730-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lm5-20020a170903298500b001d9773a1990si9655843plb.400.2024.02.23.08.35.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:35:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78730-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=XJIKuRy6; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-78730-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78730-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 78B7528B0D6 for <ouuuleilei@gmail.com>; Fri, 23 Feb 2024 16:29:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 175C385C5A; Fri, 23 Feb 2024 16:29:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b="XJIKuRy6" Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE88883CC4; Fri, 23 Feb 2024 16:29:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705762; cv=none; b=ID5L/xe6ZRFZ95op/CTbe11ZuORPiod5b86BNpsBIhkJLavmTmlGp6MDy295tTTSwoWyrDJedN8YF1JjwHmkF68hc7F6ConUtE9WatiQM6Y3tMSwS3nRB/jM5cUS75awKrpFbbAObT431qP1pnJnStxyhMaF1hHjQ+un54DB95Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705762; c=relaxed/simple; bh=uQcQYf3+Y04XG3bF/6l4sxBLO3EUjwoVOCfO6HW/wv4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LI3P+UtYzq8oi6Hlu1a88W30fwm9GI5omm7xLrbCHWYQ7JIXYkxFofliqtWLu22roxbhSu5ELOWkojVHRwEoApp4yLHwuJnSvwPDV8mMbNptCgWXtXSxxtrzcCULCyfmpNgtE5QSgrkAmQpm1zNJuj3+DY2lQcrqJEUU8zNFf9Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b=XJIKuRy6; arc=none smtp.client-ip=212.227.15.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1708705749; x=1709310549; i=w_armin@gmx.de; bh=uQcQYf3+Y04XG3bF/6l4sxBLO3EUjwoVOCfO6HW/wv4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=XJIKuRy6nBe5Tfwo5DEPUnD5bAAo1w4Stmae3Bp9nJyNkhzLbc6Rsc1rqI5WTZ0o rwcMelUgDpYjcv74rLTKSVGyu4j6YFf3BajEFz/pv0bHVq4yT9ELVlRrNiRfn9HTr 3Mel752n2ShUlrb3QKFm864D/V0+JAOWch8W5OfpMOL/igaYE+BYRAenG3r+/NFuR Pwp4PkfVvnX6lBKbT2288y2PSMmtO3XIC9FtuxPprLECbBEoRc6s3RT90No4GycZm rE1NVCwXqUBlQKHMsqj0jRNMlC3+TBZjcDldAS4181kw16Tetj8ffcxTcmP4FPCKb 6fuC+3aezztTwWzpLw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from mx-amd-b650.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MeU0k-1r5JWz0LHI-00aYCd; Fri, 23 Feb 2024 17:29:09 +0100 From: Armin Wolf <W_Armin@gmx.de> To: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com Cc: Dell.Client.Kernel@dell.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: dell-privacy: Remove usage of wmi_has_guid() Date: Fri, 23 Feb 2024 17:29:05 +0100 Message-Id: <20240223162905.12416-1-W_Armin@gmx.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:W31Q1xxw6jXnVTOqEdojWBofCqyiUiFBhm+rj0sZnzWrPUQrymx z6EGkveFeYfUdywBR1Jxxuxc0oDDEIUC1+5jSbVVDproEW4cWekMY6zlvPpy2aFu+V7QySW EE6v0voljDCnCIIGN17nJcaiRZemLjqLFXb2qUEAI/yQGswCWY9fzc35Dckmm2lOdC6GWag KdsDOfX8FHGO+y3LEftCg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:pltGP1Gs7T8=;D5njLxhepIlSGQ8twTVRINaMKSy Y5N/DAIk7XQn/hTSlV7XF7ij7qw/CngoQWWYM8gyuS4choLdt9OS/QzxUft6ZDRjGo8MDdVHS hfUSC1LY2hrMhzsceoydZmZkjnV3+FGGftSuMkYOWxNUHm4qb/ZjlrPOM/J4RL1M+H7wY87ow 71cSlPIib3egh7J2FcygEOug5YP9DpG9Qqtv4nRogKc7j0SLeGQSMitD90mli/o3SRw+gJJhe UyTVya0uzatwqUx9JapWIjeTz9j/L7uE7h1e5k+Dc6DOIzjjmQBKPYc2h5Nz+q9J9u37J992n +1dFPDEl/pTWOTdZDprnN3RjCKzZpyHYcdcC7JPn2wZYBSt+KACCLOuvMq+5ByNVTXoHYl44k DzwI2wihGewRIo47HO60JTMm7I6FkpOQAzu3pq63BOukHj74smYgWXFOeNp+9vo86+GVW8OYx wh+0pMIqTEgQUPApugutzh0CJEYejfL8ykYSTitmEFQ3BVXYrvysVEK8TrOnwEgqvZI4QUdyC IV1QQ31FU0415iQhEfU13SuDuMAM4vcWk7tGS3zw//UtThtRqY8YqQTrsIDNx9OvWkByWiHnd kUTEI4v8lqpEle59bdkZGlV0j+U8XCrtAwfoYiSjvW3GbF1NuW/Mo1WvVBZB6lf3e8Yx3AKAv sXY8HB7ufu5YpRrAL0aZOo8KQ+aMJJ6QdcJXATKXh1EmLWeL+8Cv4N3hkopUk2hSyCHMXNFvS W7/alJtESS6nuwysqJusW7BrpOxkiBZk3uWEbZziDRt1AchuTm6Ra1TVALxLmbJ4A5saPkl5B s9ztEvzjFIQxz9jszQLV/tQzc0eMlfcTw9HXNJVTWouLU= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791708213140395401 X-GMAIL-MSGID: 1791708213140395401 |
Series |
platform/x86: dell-privacy: Remove usage of wmi_has_guid()
|
|
Commit Message
Armin Wolf
Feb. 23, 2024, 4:29 p.m. UTC
The WMI driver core already takes care that the WMI driver is
only bound to WMI devices with a matching GUID.
Remove the unnecessary call to wmi_has_guid(), which will always
be true when the driver probes.
Tested on a Dell Inspiron 3505.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/platform/x86/dell/dell-wmi-privacy.c | 4 ----
1 file changed, 4 deletions(-)
--
2.39.2
Comments
Hi, On 2/23/24 17:29, Armin Wolf wrote: > The WMI driver core already takes care that the WMI driver is > only bound to WMI devices with a matching GUID. > > Remove the unnecessary call to wmi_has_guid(), which will always > be true when the driver probes. > > Tested on a Dell Inspiron 3505. > > Signed-off-by: Armin Wolf <W_Armin@gmx.de> Thanks, patch looks good to me: Reviewed-by: Hans de Goede <hdegoede@redhat.com> Regards, Hans > --- > drivers/platform/x86/dell/dell-wmi-privacy.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/platform/x86/dell/dell-wmi-privacy.c b/drivers/platform/x86/dell/dell-wmi-privacy.c > index 4d94603f7785..4b65e1655d42 100644 > --- a/drivers/platform/x86/dell/dell-wmi-privacy.c > +++ b/drivers/platform/x86/dell/dell-wmi-privacy.c > @@ -297,10 +297,6 @@ static int dell_privacy_wmi_probe(struct wmi_device *wdev, const void *context) > struct key_entry *keymap; > int ret, i, j; > > - ret = wmi_has_guid(DELL_PRIVACY_GUID); > - if (!ret) > - pr_debug("Unable to detect available Dell privacy devices!\n"); > - > priv = devm_kzalloc(&wdev->dev, sizeof(*priv), GFP_KERNEL); > if (!priv) > return -ENOMEM; > -- > 2.39.2 >
On Fri, 23 Feb 2024 17:29:05 +0100, Armin Wolf wrote: > The WMI driver core already takes care that the WMI driver is > only bound to WMI devices with a matching GUID. > > Remove the unnecessary call to wmi_has_guid(), which will always > be true when the driver probes. > > Tested on a Dell Inspiron 3505. > > [...] Thank you for your contribution, it has been applied to my local review-ilpo branch. Note it will show up in the public platform-drivers-x86/review-ilpo branch only once I've pushed my local branch there, which might take a while. The list of commits applied: [1/1] platform/x86: dell-privacy: Remove usage of wmi_has_guid() commit: 39849d8fa03c501305dd6fb814fbfbc768fcf96f -- i.
diff --git a/drivers/platform/x86/dell/dell-wmi-privacy.c b/drivers/platform/x86/dell/dell-wmi-privacy.c index 4d94603f7785..4b65e1655d42 100644 --- a/drivers/platform/x86/dell/dell-wmi-privacy.c +++ b/drivers/platform/x86/dell/dell-wmi-privacy.c @@ -297,10 +297,6 @@ static int dell_privacy_wmi_probe(struct wmi_device *wdev, const void *context) struct key_entry *keymap; int ret, i, j; - ret = wmi_has_guid(DELL_PRIVACY_GUID); - if (!ret) - pr_debug("Unable to detect available Dell privacy devices!\n"); - priv = devm_kzalloc(&wdev->dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM;