[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1455531872-1335-1-git-send-email-ike.pan@canonical.com>
Date: Mon, 15 Feb 2016 18:24:32 +0800
From: Ike Panhc <ike.pan@...onical.com>
To: Darren Hart <dvhart@...radead.org>
Cc: platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] ideapad: show has_hw_rfkill_switch in debugfs
It will be easier for user to report driver status about
hardware radio switch.
Signed-off-by: Ike Panhc <ike.pan@...onical.com>
---
drivers/platform/x86/ideapad-laptop.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 1b39074d..6e47f0f 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -226,6 +226,8 @@ static int debugfs_status_show(struct seq_file *s, void *data)
seq_printf(s, "BL power value:\t%s\n", value ? "On" : "Off");
seq_printf(s, "=====================\n");
+ seq_printf(s, "Has RF switch:\t%s\n",
+ priv->has_hw_rfkill_switch ? "Yes" : "No");
if (!read_ec_data(priv->adev->handle, VPCCMD_R_RF, &value))
seq_printf(s, "Radio status:\t%s(%lu)\n",
value ? "On" : "Off", value);
--
1.9.1
Powered by blists - more mailing lists