]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: gl861: re-implement I2C adapter logic
authorAntti Palosaari <crope@iki.fi>
Fri, 23 Aug 2019 23:53:37 +0000 (20:53 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 7 Oct 2019 10:48:13 +0000 (07:48 -0300)
commit1ea76d16569b7fc242b860c7e19549be028b13d1
treebf9961bd0c8d06522921812284b7fd5fdb5e6ead
parentcecf0bbbcb6f035a5ca2197f3e11ec2b7fb3da83
media: gl861: re-implement I2C adapter logic

Device I2C adapter is capable of writing and reading large messages.
For I2C writes there is 2 methods: simple for max 2 byte messages and
usb_control_msg() with payload data for larger I2C messages. Add I2C
adapter logic which selects suitable method according to message size.
Add also support for plain I2C read.

Cc: Akihiro TSUKADA <tskd08@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/dvb-usb-v2/gl861.c