All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dell-laptop: Enable rfkill on Inspiron 3437
@ 2014-05-07  7:10 Edward Lin
  2014-05-07 11:53 ` Matthew Garrett
  0 siblings, 1 reply; 3+ messages in thread
From: Edward Lin @ 2014-05-07  7:10 UTC (permalink / raw)
  To: Matthew Garrett, platform-driver-x86; +Cc: yidi.lin, yk

Create a rfkill whitelist for the specific models.
Add Inspiron 3437 to rfkill whitelist.

Signed-off-by: Edward Lin <yidi.lin@canonical.com>
---
 drivers/platform/x86/dell-laptop.c |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index fed4111..4ead97e 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -271,6 +271,17 @@ static struct dmi_system_id dell_quirks[] = {
 	{ }
 };
 
+static struct dmi_system_id dell_rfkill_whitelist[] = {
+	{
+		.ident = "Dell Inspiron 3437",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 3437"),
+		},
+	},
+	{}
+};
+
 static struct calling_interface_buffer *buffer;
 static struct page *bufferpage;
 static DEFINE_MUTEX(buffer_mutex);
@@ -597,7 +608,7 @@ static int __init dell_setup_rfkill(void)
 	if (product &&  (strncmp(product, "Latitude", 8) == 0 ||
 			 strncmp(product, "Precision", 9) == 0))
 		whitelisted = 1;
-	if (!force_rfkill && !whitelisted)
+	if (!force_rfkill && !whitelisted && !dmi_check_system(dell_rfkill_whitelist))
 		return 0;
 
 	get_buffer();
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-08  7:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-07  7:10 [PATCH] dell-laptop: Enable rfkill on Inspiron 3437 Edward Lin
2014-05-07 11:53 ` Matthew Garrett
2014-05-08  7:19   ` Yidi Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.