summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorSowjanya Komatineni <skomatineni@nvidia.com>2020-07-14 21:20:51 -0700
committerThierry Reding <treding@nvidia.com>2020-07-17 16:06:13 +0200
commit767598d447aa46411289c5808b0e45e20a1823b4 (patch)
tree01c552ea6b7e765bf311a03e8937ea8fe81696d6 /drivers/gpu/host1x
parentfce3a51d9b31312aa12ecb72ffabfc4c7b40bdc6 (diff)
downloadlinux-stable-767598d447aa46411289c5808b0e45e20a1823b4.tar.gz
linux-stable-767598d447aa46411289c5808b0e45e20a1823b4.tar.bz2
linux-stable-767598d447aa46411289c5808b0e45e20a1823b4.zip
gpu: host1x: mipi: Update tegra_mipi_request() to be node based
Tegra CSI driver need a separate MIPI device for each channel as calibration of corresponding MIPI pads for each channel should happen independently. So, this patch updates tegra_mipi_request() API to add a device_node pointer argument to allow creating mipi device for specific device node rather than a device. Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/mipi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/host1x/mipi.c b/drivers/gpu/host1x/mipi.c
index e00809d996a2..762d349ad00f 100644
--- a/drivers/gpu/host1x/mipi.c
+++ b/drivers/gpu/host1x/mipi.c
@@ -206,9 +206,9 @@ static int tegra_mipi_power_down(struct tegra_mipi *mipi)
return 0;
}
-struct tegra_mipi_device *tegra_mipi_request(struct device *device)
+struct tegra_mipi_device *tegra_mipi_request(struct device *device,
+ struct device_node *np)
{
- struct device_node *np = device->of_node;
struct tegra_mipi_device *dev;
struct of_phandle_args args;
int err;