hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/i2c/noon010pc30.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for SiliconFile NOON010PC30 CIF (1/11") Image Sensor with ISP
34 *
....@@ -6,11 +7,6 @@
67 *
78 * Initial register configuration based on a driver authored by
89 * HeungJun Kim <riverful.kim@samsung.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 as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
1410 */
1511
1612 #include <linux/delay.h>
....@@ -720,7 +716,8 @@
720716 mutex_init(&info->lock);
721717 sd = &info->sd;
722718 v4l2_i2c_subdev_init(sd, client, &noon010_ops);
723
- strlcpy(sd->name, MODULE_NAME, sizeof(sd->name));
719
+ /* Static name; NEVER use in new drivers! */
720
+ strscpy(sd->name, MODULE_NAME, sizeof(sd->name));
724721
725722 sd->internal_ops = &noon010_subdev_internal_ops;
726723 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;