From patchwork Sun Aug 6 16:28:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian-Hong Pan X-Patchwork-Id: 9883989 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F3A0E602B6 for ; Sun, 6 Aug 2017 19:21:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA8F02818E for ; Sun, 6 Aug 2017 19:21:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DECE128536; Sun, 6 Aug 2017 19:21:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C14E2858A for ; Sun, 6 Aug 2017 19:21:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbdHFTVL (ORCPT ); Sun, 6 Aug 2017 15:21:11 -0400 Received: from msr12.hinet.net ([168.95.4.112]:37953 "EHLO msr12.hinet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751333AbdHFTVL (ORCPT ); Sun, 6 Aug 2017 15:21:11 -0400 X-Greylist: delayed 10300 seconds by postgrey-1.27 at vger.kernel.org; Sun, 06 Aug 2017 15:21:09 EDT Received: from StarNight.localdomain (61-230-46-88.dynamic-ip.hinet.net [61.230.46.88]) by msr12.hinet.net (8.14.9/8.14.9) with ESMTP id v76GTFhU000790; Mon, 7 Aug 2017 00:29:15 +0800 (CST) From: Jian-Hong Pan To: Alexander Aring , Stefan Schmidt , Jonathan Corbet , linux-doc@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Jian-Hong Pan Subject: [PATCH] doc: linux-wpan: Change the old function names to the lastest function names Date: Mon, 7 Aug 2017 00:28:29 +0800 Message-Id: <20170806162829.2540-1-starnight@g.ncu.edu.tw> X-Mailer: git-send-email 2.13.3 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFrMTGxWL7TC9C965ze6TBxxZui7lnSy0uNP9jtXhyoJ3RYmHbEhaL O5OXsVjsfzKbzYHNo/+vgceW/rvsHov7JrN6fN4k59H0YQZbAGsUa2ZeUn5FAmvGibbLTAVb +SuuLlzN2MA4lbeLkZNDSCBCYuPySYwgNpuAjsSzfZvZuhi5OEQE1jFKvJ6+mx0kwSygJTHt 3AIWEFtYIFbi69IdrCA2i4CqxP3//9hAbF4BK4kz+yeD2RIC8hITe6cxTmDkWMUoklucqFuc W2yoa6yXkZmXWqIHxJsYgd5bEc/uuYPx7EnDQ4xMHJyHGAU4GJV4eAX/e0UKsSaWFVfmgsS5 DzFKcjApifKWrmiLFOJLyk+pzEgszogvKs1JLT7EKMHBoyTC+9CpPVKIt7ggMbc4Mx0mJcPB oSTBuw4kJViUmp5akZaZU5JaBJE+xWjM8WnW1i9MHK8m/P/GJMSSl5+XKiXOW+4IVC4AMimj NA+uGhYZlxhlpYR51c2AangKUotyM0tQ5V8xigP9IMz7BmQpT2ZeCdw5r4AuZQK6VDOpFeTS kkSEFAAS8QAn7wEAAA== Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The function declaration in the lastest include/net/mac802154.h has been changed since v3.19. ieee802154_alloc_device => ieee802154_alloc_hw ieee802154_free_device => ieee802154_free_hw ieee802154_register_device => ieee802154_register_hw ieee802154_unregister_device => ieee802154_unregister_hw However, the description in the Device drivers API section of Documentation/networking/ieee802154.txt is still in the state of v3.18.63. Signed-off-by: Jian-Hong Pan Acked-by: Stefan Schmidt --- Documentation/networking/ieee802154.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/networking/ieee802154.txt b/Documentation/networking/ieee802154.txt index 22bbc7225f8..ca1697a2273 100644 --- a/Documentation/networking/ieee802154.txt +++ b/Documentation/networking/ieee802154.txt @@ -96,17 +96,17 @@ Device drivers API ================== The include/net/mac802154.h defines following functions: - - struct ieee802154_dev *ieee802154_alloc_device - (size_t priv_size, struct ieee802154_ops *ops): - allocation of IEEE 802.15.4 compatible device + - struct ieee802154_hw * + ieee802154_alloc_hw(size_t priv_data_len, const struct ieee802154_ops *ops): + allocation of IEEE 802.15.4 compatible hardware device - - void ieee802154_free_device(struct ieee802154_dev *dev): - freeing allocated device + - void ieee802154_free_hw(struct ieee802154_hw *hw): + freeing allocated hardware device - - int ieee802154_register_device(struct ieee802154_dev *dev): - register PHY in the system + - int ieee802154_register_hw(struct ieee802154_hw *hw): + register PHY which is the allocated hardware device, in the system - - void ieee802154_unregister_device(struct ieee802154_dev *dev): + - void ieee802154_unregister_hw(struct ieee802154_hw *hw): freeing registered PHY Moreover IEEE 802.15.4 device operations structure should be filled.