forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/media/usb/go7007/go7007-i2c.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 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.
124 */
135
146 #include <linux/module.h>
....@@ -172,8 +164,6 @@
172164 ++i;
173165 } else if (msgs[i].len == 3) {
174166 if (msgs[i].flags & I2C_M_RD)
175
- return -EIO;
176
- if (msgs[i].len != 3)
177167 return -EIO;
178168 if (go7007_i2c_xfer(go, msgs[i].addr, 0,
179169 (msgs[i].buf[0] << 8) | msgs[i].buf[1],