From patchwork Wed Mar 28 09:13:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xiaolei li X-Patchwork-Id: 10312591 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 5124760212 for ; Wed, 28 Mar 2018 09:15:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4471E29C75 for ; Wed, 28 Mar 2018 09:15:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38A5129D82; Wed, 28 Mar 2018 09:15:32 +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 6A7AD29C75 for ; Wed, 28 Mar 2018 09:15:31 +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=ANsQvyIIUM+BBZrZzYcXlo+gH8Lq7Op78QdTIJz3cHs=; b=Ew9CRZ5F2sqijh qzjgYH/sTaDSF35bTafGK38FPuUD4tAzSLTkcHk7/WwyFuQYl0cYeukf5A7GgdMSxQPq4dFEm5kx9 ZycKeaEa8eI1i6YVjLxHKt7KoP84BpZS3GJ9eMZSuNUMFmaUVQyRgl88IEwlSWoRO8ZCUlyrYMA2A 331uqcEiVJuL9j84tepA8qEB+kMbcpqZ7WwbS6yrbHOSSl6rzEWgAIV3gI+KVO0K182jOf/CUpKbA 6VRZZehYCrdL3/ubj9fYThCrLKtobJD1SChKIAJOUdBVC40olU8raGi/J5BkrTt5rhN9IGx3kfo/T 9IQ3m26YiwF5TXp1WjaQ==; 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 1f17Az-0006tb-TX; Wed, 28 Mar 2018 09:15:25 +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 1f17AQ-00051X-Bs; Wed, 28 Mar 2018 09:14:56 +0000 X-UUID: b2d08b1b80ae416b98e1bec8e2155bad-20180328 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1635152161; Wed, 28 Mar 2018 17:14:35 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 28 Mar 2018 17:14:33 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 28 Mar 2018 17:14:33 +0800 From: Xiaolei Li To: , Subject: [PATCH 2/2] mtd: nand: Fix some function description mismatches in core.c Date: Wed, 28 Mar 2018 17:13:58 +0800 Message-ID: <1522228438-64034-3-git-send-email-xiaolei.li@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522228438-64034-1-git-send-email-xiaolei.li@mediatek.com> References: <1522228438-64034-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-23746.005 X-TM-AS-Result: No-5.481100-8.000000-10 X-TMASE-MatchedRID: jdTirKra2+ZBEeXXYJxA3lVN8laWo90M9Nx/wC/5BIDfUZT83lbkECzE U5V3CtgtfMigz8FwNsialrlRCrRxUKnc/rmWa2v0msge4JmkzOVzd7C7BtJobvL9TOBRYiLHxkQ QLAVT64DVuUb0X6r8Thm/7K2aEjs115XTSsyj5b1rRpSjNebQNn0tCKdnhB58I/9UW5M5dRMLky 6aORxHNfcUt5lc1lLgoGRyAacnhaYbkOY5bnrbprk0Pdkw71exRpYGmLsvSzJkclltsYI2I37cG d19dSFd X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.481100-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23746.005 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_021450_566623_2B186806 X-CRM114-Status: UNSURE ( 9.19 ) 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..9f6febd 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: MTD module 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 memory organization. Also takes care of initializing the BBT. * * Return: 0 in case of success, a negative error code otherwise. */