[MTD] Use DIV_ROUND_UP
authorJulia Lawall <julia@diku.dk>
Sat, 2 Aug 2008 15:14:21 +0000 (17:14 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 2 Aug 2008 17:45:18 +0000 (18:45 +0100)
commitc8872b069c536976b81bccfc95dda945594bc504
treeff131bea50915d6ba95638a51a309af39e32cb84
parentc4308d1076830a72e05eb3e5f58b9ed851229399
[MTD] Use DIV_ROUND_UP

The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/chips/gen_probe.c
drivers/mtd/ssfdc.c