mtd: mtdswap: use MTDSWAP_ECNT_MIN/MAX
authorGeliang Tang <geliangtang@gmail.com>
Tue, 20 Dec 2016 13:54:33 +0000 (21:54 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 19 Apr 2017 20:12:02 +0000 (13:12 -0700)
commite4a8aad8e070e54e486666cc8bb97d69dc81adfb
treea4d3ddb9f61bbaff08bb44c3377424419e6e7ac8
parente8348dc554f108f603101bc49ff897f0c9313c23
mtd: mtdswap: use MTDSWAP_ECNT_MIN/MAX

Since macros MTDSWAP_ECNT_MIN() and MTDSWAP_ECNT_MAX() have been
defined in mtdswap.c, use them instead of open-coding.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdswap.c