media: usb: hdpvr: use I2C core to handle only supported messages
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 22 May 2025 08:09:55 +0000 (10:09 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 17 Jun 2025 08:35:15 +0000 (10:35 +0200)
commit1cb109d8863da75c22458b90c43b4e61b994e332
tree17d100c63e738eae96f0efed2259e003228facc7
parentb5ae5a79825ba8037b0be3ef677a24de8c063abf
media: usb: hdpvr: use I2C core to handle only supported messages

The HW can only do write-then-read transactions. This is a common
limitation, so we can add an adapter quirk flag to let the I2C core
enforce the checks instead of open coding them.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/hdpvr/hdpvr-i2c.c