From: Brian Niebuhr Date: Fri, 13 Aug 2010 07:57:23 +0000 (+0530) Subject: spi: davinci: simplify prescalar calculation X-Git-Tag: v2.6.38-rc1~454^2~6^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fe0092b1f55f58a749d68ace3a3597e8a2a9163;p=pandora-kernel.git spi: davinci: simplify prescalar calculation Simplify pre-scalar calculation and move it into a seprate function. Refuse to correct invalid pre-scalar values silently as this might lead to unexpected bugs and lower performance. Instead an error will force users to dig into the root-cause of the issue. While at it, remove some device specific checks on the maximum SPI frequency. As the driver supports the SPI interface implemented on various devices, it should only take care of core SPI limitations and leave the device specific handling to platform code. Signed-off-by: Brian Niebuhr Tested-By: Michael Williamson Signed-off-by: Sekhar Nori --- Reading git-diff-tree failed