From: Mark Brown Date: Wed, 13 Nov 2013 23:44:15 +0000 (+0000) Subject: spi: Factor validation and initialisation of messages outside lock X-Git-Tag: v3.14-rc1~91^2~6^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90808738fd242ef2533e86f2f481bebe8a7aa11b;p=pandora-kernel.git spi: Factor validation and initialisation of messages outside lock Currently we do a bunch of per-message validation and initialisation in __spi_async() which is called with the bus lock held. Since none of this validation depends on the current bus status there's no need to hold the lock to do it so split it out into a separate __spi_validate() function which is called prior to taking the bus lock. This could be slightly neater but keep things simple for now to show the code motion clearly. Based on observations from Martin Sperl. Signed-off-by: Mark Brown --- Reading git-diff-tree failed