Hi all, this patchset makes it possible to calibrate ina2xx drivers with different calibration values, which are calculated using max expected current value. It can be read from device tree, platform data or changed during run-time using sysfs. If it isn't specified in device tree or platform data, the driver uses default value, thanks to which the behaviour of the driver don't change in this case. There are two drivers for ina2xx: hwmon and iio. Changes are made for both of them and their bindings as well. These changes allow setting sensor's precision to the required by the board. It is useful in Odroid XU3. Therefore this patchset also sets max-expected-current in OdroidXU3 device tree to values from documentation. Best Regards, Maciej Purski Maciej Purski (4): iio: adc: ina2xx: Make max expected current configurable hwmon: (ina2xx) Make max expected current configurable dt-bindings: hwmon: Add max-expected-current property to ina2xx ARM: dts: Add max-expected-current properties for ina231 in Odroid XU3 Documentation/devicetree/bindings/hwmon/ina2xx.txt | 4 +- Documentation/hwmon/ina2xx | 9 +- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 4 + drivers/hwmon/ina2xx.c | 105 +++++++++++++++++--- drivers/iio/adc/ina2xx-adc.c | 110 ++++++++++++++++++--- include/linux/platform_data/ina2xx.h | 2 + 6 files changed, 203 insertions(+), 31 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html