From patchwork Thu Mar 29 01:34:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xiaolei li X-Patchwork-Id: 10314333 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 D06E860467 for ; Thu, 29 Mar 2018 01:37:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C51FA28617 for ; Thu, 29 Mar 2018 01:37:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 349172A1C1; Thu, 29 Mar 2018 01:36:44 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 CE86D29F2C for ; Thu, 29 Mar 2018 01:35:29 +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=Am4BLntLtg7Xh9cOaEoI1jxVm5eNM3TnG28HTG+KxOQ=; b=tQ9kXg7Iv0QCYZ mjGxlU0o8ksAx1klZFkIaqEafEuVQJws3fuAyhy89EYVfXfClx6Hivi2nKwK/yDFqQLMf4on4ahH1 TEAESKepjHHvGlSrToQmCvOLyp4NqjlcbxxsG3DKsSnLSPuOyoGAcyEbnVYDaGE+6NHPvAZk+XiRL ZHevK+Q79epyzuOfrLR2L0wxAqCZm0GyhAXpNcasqeQd7YRn9Gw/lSZoAzqOZiW7r7FwLFd1zauJq KSM+n9OyFUtA9jNK+HF+oObH5nrsz1OOaCe0fwoR9KgO0Q9pXD7JJzmIqTfv+sGop7hq2GP/oMBf7 QKXAfE+k5pmXU64cfO0g==; 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 1f1MTP-0004GI-5X; Thu, 29 Mar 2018 01:35:27 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f1MTJ-0004Cv-NY; Thu, 29 Mar 2018 01:35:24 +0000 X-UUID: 84a9d17ae5c642e4a3566bf151f77e00-20180329 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2028343880; Thu, 29 Mar 2018 09:35:03 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 29 Mar 2018 09:35: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; Thu, 29 Mar 2018 09:35:02 +0800 From: Xiaolei Li To: , Subject: [PATCH v2 2/2] mtd: nand: Fix some function description mismatches in core.c Date: Thu, 29 Mar 2018 09:34:59 +0800 Message-ID: <1522287299-12620-3-git-send-email-xiaolei.li@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522287299-12620-1-git-send-email-xiaolei.li@mediatek.com> References: <1522287299-12620-1-git-send-email-xiaolei.li@mediatek.com> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23748.000 X-TM-AS-Result: No-6.337500-8.000000-10 X-TMASE-MatchedRID: BrNJR/3XBtZBEeXXYJxA3lVN8laWo90M9Nx/wC/5BIDfUZT83lbkECzE U5V3CtgtfMigz8FwNsialrlRCrRxUKnc/rmWa2v0msge4JmkzOVzd7C7BtJobvL9TOBRYiLHxkQ QLAVT64DVuUb0X6r8TjdEUc6JJUwA/yUP/aE/WcaeAiCmPx4NwGmRqNBHmBvepuP9zg477pEqtq 5d3cxkNZd/mwLf2BVUYgV3J/hx+FUza8L4+pUGuad5KKZWQRZGw1hEE05RIacchXTZ3Wukbw== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--6.337500-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23748.000 X-TMASE-POSTMAN: 2-d; X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180328_183521_911379_334CC2AF X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. 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 In core.c, some function descriptions do not match function definitions. Just fix these mismatches. Signed-off-by: Xiaolei Li --- drivers/mtd/nand/core.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c index f237a68..d0cd6f8 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -51,7 +51,7 @@ bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) /** * nanddev_markbad() - Mark a block as bad * @nand: NAND device - * @block: block to mark bad + * @pos: position of the block to mark bad * * Mark a block bad. This function is updating the BBT if available and * calls the low-level markbad hook (nand->ops->markbad()). @@ -117,9 +117,9 @@ bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) /** * nanddev_erase() - Erase a NAND portion * @nand: NAND device - * @block: eraseblock to erase + * @pos: position of the block to erase * - * Erases @block if it's not bad. + * Erases the block if it's not bad. * * Return: 0 in case of success, a negative error code otherwise. */ @@ -179,11 +179,11 @@ int nanddev_mtd_erase(struct mtd_info *mtd, struct erase_info *einfo) /** * nanddev_init() - Initialize a NAND device * @nand: NAND device - * @memorg: NAND memory organization descriptor * @ops: NAND device operations + * @owner: NAND device owner * - * Initializes a NAND device object. Consistency checks are done on @memorg and - * @ops. Also takes care of initializing the BBT. + * Initializes a NAND device object. Consistency checks are done on @ops and + * @nand->memorg. Also takes care of initializing the BBT. * * Return: 0 in case of success, a negative error code otherwise. */