From patchwork Tue Apr 10 07:36:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xiaolei li X-Patchwork-Id: 10332443 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 0485B6053C for ; Tue, 10 Apr 2018 07:38:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E713E20950 for ; Tue, 10 Apr 2018 07:38:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBFEB26CF9; Tue, 10 Apr 2018 07:38:00 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5C4F120950 for ; Tue, 10 Apr 2018 07:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eQ9KW9ZIGcIz69PS7TePADKGRTIJf4+0mKuKvetMOOI=; b=FdQE8zekkrrvdW bMB2dbYGyk0t2ra7+gGBfzIBxd0e7wImr5ljPLQlPaQBVinehKQ2kDUT1ryEmhKhYWSt1MPjJu8h1 iiRal+FiqwKsbc8vHh7ckJxYNUD9wGYWHyXJPOHBnGTqxggz4l5iy+1SULW/m1WIMjBWuF6Odq5Jp ZGFh3oaeM2iyQUQkFPfirMVvznW+nogFCD28C5tFdlOOAdfLFogjCQkTvEZ+s6vA8p6l/xal7G5L7 8F2QqFJTxHnV461ReaOlecuOVmE/Wcg+5Y9nbk+7jl0oqjvM0eMGaZrvO9pdAUX/oGVNsKBdngwFT kmpm5rEG8NB+zPIfAwJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5nqm-0006NP-87; Tue, 10 Apr 2018 07:37:56 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5nqF-00060w-EB; Tue, 10 Apr 2018 07:37:26 +0000 X-UUID: a540856eee274894b33ba17027b677b7-20180410 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 743599133; Tue, 10 Apr 2018 15:37:03 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 10 Apr 2018 15:37:01 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 10 Apr 2018 15:37:01 +0800 From: Xiaolei Li To: , Subject: [PATCH v2 2/3] libmtd_legacy: Fix some function description mismatches Date: Tue, 10 Apr 2018 15:36:56 +0800 Message-ID: <1523345817-42627-3-git-send-email-xiaolei.li@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523345817-42627-1-git-send-email-xiaolei.li@mediatek.com> References: <1523345817-42627-1-git-send-email-xiaolei.li@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180410_003723_624972_E3CEBF69 X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mediatek@lists.infradead.org, xiaolei.li@mediatek.com, linux-mtd@lists.infradead.org, srv_heupstream@mediatek.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Xiaolei Li --- lib/libmtd_legacy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libmtd_legacy.c b/lib/libmtd_legacy.c index e1ab48e..97fef04 100644 --- a/lib/libmtd_legacy.c +++ b/lib/libmtd_legacy.c @@ -54,7 +54,7 @@ * @name: device name * @buf: contents of /proc/mtd * @data_size: how much data was read into @buf - * @pos: next string in @buf to parse + * @next: next string in @buf to parse */ struct proc_parse_info { @@ -164,8 +164,8 @@ int legacy_procfs_is_supported(void) } /** - * legacy_dev_presentl - legacy version of 'mtd_dev_present()'. - * @info: the MTD device information is returned here + * legacy_dev_present - legacy version of 'mtd_dev_present()'. + * @mtd_num: MTD device number * * When the kernel does not provide sysfs files for the MTD subsystem, * fall-back to parsing the /proc/mtd file to determine whether an mtd device @@ -404,7 +404,7 @@ out_close: /** * legacy_get_dev_info1 - legacy version of 'mtd_get_dev_info1()'. - * @node: name of the MTD device node + * @mtd_num: MTD device number * @mtd: the MTD device information is returned here * * This function is similar to 'mtd_get_dev_info1()' and has the same