media: ov8856: Implement sensor module revision identification
authorRobert Foss <robert.foss@linaro.org>
Mon, 11 May 2020 11:03:50 +0000 (13:03 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 25 May 2020 13:41:46 +0000 (15:41 +0200)
commit96b5b11aeb6ac859d4a8603a82a35d9250ea460d
tree76e01ddedd6c66c9ad7dcec2d621af74356681f2
parent0c2c7a1e0d69221b9d489bfd8cf53262d6f82446
media: ov8856: Implement sensor module revision identification

Query the sensor for its module revision, and compare it
to known revisions.

Currently 2A and 1B revision indentification is supported.

[Sakari Ailus: Wrap a line over 80, alignment, use %u for printing u32]

Signed-off-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov8856.c