From patchwork Wed Mar 28 09:13:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xiaolei li X-Patchwork-Id: 892037 X-Patchwork-Delegate: boris.brezillon@free-electrons.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mediatek.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bTTV6u1O"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40B2KP6khvz9s08 for ; Wed, 28 Mar 2018 20:15:21 +1100 (AEDT) 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=GdLvZZ90Z0/A76CwB8t/naRKIencaPZgo/qsrKx11MY=; b=bTTV6u1OTjUtFk 3JDbOR+jVhJlv9x8Nl7CRo075POBaRddj84FPNLuM4aYvSWMGcsj0DW6C90/AcltARTcx7wDUFz48 Ov0Az4DHpjn4R87TOQfqtfF5HyAmcmre+HMxMRkiAVOL6BiOesQsZ6XkoyzZS+SE93VBMUFQdEZBz aGNQNvIcGDLpGo0NQDAmNU0HVDQMMfpvYLHlQOtjuzjF02lEAj7mM/khQK2eXgHPic0KQM3wurJat Q000RLRlV8YhuJabKFCS2ulMSEAQ3Ppynt9Lkl6Zh5vIjlyDWSQCpJNvKEUDPuzfDFVe98bKGORG0 ccUqUzFHvAMIcWDNMV+w==; 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 1f17Al-0006OI-8J; Wed, 28 Mar 2018 09:15:11 +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-00051Y-Br; Wed, 28 Mar 2018 09:14:51 +0000 X-UUID: 23cb0591dd924ced980d8e84fc8016fd-20180328 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 872800503; Wed, 28 Mar 2018 17:14:33 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 28 Mar 2018 17:14:32 +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:32 +0800 From: Xiaolei Li To: , Subject: [PATCH 1/2] mtd: Fix some function description mismatches in mtdcore.c Date: Wed, 28 Mar 2018 17:13:57 +0800 Message-ID: <1522228438-64034-2-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.004 X-TM-AS-Result: No-6.452600-8.000000-10 X-TMASE-MatchedRID: QzgX5l08BrhBEeXXYJxA3lVN8laWo90M9Nx/wC/5BIDfUZT83lbkEDtB js7aUEmEkxZqoEsW6HC9UMnedAu04y9FtW7XfHueFYJUGv4DL3yusS9CiBzL8ZFcO2oMvcISo8W MkQWv6iXBcIE78YqRWvcUt5lc1lLgoGRyAacnhaYbFvMMimt1+ZrjpGgPQiiEo0b5H4HPqCajTU T74Hrtn37cGd19dSFd X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--6.452600-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23746.004 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_563293_8058602A X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list 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-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org In mtdcore.c, some function descriptions do not match function definitions. Just fix these mismatches. Signed-off-by: Xiaolei Li --- drivers/mtd/mtdcore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 28553c8..413ea9b 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -419,7 +419,7 @@ int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, EXPORT_SYMBOL_GPL(mtd_wunit_to_pairing_info); /** - * mtd_wunit_to_pairing_info - get wunit from pairing information + * mtd_pairing_info_to_wunit - get wunit from pairing information * @mtd: pointer to new MTD device info structure * @info: pairing information struct * @@ -1525,9 +1525,9 @@ int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, EXPORT_SYMBOL_GPL(mtd_ooblayout_get_databytes); /** - * mtd_ooblayout_get_eccbytes - set data bytes into the oob buffer + * mtd_ooblayout_set_databytes - set data bytes into the oob buffer * @mtd: mtd info structure - * @eccbuf: source buffer to get data bytes from + * @databuf: source buffer to get data bytes from * @oobbuf: OOB buffer * @start: first ECC byte to set * @nbytes: number of ECC bytes to set @@ -1559,7 +1559,7 @@ int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) EXPORT_SYMBOL_GPL(mtd_ooblayout_count_freebytes); /** - * mtd_ooblayout_count_freebytes - count the number of ECC bytes in OOB + * mtd_ooblayout_count_eccbytes - count the number of ECC bytes in OOB * @mtd: mtd info structure * * Works like mtd_ooblayout_count_bytes(), except it count ECC bytes. 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: 892038 X-Patchwork-Delegate: boris.brezillon@free-electrons.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mediatek.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ips5BrTu"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40B2Kj5FdJz9s08 for ; Wed, 28 Mar 2018 20:15:37 +1100 (AEDT) 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=Psg9897sNz3e8CiKFS01urzFHJi1lKNtwLHvInomdHk=; b=ips5BrTuVq2aBS xmSQ32Jh9DAPEvirIsZFpzLsqjrpP84CUoQkcgaRXM8WqlF6/2euln1UV9rr0Hbg2Uh5NQ7qUDW+A FwCagZFPiCjeXMFb2SFxO1wRXRR2G3ux6+0kp6A+XufYQzfHwpvkvqhHzZkrFHsNZeKw9ufzy4z5r kAVR1jWAiB8YteAoZM3GlBBpIx2CAkxVEm3Gfw4NSYK7j78EhyxZ78Yshpi+4IOcHS2eY8PyvKeh2 /lRHHQncYskGZWmwNXa8I11nFXCcYCGuAsyTnA1kriJMW74ucWNtrUangnsnXn2lLAqWPVwDKmdyP QZqP/GHBvyIAAUIWZRXA==; 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 1f17B2-0006vS-Lt; Wed, 28 Mar 2018 09:15:28 +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-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list 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-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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. */