From patchwork Fri Feb 20 13:04:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 5855911 Return-Path: X-Original-To: patchwork-ath10k@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 65741BF440 for ; Fri, 20 Feb 2015 13:06:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D90520379 for ; Fri, 20 Feb 2015 13:06:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADDE220377 for ; Fri, 20 Feb 2015 13:06:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YOnHJ-0002Uq-4o; Fri, 20 Feb 2015 13:05:57 +0000 Received: from wolverine02.qualcomm.com ([199.106.114.251]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YOnHH-0002Q7-4f for ath10k@lists.infradead.org; Fri, 20 Feb 2015 13:05:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1424437555; x=1455973555; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=Gaoh3PqEMUmIsqntuNR7Ws9yc0RjZvGdkt4SPbRHGs8=; b=Rdfg4qyT48XxOMCdqSlsr1BIifNGXBsgNmNjf6u97MvDhBG7mW9RVLWX YxSGspxFW1KpmVM/KtXo86zIpBlPHYR2FWj8JGE4YBN5pR5vt/Sq1E5KU YbsVDDG2hlOq7JaACLIUZW9ABJJ44cDnrhFSumANd3HjHGLqT533LDr4M o=; X-IronPort-AV: E=McAfee;i="5600,1067,7717"; a="196401223" Received: from ironmsg03-r.qualcomm.com ([172.30.46.17]) by wolverine02.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Feb 2015 05:05:39 -0800 X-IronPort-AV: E=Sophos;i="5.09,614,1418112000"; d="scan'208";a="855375930" Received: from nasanexm01e.na.qualcomm.com ([10.85.0.31]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 20 Feb 2015 05:05:38 -0800 Received: from APHYDEXM01E.ap.qualcomm.com (10.252.127.13) by NASANEXM01E.na.qualcomm.com (10.85.0.31) with Microsoft SMTP Server (TLS) id 15.0.995.29; Fri, 20 Feb 2015 05:05:36 -0800 Received: from qcmail1.qualcomm.com (10.80.80.8) by APHYDEXM01E.ap.qualcomm.com (10.252.127.13) with Microsoft SMTP Server (TLS) id 15.0.995.29; Fri, 20 Feb 2015 05:05:28 -0800 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Fri, 20 Feb 2015 18:35:20 +0530 From: Rajkumar Manoharan To: Subject: [PATCH 3/3] ath10k: add symlink for hwmon device Date: Fri, 20 Feb 2015 18:34:12 +0530 Message-ID: <1424437452-28161-3-git-send-email-rmanohar@qti.qualcomm.com> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1424437452-28161-1-git-send-email-rmanohar@qti.qualcomm.com> References: <1424437452-28161-1-git-send-email-rmanohar@qti.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01E.na.qualcomm.com (10.85.0.31) To APHYDEXM01E.ap.qualcomm.com (10.252.127.13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150220_050555_270638_F7013F67 X-CRM114-Status: UNSURE ( 7.79 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.1 (-----) Cc: linux-wireless@vger.kernel.org, Rajkumar Manoharan X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Add symbloic link "thermal_sensors" for hwmon devices for better readability. /sys/class/ieee80211/phyX/device/thermal_sensors -> sys/class/ieee80211/phyX/device/hwmon/hwmonY Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath10k/thermal.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c index 7c54bb1..f601e3e 100644 --- a/drivers/net/wireless/ath/ath10k/thermal.c +++ b/drivers/net/wireless/ath/ath10k/thermal.c @@ -276,6 +276,13 @@ int ath10k_thermal_register(struct ath10k *ar) ret = -EINVAL; goto err_remove_file; } + ret = sysfs_create_link(&ar->dev->kobj, &hwmon_dev->kobj, + "thermal_sensors"); + if (ret) { + ath10k_err(ar, "failed to create hwmon symlink\n"); + goto err_remove_file; + } + return 0; err_remove_file: @@ -292,4 +299,5 @@ void ath10k_thermal_unregister(struct ath10k *ar) thermal_cooling_device_unregister(ar->thermal.cdev); sysfs_remove_link(&ar->dev->kobj, "cooling_device"); sysfs_remove_file(&ar->dev->kobj, &dev_attr_quiet_period.attr); + sysfs_remove_link(&ar->dev->kobj, "thermal_sensors"); }