]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: tmio: refactor set_clock a little
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 Jan 2016 11:32:58 +0000 (12:32 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 2 Feb 2016 14:52:15 +0000 (15:52 +0100)
commit9d65cb24480fba14bb11c2531b7146f38e6b96f6
tree51216db01015a0a63377e786c480fe60de6c4572
parent0efea481dfdd42f6ae38f112287007d4b801fa36
mmc: tmio: refactor set_clock a little

Some of the indentation made the code awful to read. Fix that. Also,
introduce defines instead of magic hex values. Note that this includes
one change: We mask out know 0xff instead of 0x1ff. But 0x100 has always
been the clock enable bit. It doesn't make any sense to set it depending
on the clock calculation. Update copyright notices, too. I'll be working
on those files some more in the future.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_pio.c
include/linux/mmc/tmio.h