i2c: i801: Add i801_simple_transaction(), complementing i801_block_transaction()
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 16 Feb 2023 16:10:30 +0000 (17:10 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 17 Feb 2023 21:11:22 +0000 (22:11 +0100)
commitdd2d18b5c04099698dfe9ead149f9247a2d5c489
tree44d32056904b5587a76d967945e389da65fe5c03
parent38bd413638b245246fb35b5e94c63e0f0b791256
i2c: i801: Add i801_simple_transaction(), complementing i801_block_transaction()

Factor out non-block pre/post processing to a new function
i801_simple_transaction(), complementing existing function
i801_block_transaction(). This makes i801_access() better readable.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-i801.c