tvp514x.c (41c177cf354126a22443b5c80cec9fdd313e67e1) tvp514x.c (c188df3db16798c7d26b45be9bbb4101599b04b5)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * drivers/media/i2c/tvp514x.c
4 *
5 * TI TVP5146/47 decoder driver
6 *
7 * Copyright (C) 2008 Texas Instruments Inc
8 * Author: Vaibhav Hiremath <hvaibhav@ti.com>

--- 973 unchanged lines hidden (view full) ---

982 struct tvp514x_platform_data *pdata = NULL;
983 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 };
984 struct device_node *endpoint;
985 unsigned int flags;
986
987 if (!IS_ENABLED(CONFIG_OF) || !client->dev.of_node)
988 return client->dev.platform_data;
989
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * drivers/media/i2c/tvp514x.c
4 *
5 * TI TVP5146/47 decoder driver
6 *
7 * Copyright (C) 2008 Texas Instruments Inc
8 * Author: Vaibhav Hiremath <hvaibhav@ti.com>

--- 973 unchanged lines hidden (view full) ---

982 struct tvp514x_platform_data *pdata = NULL;
983 struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 };
984 struct device_node *endpoint;
985 unsigned int flags;
986
987 if (!IS_ENABLED(CONFIG_OF) || !client->dev.of_node)
988 return client->dev.platform_data;
989
990 endpoint = of_graph_get_next_endpoint(client->dev.of_node, NULL);
990 endpoint = of_graph_get_endpoint_by_regs(client->dev.of_node, 0, -1);
991 if (!endpoint)
992 return NULL;
993
994 if (v4l2_fwnode_endpoint_parse(of_fwnode_handle(endpoint), &bus_cfg))
995 goto done;
996
997 pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL);
998 if (!pdata)

--- 214 unchanged lines hidden ---
991 if (!endpoint)
992 return NULL;
993
994 if (v4l2_fwnode_endpoint_parse(of_fwnode_handle(endpoint), &bus_cfg))
995 goto done;
996
997 pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL);
998 if (!pdata)

--- 214 unchanged lines hidden ---