.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2005-2006 Micronas USA Inc. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License (Version 2) as |
---|
6 | | - * published by the Free Software Foundation. |
---|
7 | | - * |
---|
8 | | - * This program is distributed in the hope that it will be useful, |
---|
9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
11 | | - * GNU General Public License for more details. |
---|
12 | 4 | */ |
---|
13 | 5 | |
---|
14 | 6 | #include <linux/module.h> |
---|
.. | .. |
---|
208 | 200 | struct i2c_board_info info; |
---|
209 | 201 | |
---|
210 | 202 | memset(&info, 0, sizeof(info)); |
---|
211 | | - strlcpy(info.type, i2c->type, sizeof(info.type)); |
---|
| 203 | + strscpy(info.type, i2c->type, sizeof(info.type)); |
---|
212 | 204 | info.addr = i2c->addr; |
---|
213 | 205 | info.flags = i2c->flags; |
---|
214 | 206 | |
---|
.. | .. |
---|
651 | 643 | case 0xD8: |
---|
652 | 644 | if (go->format == V4L2_PIX_FMT_MJPEG) |
---|
653 | 645 | vb = frame_boundary(go, vb); |
---|
654 | | - /* fall through */ |
---|
| 646 | + fallthrough; |
---|
655 | 647 | default: |
---|
656 | 648 | store_byte(vb, 0xFF); |
---|
657 | 649 | store_byte(vb, buf[i]); |
---|