From patchwork Thu Jun 3 12:53:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 453256 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp245945jao; Thu, 3 Jun 2021 05:55:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIC4yFxcuQwCn0CuJhgzsSdyJk8Mv/IB0mAXChn2jqTQpaheL7BCwxn5d34A9DKXpM4wBU X-Received: by 2002:a17:906:f0cd:: with SMTP id dk13mr38782932ejb.11.1622724917201; Thu, 03 Jun 2021 05:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622724917; cv=none; d=google.com; s=arc-20160816; b=lUtRgjo5CptB4CAoOvmvO1CghQWi4FkSTd9iJjh1OMo+4Du47kTihZ8K1GRPPjf/Pg h9FQiYAQmD/lwO7P/Q0zaTLNwsAUZGT+YBu7fPrW7lgcuufsW235Mi8RZqOnWmkS9idS SE/Lyh39dMDdJKX2kftYXVAdItQSYVDq04wQQzr35kUdqZprwHWjw3ePwYicdEtyz5wW LNaXGky9nEANX1W3VYvEQzE2h2eXzdguJ0/DX0OA7jAyNw3dc6Gg/89kuolBEsz+lGJs 8aTlQzlP7PFlFeC4n7pWzd2Y1Y3t8MZWyUwlaciA5tmyg7xnI+6bwwX8eTavJh1U38St 1/iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=nCtl0/nPftsUFeEO4vUWbAMOGx5L8Ys/UKViPGi9kAY=; b=loVjVhVCHCF9o+qbMDRSU3Tak1fvcZ50Xjd5mP4JMBKKA7HXNCjbhJzNqJy/wn60aU /xfoxduXvtiX5/YL06A0hq41PjWQozyOFZeLIhcFubODALX+blZ+rrVxeQd+8uqgvQSI zI1KKru3n4s20ARC531eQfP/nXMERa75eQj6GedsM9Qjw6cT2mGurYN0sN90KPtxGdZZ hE18t4EkDvDBLmjbhxsgsv/tqDTSEyuKSJr+QbTIAmjpGnKKsVcPM6YLSZ0ST03YhQrb AzEa7g0gR+hjdkViGoiEhLjcvgIrfVl3hDVqMsS6OtduVWKq279DCgMJcJAKyVJ/rhAe mTfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=Flt1eMbJ; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id y21si990216ejk.208.2021.06.03.05.55.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 05:55:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=Flt1eMbJ; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nCtl0/nPftsUFeEO4vUWbAMOGx5L8Ys/UKViPGi9kAY=; b=Flt1eMbJRqCnv2 0Qyi/DYtiPxzuQU2lHfTg3tzf+fCFPDWtkDou7N+Dr+kb3vOZfSsV6lYYjN7DYVPYjk+8WwHM+78E QpHwLghAX8B8hXFFXvpQbs6KPBscV5/vCAcDSUw58MqI1mTiNBtR7rYHVbA6YgdMYot8LYKsvKA47 z9dp/iyFWrWklV5LSX8lkwi88LZzmSQtuJxL4RLVBLvubnASTH8wj1C2SiGNp4VefYDJeupLvuvgE k/nvAMQoLMk6ykJuMsVUi+nc9v5mF1BVgmRmZyqblky7otqqmQg4S+pNqrO/kDZv3cN3Wvdo4Bx8/ i4BJHi+hBVLEVNJ+7pjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lomrL-008lwC-KC; Thu, 03 Jun 2021 12:54:03 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lomqs-008lkR-0S for linux-mtd@lists.infradead.org; Thu, 03 Jun 2021 12:53:35 +0000 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Fwm2s1Hmsz6twv; Thu, 3 Jun 2021 20:50:29 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 3 Jun 2021 20:53:28 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 3 Jun 2021 20:53:27 +0800 From: Zhen Lei To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd , linux-kernel CC: Zhen Lei Subject: [PATCH 0/2] mtd: core: add and use MTD_DEVICE_ATTR_RO/RW() helper macros to simplify code Date: Thu, 3 Jun 2021 20:53:21 +0800 Message-ID: <20210603125323.12142-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210603_055334_389755_FEDBEB96 X-CRM114-Status: UNSURE ( 5.01 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: List of changed function names: mtd_ecc_stats_corrected_show --> mtd_corrected_bits_show //MTD_DEVICE_ATTR_RO(corrected_bits) /* ecc stats corrected */ mtd_ecc_stats_errors_show --> mtd_ecc_failures_s [...] Content analysis details: (-2.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [45.249.212.188 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org List of changed function names: mtd_ecc_stats_corrected_show --> mtd_corrected_bits_show //MTD_DEVICE_ATTR_RO(corrected_bits) /* ecc stats corrected */ mtd_ecc_stats_errors_show --> mtd_ecc_failures_show //MTD_DEVICE_ATTR_RO(ecc_failures) /* ecc stats errors */ mtd_badblocks_show --> mtd_bad_blocks_show //MTD_DEVICE_ATTR_RO(bad_blocks) mtd_bbtblocks_show --> mtd_bbt_blocks_show //MTD_DEVICE_ATTR_RO(bbt_blocks) Zhen Lei (2): mtd: core: add MTD_DEVICE_ATTR_RO/RW() helper macros mtd: core: use MTD_DEVICE_ATTR_RO/RW() helper macros drivers/mtd/mtdcore.c | 52 ++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 25 deletions(-) -- 2.26.0.106.g9fadedd ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/