Skip to content

Commit 928edef

Browse files
tititiou36jic23
authored andcommitted
iio: sca3000: Remove an erroneous 'get_device()'
This looks really unusual to have a 'get_device()' hidden in a 'dev_err()' call. Remove it. While at it add a missing \n at the end of the message. Fixes: 574fb25 ("Staging: IIO: VTI sca3000 series accelerometer driver (spi)") Signed-off-by: Christophe JAILLET <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent b455d06 commit 928edef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/accel/sca3000.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ static int sca3000_read_data(struct sca3000_state *st,
980980
st->tx[0] = SCA3000_READ_REG(reg_address_high);
981981
ret = spi_sync_transfer(st->us, xfer, ARRAY_SIZE(xfer));
982982
if (ret) {
983-
dev_err(get_device(&st->us->dev), "problem reading register");
983+
dev_err(&st->us->dev, "problem reading register\n");
984984
return ret;
985985
}
986986

0 commit comments

Comments
 (0)