]> git.karo-electronics.de Git - linux-beck.git/commit
spi: davinci: setup chip-select timers values only if timer enabled
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 19 Aug 2010 07:14:31 +0000 (12:44 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:26 +0000 (18:38 +0530)
commitfd764463fe28ac53371565f851240e74775fb1aa
tree1a9e23f335559bd40f61f04b787ba20d2e05b2ba
parent25f33512f6ae7e37d7b3d353d57d4d6d066033ce
spi: davinci: setup chip-select timers values only if timer enabled

Setup chip-select timers values only if timer is enabled
(timer_disbled in spi configuration is false).

As a nice side effect, this patch removes code duplicated in
davinci_spi_bufs_pio() and davinci_spi_bufs_dma().

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/spi/davinci_spi.c