[PATCH v4 2/2] add w1_ds28e17 driver for the DS28E17 Onewire to I2C master bridge
From: Jan Kandziora
Date: Mon Jul 10 2017 - 19:00:14 EST
Changes in v4 against v3 in this subpatch:
- adapted to linux-4.12.0
Changes in v3 against v2 in this subpatch:
- fixed a bug in using the i2c_adapter_quirks structure
Changes in v2 against v1 in this subpatch:
- added error handling in w1_f19_error()
- added struct i2c_adapter_quirks
- removed unnecessary checks of I2C address and read count
- cleaned up error codes
+ EOPNOTSUPP for read/write count == 0
+ ETIMEDOUT for busy timeout
+ ENXIO for no reply of I2C slave
+ EAGAIN for I2C invalid start condition
+ EIO for all w1 errors
- devm_kzalloc() instead of kzalloc()
- i2c speed to be set as 100, 400, 900 instead of 0, 1, 2
- added driver parameter documentation
- added sysfs documentation
- Kconfig fixed
This subpatch adds a driver for the DS28E17 Onewire to I2C master bridge.
Signed-off-by: Jan Kandziora <jjj@xxxxxx>
---