]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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>
Mon, 29 Feb 2016 10:03:06 +0000 (11:03 +0100)
commitbf96208f0539d2009ca0b031da2ed7c430edc3a2
tree0fd7c7fe3c3d417debb3bf06b60c797a583d4ffc
parent16a655248965cd04db3e6616a47231fecbf87839
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