mmc: sdio: improve mmc_io_rw_extended
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 22 Mar 2017 20:59:29 +0000 (21:59 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:42 +0000 (21:41 +0200)
commit7aceaf566e1d6f7bf29516d680ee883697909cc7
tree60dbce529a8f938934a1180c207af0bbbdbf57ea
parent474e25e15f508889d4f8c672ab54323743ee595b
mmc: sdio: improve mmc_io_rw_extended

Improve mmc_io_rw_extended a little:
- using DIV_ROUND_UP achieves the same but is better readable
- simplify code by using sg_set_buf
- simplify one statement by using -= operator

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio_ops.c