]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
spi: simplify spi_sync() calling convention
authorMarc Pignat <marc.pignat@hevs.ch>
Wed, 5 Dec 2007 07:45:10 +0000 (23:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Dec 2007 17:21:18 +0000 (09:21 -0800)
commit9b938b749065d6a94172ac24d9748bd66a03da4c
treed5f3540224235751a492c8be8003c331263fe51a
parent3f86f14c0fc9fdb0984e64209df2f47895a07151
spi: simplify spi_sync() calling convention

Simplify spi_sync calling convention, eliminating the need to check both
the return value AND the message->status.  In consequence, this corrects
misbehaviours of spi_read and spi_write (which only checked the former) and
their callers.

Signed-off-by: Marc Pignat <marc.pignat@hevs.ch>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi.c