diff options
author | Quan Nguyen <quan@os.amperecomputing.com> | 2021-05-19 14:49:28 +0700 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-06-25 17:09:34 +0200 |
commit | 87cf5127968ab3c543ebd98253052b928f9b47da (patch) | |
tree | 31c4a20b3f7ce890394795b0188ef86ce0741371 /include/linux/i2c.h | |
parent | 31df7195b100f7e7b7ac07675d93b3b504400fe9 (diff) |
i2c: core-smbus: Expose PEC calculate function for generic use
Expose the PEC calculation i2c_smbus_pec() for generic use.
Signed-off-by: Quan Nguyen <quan@os.amperecomputing.com>
Acked-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 953a4eecb88f..685f8c73d99e 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -148,6 +148,7 @@ s32 __i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, /* Now follow the 'nice' access routines. These also document the calling conventions of i2c_smbus_xfer. */ +u8 i2c_smbus_pec(u8 crc, u8 *p, size_t count); s32 i2c_smbus_read_byte(const struct i2c_client *client); s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value); s32 i2c_smbus_read_byte_data(const struct i2c_client *client, u8 command); |