]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
iio: magnetometer: tlv493d: remove erroneous shift in X-axis data
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Tue, 10 Feb 2026 16:49:50 +0000 (18:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:38 +0000 (08:24 +0000)
commit82ee91d6b15f06b6094eea2c26afe0032fe8e177
tree697e558602be447b91f7e2f9347c69ed333daac9
parenta318cfc0853706f1d6ce682dba660bc455d674ef
iio: magnetometer: tlv493d: remove erroneous shift in X-axis data

TLV493D_BX2_MAG_X_AXIS_LSB is defined as GENMASK(7, 4). FIELD_GET()
already right-shifts bits [7:4] to [3:0], so the additional >> 4
discards most of the X-axis low nibble. The Y and Z axes correctly
omit this extra shift. Remove it.

Fixes: 106511d280c7 ("iio: magnetometer: add support for Infineon TLV493D 3D Magentic sensor")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/tlv493d.c