From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pb-smtp1.pobox.com ([64.147.108.70] helo=sasl.smtp.pobox.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e27fZ-0002Lp-0I for linux-mtd@lists.infradead.org; Wed, 11 Oct 2017 03:26:58 +0000 From: Nicolas Pitre To: Boris Brezillon Cc: linux-mtd@lists.infradead.org Subject: [PATCH 0/5] unconfuse get_unmapped_area and point/unpoint driver methods Date: Tue, 10 Oct 2017 23:26:16 -0400 Message-Id: <20171011032621.26979-1-nicolas.pitre@linaro.org> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is my first MTD contribution after more than 10 years. Feels like Back to the Future! :-) This series improves or implements the point and unpoint driver methods and reimplements mtd_get_unmapped_area() in terms of those. Because mtd->_point() provides a superset of what mtd->_get_unmapped_area() does then there is no reason for having both. Or worse: having one but not the other. This is motivated by my work on XIP cramfs for both MMU and !MMU systems where I do need the more complete point functionality. And it just looks like the right thing to do. Existing users won't see a difference. diffstat: drivers/mtd/chips/map_ram.c | 34 ++++++++++++++++++++-------------- drivers/mtd/chips/map_rom.c | 34 +++++++++++++++++++++------------- drivers/mtd/devices/mtdram.c | 36 ++++++++++++++++++++++-------------- drivers/mtd/mtdconcat.c | 27 --------------------------- drivers/mtd/mtdcore.c | 17 ++++++++++++----- drivers/mtd/mtdpart.c | 14 -------------- include/linux/mtd/mtd.h | 4 ---- 7 files changed, 75 insertions(+), 91 deletions(-)