iio:magnetometer:bmc150_magn: output intended variable
authorHartmut Knaack <knaack.h@gmx.de>
Fri, 17 Jul 2015 08:52:26 +0000 (10:52 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:53:35 +0000 (11:53 +0100)
commit6a14925ef22bf6e9e3f5209db50708210d5ee451
tree677dab6841a52d7e2b909f35349aaa962906cc7f
parent2e187a028496ffde88c9441a5dbb4e2cd58abb98
iio:magnetometer:bmc150_magn: output intended variable

According to the debug/error string, the content of chip_id is supposed to
be output, rather than the return value of the previous operation.

Fixes: c91746a2361d ("iio: magn: Add support for BMC150 magnetometer")

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/bmc150_magn.c