diff options
author | Mayuresh Kulkarni <mkulkarni@nvidia.com> | 2012-05-16 13:56:28 +0530 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-05-23 02:18:46 -0700 |
commit | 5c9ca407ae6056150948b6c3fc5a166af2a3036f (patch) | |
tree | 70a717dbe306f8737ddb69c0c8946dd149bb87ba /drivers/video/tegra/host/vi | |
parent | cf6d5a8c90cba0b7b4e57aaccff01f0e47e2d878 (diff) |
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>
Diffstat (limited to 'drivers/video/tegra/host/vi')
-rw-r--r-- | drivers/video/tegra/host/vi/vi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/vi/vi.c b/drivers/video/tegra/host/vi/vi.c index a6f902a1ac7b..3cfc7e32cbc1 100644 --- a/drivers/video/tegra/host/vi/vi.c +++ b/drivers/video/tegra/host/vi/vi.c @@ -25,7 +25,8 @@ #include "dev.h" #include "bus_client.h" -static int __devinit vi_probe(struct nvhost_device *dev) +static int __devinit vi_probe(struct nvhost_device *dev, + struct nvhost_device_id *id_table) { int err = 0; |