Ian Lepore 7ec74c580d Add a pair of convenience routines for doing simple "register" read/writes
on i2c devices, where the "register" can be any length.

Many (perhaps most) common i2c devices are organized as a collection of
(usually 1-byte-wide) registers, and are accessed by first writing a 1-byte
register index/offset number, then by reading or writing the data.
Generally there is an auto-increment feature so the when multiple bytes
are read or written, multiple contiguous registers are accessed.

Most existing slave device drivers allocate an array of iic_msg structures,
fill in all the transfer info, and invoke iicbus_transfer().  These new
functions commonize all that and reduce register access to a simple call
with a few arguments.
2017-07-26 20:40:24 +00:00
..
2017-07-01 05:35:29 +00:00
2017-04-14 02:24:02 +00:00
2017-04-14 08:27:42 +00:00
2017-04-06 17:08:59 +00:00
2017-02-23 15:30:21 +00:00
2017-07-01 05:35:29 +00:00
2017-04-27 16:14:32 +00:00
2017-02-28 23:42:47 +00:00
2017-05-06 06:08:44 +00:00
2017-04-14 02:33:26 +00:00
2017-06-13 18:53:56 +00:00
2017-02-28 23:42:47 +00:00
2017-03-01 05:18:43 +00:00
2017-06-08 21:30:34 +00:00
2017-07-14 00:10:51 +00:00
2017-04-14 08:11:50 +00:00
2017-07-01 05:35:29 +00:00
2017-06-21 18:20:17 +00:00
2017-06-30 22:06:24 +00:00
2017-04-14 07:27:23 +00:00
2017-02-28 23:42:47 +00:00
2017-07-18 06:15:05 +00:00
2017-02-28 23:42:47 +00:00
2017-05-23 09:29:05 +00:00
2017-04-06 22:21:49 +00:00
2017-07-01 05:35:29 +00:00
2017-07-01 05:35:29 +00:00
2017-07-01 05:35:29 +00:00