]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
v4l: ti-vps: vip: Get subdevice from device tree
authorNikhil Devshatwar <nikhil.nd@ti.com>
Fri, 7 Feb 2014 16:16:03 +0000 (10:16 -0600)
committerArthur Philpott <arthur.philpott@ti.com>
Wed, 12 Feb 2014 21:47:57 +0000 (15:47 -0600)
commit40ee1c9a365303f6f4e22d0e374c71e1ed4640b2
treecf472db4fef3e160d6b96e53132c428ffc23ec42
parent7abfd6ace4361d3ff7b9bb278db36a73a8464fa7
v4l: ti-vps: vip: Get subdevice from device tree

Instead of hard-coding VIP slice and sensor mapping,
Get it from device tree.
Parse 'sensor0' property and get the list of I2C clients.
Use the I2C client addresses for v4l2 subdev async notification.

Added subdev list in vip_dev node
- vip_of_probe parses all the i2c phandles
- Use the order of list as priority when multiple devices notify

Change-Id: I34068fb75a52fc86274d08e84bb319b35420dfe8
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
drivers/media/platform/ti-vps/vip.c
drivers/media/platform/ti-vps/vip.h