spi: use simplified spi_sync() calling convention
Given the patch which simplifies the spi_sync calling convention, this one updates the callers of that routine which tried using it according to the previous specification. (Most didn't.) 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>
This commit is contained in:
committed by
Linus Torvalds
parent
9b938b7490
commit
c24b2602af
@ -267,13 +267,12 @@ static int ads7846_read12_ser(struct device *dev, unsigned command)
|
||||
ts->irq_disabled = 0;
|
||||
enable_irq(spi->irq);
|
||||
|
||||
if (req->msg.status)
|
||||
status = req->msg.status;
|
||||
|
||||
/* on-wire is a must-ignore bit, a BE12 value, then padding */
|
||||
sample = be16_to_cpu(req->sample);
|
||||
sample = sample >> 3;
|
||||
sample &= 0x0fff;
|
||||
if (status == 0) {
|
||||
/* on-wire is a must-ignore bit, a BE12 value, then padding */
|
||||
sample = be16_to_cpu(req->sample);
|
||||
sample = sample >> 3;
|
||||
sample &= 0x0fff;
|
||||
}
|
||||
|
||||
kfree(req);
|
||||
return status ? status : sample;
|
||||
|
Reference in New Issue
Block a user