hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/media/v4l2-core/v4l2-flash-led-class.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * V4L2 flash LED sub-device registration helpers.
34 *
45 * Copyright (C) 2015 Samsung Electronics Co., Ltd
56 * Author: Jacek Anaszewski <j.anaszewski@samsung.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/led-class-flash.h>
....@@ -640,7 +637,7 @@
640637 v4l2_subdev_init(sd, &v4l2_flash_subdev_ops);
641638 sd->internal_ops = &v4l2_flash_subdev_internal_ops;
642639 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
643
- strlcpy(sd->name, config->dev_name, sizeof(sd->name));
640
+ strscpy(sd->name, config->dev_name, sizeof(sd->name));
644641
645642 ret = media_entity_pads_init(&sd->entity, 0, NULL);
646643 if (ret < 0)