Thread (8 messages) 8 messages, 4 authors, 2021-01-11

Re: [PATCH v3 0/3] Use void pointers instead of char in I2C transfer APIs

From: Wolfram Sang <hidden>
Date: 2021-01-11 21:02:27
Also in: linux-i2c, lkml

On Tue, Nov 12, 2019 at 12:31:29PM -0800, Dmitry Torokhov wrote:
While we indeed often deal with a stream of bytes when executing a
transfer, at the higher layers we usually work with more structured
data, and there is not really a reason to require casts to u8 * form the
callers. These series change I2C APIs to accept [const] void pointers,
and also adjust SMBUS implementation to use get/put_unaligned_16() and
memcpy() for moving data around.
I just started to work on something SMBus, so I rediscovered this series
and will comment now.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help