forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/media/usb/au0828/au0828-i2c.c
....@@ -1,18 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for the Auvitek AU0828 USB bridge
34 *
45 * Copyright (c) 2008 Steven Toth <stoth@linuxtv.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- *
15
- * GNU General Public License for more details.
166 */
177
188 #include "au0828.h"
....@@ -378,7 +368,7 @@
378368
379369 dev->i2c_adap.dev.parent = &dev->usbdev->dev;
380370
381
- strlcpy(dev->i2c_adap.name, KBUILD_MODNAME,
371
+ strscpy(dev->i2c_adap.name, KBUILD_MODNAME,
382372 sizeof(dev->i2c_adap.name));
383373
384374 dev->i2c_adap.algo = &dev->i2c_algo;