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

From: Wolfram Sang
Date: Mon Jan 11 2021 - 16:02:26 EST


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.

Attachment: signature.asc
Description: PGP signature