hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/i2c/ak881x.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for AK8813 / AK8814 TV-ecoders from Asahi Kasei Microsystems Co., Ltd. (AKM)
34 *
45 * Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107
118 #include <linux/i2c.h>
....@@ -136,7 +133,6 @@
136133
137134 switch (sel->target) {
138135 case V4L2_SEL_TGT_CROP_BOUNDS:
139
- case V4L2_SEL_TGT_CROP_DEFAULT:
140136 sel->r.left = 0;
141137 sel->r.top = 0;
142138 sel->r.width = 720;
....@@ -233,7 +229,7 @@
233229 static int ak881x_probe(struct i2c_client *client,
234230 const struct i2c_device_id *did)
235231 {
236
- struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
232
+ struct i2c_adapter *adapter = client->adapter;
237233 struct ak881x *ak881x;
238234 u8 ifmode, data;
239235