forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx23885/cx23885-ioctl.c
....@@ -1,20 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for the Conexant CX23885/7/8 PCIe bridge
34 *
45 * Various common ioctl() support functions
56 *
67 * Copyright (c) 2009 Andy Walls <awalls@md.metrocast.net>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- *
17
- * GNU General Public License for more details.
188 */
199
2010 #include "cx23885.h"
....@@ -31,9 +21,9 @@
3121 if (chip->match.addr == 1) {
3222 if (dev->v4l_device == NULL)
3323 return -EINVAL;
34
- strlcpy(chip->name, "cx23417", sizeof(chip->name));
24
+ strscpy(chip->name, "cx23417", sizeof(chip->name));
3525 } else {
36
- strlcpy(chip->name, dev->v4l2_dev.name, sizeof(chip->name));
26
+ strscpy(chip->name, dev->v4l2_dev.name, sizeof(chip->name));
3727 }
3828 return 0;
3929 }