video: tegra: host: move function pointers to nvhost_driver
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Wed, 16 May 2012 08:26:28 +0000 (13:26 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Wed, 23 May 2012 09:18:46 +0000 (02:18 -0700)
commit5c9ca407ae6056150948b6c3fc5a166af2a3036f
tree70a717dbe306f8737ddb69c0c8946dd149bb87ba
parentcf6d5a8c90cba0b7b4e57aaccff01f0e47e2d878
video: tegra: host: move function pointers to nvhost_driver

- currently, function pointers are inside nvhost_device
- these functions abstract the device specific implementation
of a functionality per SoC
- move them to nvhost_driver so that nvhost_device can be
instantiated from arch code using board files/device trees
- add support to use single driver for multiple devices using
concept of id_table. this will be useful in supporting
multiple SoC devices binding single driver
- also add some notes about how device name is expected

Bug 871237

Change-Id: I4c75d7121d26c3bdc50f058e0d144d89ca0edbd9
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/100985
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
16 files changed:
drivers/media/video/tegra/nvavp/nvavp_dev.c
drivers/video/tegra/dc/dc.c
drivers/video/tegra/host/bus.c
drivers/video/tegra/host/dev.c
drivers/video/tegra/host/dsi/dsi.c
drivers/video/tegra/host/gr2d/gr2d.c
drivers/video/tegra/host/gr3d/gr3d.c
drivers/video/tegra/host/host1x/host1x_channel.c
drivers/video/tegra/host/isp/isp.c
drivers/video/tegra/host/mpe/mpe.c
drivers/video/tegra/host/nvhost_acm.c
drivers/video/tegra/host/nvhost_channel.c
drivers/video/tegra/host/t20/t20.c
drivers/video/tegra/host/t30/t30.c
drivers/video/tegra/host/vi/vi.c
include/linux/nvhost.h