.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for Samsung S5K4ECGX 1/4" 5Mp CMOS Image Sensor SoC |
---|
3 | 4 | * with an Embedded Image Signal Processor. |
---|
.. | .. |
---|
7 | 8 | * |
---|
8 | 9 | * Based on s5k6aa and noon010pc30 driver |
---|
9 | 10 | * Copyright (C) 2011, Samsung Electronics Co., Ltd. |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License as published by |
---|
13 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
14 | | - * (at your option) any later version. |
---|
15 | 11 | */ |
---|
16 | 12 | |
---|
17 | 13 | #include <linux/clk.h> |
---|
.. | .. |
---|
263 | 259 | ret = s5k4ecgx_i2c_write(client, REG_CMDRD_ADDRL, low); |
---|
264 | 260 | if (!ret) |
---|
265 | 261 | ret = s5k4ecgx_i2c_read(client, REG_CMDBUF0_ADDR, val); |
---|
266 | | - if (!ret) |
---|
267 | | - dev_err(&client->dev, "Failed to execute read command\n"); |
---|
268 | 262 | |
---|
269 | 263 | return ret; |
---|
270 | 264 | } |
---|
.. | .. |
---|
954 | 948 | sd = &priv->sd; |
---|
955 | 949 | /* Registering subdev */ |
---|
956 | 950 | v4l2_i2c_subdev_init(sd, client, &s5k4ecgx_ops); |
---|
957 | | - strlcpy(sd->name, S5K4ECGX_DRIVER_NAME, sizeof(sd->name)); |
---|
| 951 | + /* Static name; NEVER use in new drivers! */ |
---|
| 952 | + strscpy(sd->name, S5K4ECGX_DRIVER_NAME, sizeof(sd->name)); |
---|
958 | 953 | |
---|
959 | 954 | sd->internal_ops = &s5k4ecgx_subdev_internal_ops; |
---|
960 | 955 | /* Support v4l2 sub-device user space API */ |
---|