This patchset adds YAS537 variant to the already existing driver for Yamaha YAS magnetometers. Patches 1-4 applies corrections that popped up when working on this. Patches 5-6 are preparations for adding YAS537. Patch 7 finally adds the YAS537 variant. Jakob Hauser (7): iio: magnetometer: yas530: Change range of data in volatile register iio: magnetometer: yas530: Correct scaling of magnetic axes iio: magnetometer: yas530: Correct temperature handling iio: magnetometer: yas530: Change data type of hard_offsets to signed iio: magnetometer: yas530: Change data type of calibration coefficients iio: magnetometer: yas530: Remove redundant defaults on switch devid iio: magnetometer: yas530: Add YAS537 variant drivers/iio/magnetometer/Kconfig | 4 +- drivers/iio/magnetometer/yamaha-yas530.c | 814 +++++++++++++++++++---- 2 files changed, 698 insertions(+), 120 deletions(-) -- 2.35.1