| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for M-5MOLS 8M Pixel camera sensor with ISP |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Copyright (C) 2009 Samsung Electronics Co., Ltd. |
|---|
| 8 | 9 | * Author: Dongsoo Nathaniel Kim <dongsoo45.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/i2c.h> |
|---|
| .. | .. |
|---|
| 291 | 287 | * @reg: the I2C_REG() address of an 8-bit status register to check |
|---|
| 292 | 288 | * @value: expected status register value |
|---|
| 293 | 289 | * @mask: bit mask for the read status register value |
|---|
| 294 | | - * @timeout: timeout in miliseconds, or -1 for default timeout |
|---|
| 290 | + * @timeout: timeout in milliseconds, or -1 for default timeout |
|---|
| 295 | 291 | * |
|---|
| 296 | 292 | * The @reg register value is ORed with @mask before comparing with @value. |
|---|
| 297 | 293 | * |
|---|
| .. | .. |
|---|
| 492 | 488 | do { |
|---|
| 493 | 489 | if (code == m5mols_default_ffmt[type].code) |
|---|
| 494 | 490 | return type; |
|---|
| 495 | | - } while (type++ != SIZE_DEFAULT_FFMT); |
|---|
| 491 | + } while (++type != SIZE_DEFAULT_FFMT); |
|---|
| 496 | 492 | |
|---|
| 497 | 493 | return 0; |
|---|
| 498 | 494 | } |
|---|
| .. | .. |
|---|
| 988 | 984 | |
|---|
| 989 | 985 | sd = &info->sd; |
|---|
| 990 | 986 | v4l2_i2c_subdev_init(sd, client, &m5mols_ops); |
|---|
| 991 | | - strlcpy(sd->name, MODULE_NAME, sizeof(sd->name)); |
|---|
| 987 | + /* Static name; NEVER use in new drivers! */ |
|---|
| 988 | + strscpy(sd->name, MODULE_NAME, sizeof(sd->name)); |
|---|
| 992 | 989 | sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; |
|---|
| 993 | 990 | |
|---|
| 994 | 991 | sd->internal_ops = &m5mols_subdev_internal_ops; |
|---|