From: Laurent Pinchart Date: Thu, 7 Jan 2016 12:46:42 +0000 (-0200) Subject: [media] tvp5150: Add tvp5151 support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05676b3e33fe2fd693f2c0ff3d058db6ca5e7ed6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] tvp5150: Add tvp5151 support Expand the version detection code to identity the tvp5151. Signed-off-by: Laurent Pinchart Signed-off-by: Javier Martinez Canillas Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index f80928156ad7..2816ceb4874a 100644 --- a/drivers/media/i2c/tvp5150.c +++ b/drivers/media/i2c/tvp5150.c @@ -1139,6 +1139,8 @@ static int tvp5150_detect_version(struct tvp5150 *core) /* ITU-T BT.656.4 timing */ tvp5150_write(sd, TVP5150_REV_SELECT, 0); + } else if (dev_id == 0x5151 && rom_ver == 0x0100) { /* TVP5151 */ + v4l2_info(sd, "tvp5151 detected.\n"); } else { v4l2_info(sd, "*** unknown tvp%04x chip detected.\n", dev_id); }