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)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:23:40 +0000 (01:23 -0700)
commitad2ba38bba4f9fcce5d72937c52efc25c63f6127
treec4846f6d6f59a8ed555f883f03226ac814512598
parent7b1a5c41cc88b7b26a8626486c1bcc3d6c8d7600
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>

Rebase-Id: R90613568fef6194eb663cc043a37f94e4f230806
15 files changed:
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