| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for SiliconFile NOON010PC30 CIF (1/11") Image Sensor with ISP |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Initial register configuration based on a driver authored by |
|---|
| 8 | 9 | * 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. |
|---|
| 14 | 10 | */ |
|---|
| 15 | 11 | |
|---|
| 16 | 12 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 720 | 716 | mutex_init(&info->lock); |
|---|
| 721 | 717 | sd = &info->sd; |
|---|
| 722 | 718 | 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)); |
|---|
| 724 | 721 | |
|---|
| 725 | 722 | sd->internal_ops = &noon010_subdev_internal_ops; |
|---|
| 726 | 723 | sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; |
|---|