.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * Xilinx Test Pattern Generator |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Contacts: Hyun Kwon <hyun.kwon@xilinx.com> |
---|
8 | 9 | * Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify |
---|
11 | | - * it under the terms of the GNU General Public License version 2 as |
---|
12 | | - * published by the Free Software Foundation. |
---|
13 | 10 | */ |
---|
14 | 11 | |
---|
15 | 12 | #include <linux/device.h> |
---|
.. | .. |
---|
725 | 722 | const struct xvip_video_format *format; |
---|
726 | 723 | struct device_node *endpoint; |
---|
727 | 724 | |
---|
728 | | - if (!port->name || of_node_cmp(port->name, "port")) |
---|
| 725 | + if (!of_node_name_eq(port, "port")) |
---|
729 | 726 | continue; |
---|
730 | 727 | |
---|
731 | 728 | format = xvip_of_get_format(port); |
---|
.. | .. |
---|
833 | 830 | v4l2_subdev_init(subdev, &xtpg_ops); |
---|
834 | 831 | subdev->dev = &pdev->dev; |
---|
835 | 832 | subdev->internal_ops = &xtpg_internal_ops; |
---|
836 | | - strlcpy(subdev->name, dev_name(&pdev->dev), sizeof(subdev->name)); |
---|
| 833 | + strscpy(subdev->name, dev_name(&pdev->dev), sizeof(subdev->name)); |
---|
837 | 834 | v4l2_set_subdevdata(subdev, xtpg); |
---|
838 | 835 | subdev->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; |
---|
839 | 836 | subdev->entity.ops = &xtpg_media_ops; |
---|