From patchwork Mon Feb 15 10:24:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ike Panhc X-Patchwork-Id: 8312341 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 927AEC02AA for ; Mon, 15 Feb 2016 10:24:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCB67204AB for ; Mon, 15 Feb 2016 10:24:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC3852040F for ; Mon, 15 Feb 2016 10:24:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbcBOKYl (ORCPT ); Mon, 15 Feb 2016 05:24:41 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:53033 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752692AbcBOKYj (ORCPT ); Mon, 15 Feb 2016 05:24:39 -0500 Received: from 1.general.ikepanhc.us.vpn ([10.172.69.54] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1aVGKb-0007zy-Ma; Mon, 15 Feb 2016 10:24:38 +0000 From: Ike Panhc To: Darren Hart Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ideapad: show has_hw_rfkill_switch in debugfs Date: Mon, 15 Feb 2016 18:24:32 +0800 Message-Id: <1455531872-1335-1-git-send-email-ike.pan@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455531813-1256-1-git-send-email-ike.pan@canonical.com> References: <1455531813-1256-1-git-send-email-ike.pan@canonical.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It will be easier for user to report driver status about hardware radio switch. Signed-off-by: Ike Panhc --- 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);