.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Sonix sn9c201 sn9c202 library |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2012 Jean-Francois Moine <http://moinejf.free.fr> |
---|
5 | 6 | * Copyright (C) 2008-2009 microdia project <microdia@googlegroups.com> |
---|
6 | 7 | * Copyright (C) 2009 Brian Johnson <brijohn@gmail.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * any later version. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | 8 | */ |
---|
18 | 9 | |
---|
19 | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
1613 | 1604 | if (chip->match.addr > 1) |
---|
1614 | 1605 | return -EINVAL; |
---|
1615 | 1606 | if (chip->match.addr == 1) |
---|
1616 | | - strlcpy(chip->name, "sensor", sizeof(chip->name)); |
---|
| 1607 | + strscpy(chip->name, "sensor", sizeof(chip->name)); |
---|
1617 | 1608 | return 0; |
---|
1618 | 1609 | } |
---|
1619 | 1610 | #endif |
---|
.. | .. |
---|
1646 | 1637 | break; |
---|
1647 | 1638 | case SENSOR_HV7131R: |
---|
1648 | 1639 | sd->i2c_intf = 0x81; /* i2c 400 Kb/s */ |
---|
1649 | | - /* fall thru */ |
---|
| 1640 | + fallthrough; |
---|
1650 | 1641 | default: |
---|
1651 | 1642 | cam->cam_mode = vga_mode; |
---|
1652 | 1643 | cam->nmodes = ARRAY_SIZE(vga_mode); |
---|