commit | dde67eb1beebcd8493e7b30e74a80f0865ab7e36 | [log] [tgz] |
---|---|---|
author | Peter Rosin <peda@axentia.se> | Mon Jan 22 08:32:01 2018 +0100 |
committer | Peter Rosin <peda@axentia.se> | Tue Mar 06 10:57:59 2018 +0100 |
tree | 341372a636b8cce4fe8672c6529f1401c75255c6 | |
parent | 4a3928c6f8a53fa1aed28ccba227742486e8ddcb [diff] |
i2c: add i2c_get_device_id() to get the standard i2c device id Can be used during probe to double check that the probed device is what is expected. Loosely based on code from Adrian Fiergolski <adrian.fiergolski@cern.ch>. Tested-by: Adrian Fiergolski <adrian.fiergolski@cern.ch> Reviewed-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Peter Rosin <peda@axentia.se>