| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for AK8813 / AK8814 TV-ecoders from Asahi Kasei Microsystems Co., Ltd. (AKM) |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #include <linux/i2c.h> |
|---|
| .. | .. |
|---|
| 136 | 133 | |
|---|
| 137 | 134 | switch (sel->target) { |
|---|
| 138 | 135 | case V4L2_SEL_TGT_CROP_BOUNDS: |
|---|
| 139 | | - case V4L2_SEL_TGT_CROP_DEFAULT: |
|---|
| 140 | 136 | sel->r.left = 0; |
|---|
| 141 | 137 | sel->r.top = 0; |
|---|
| 142 | 138 | sel->r.width = 720; |
|---|
| .. | .. |
|---|
| 233 | 229 | static int ak881x_probe(struct i2c_client *client, |
|---|
| 234 | 230 | const struct i2c_device_id *did) |
|---|
| 235 | 231 | { |
|---|
| 236 | | - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); |
|---|
| 232 | + struct i2c_adapter *adapter = client->adapter; |
|---|
| 237 | 233 | struct ak881x *ak881x; |
|---|
| 238 | 234 | u8 ifmode, data; |
|---|
| 239 | 235 | |
|---|