forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/media/platform/omap3isp/ispcsi2.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ispcsi2.c
34 *
....@@ -8,10 +9,6 @@
89 *
910 * Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
1011 * Sakari Ailus <sakari.ailus@iki.fi>
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License version 2 as
14
- * published by the Free Software Foundation.
1512 */
1613 #include <linux/delay.h>
1714 #include <media/v4l2-common.h>
....@@ -710,7 +707,7 @@
710707
711708 /* Skip interrupts until we reach the frame skip count. The CSI2 will be
712709 * automatically disabled, as the frame skip count has been programmed
713
- * in the CSI2_CTx_CTRL1::COUNT field, so reenable it.
710
+ * in the CSI2_CTx_CTRL1::COUNT field, so re-enable it.
714711 *
715712 * It would have been nice to rely on the FRAME_NUMBER interrupt instead
716713 * but it turned out that the interrupt is only generated when the CSI2
....@@ -1235,7 +1232,7 @@
12351232
12361233 v4l2_subdev_init(sd, &csi2_ops);
12371234 sd->internal_ops = &csi2_internal_ops;
1238
- strlcpy(sd->name, "OMAP3 ISP CSI2a", sizeof(sd->name));
1235
+ strscpy(sd->name, "OMAP3 ISP CSI2a", sizeof(sd->name));
12391236
12401237 sd->grp_id = 1 << 16; /* group ID for isp subdevs */
12411238 v4l2_set_subdevdata(sd, csi2);