| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Linear Technology LTC4306 and LTC4305 I2C multiplexer/switch |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2017 Analog Devices Inc. |
|---|
| 5 | | - * |
|---|
| 6 | | - * Licensed under the GPL-2. |
|---|
| 7 | 6 | * |
|---|
| 8 | 7 | * Based on: i2c-mux-pca954x.c |
|---|
| 9 | 8 | * |
|---|
| .. | .. |
|---|
| 208 | 207 | |
|---|
| 209 | 208 | static int ltc4306_probe(struct i2c_client *client) |
|---|
| 210 | 209 | { |
|---|
| 211 | | - struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent); |
|---|
| 210 | + struct i2c_adapter *adap = client->adapter; |
|---|
| 212 | 211 | const struct chip_desc *chip; |
|---|
| 213 | 212 | struct i2c_mux_core *muxc; |
|---|
| 214 | 213 | struct ltc4306 *data; |
|---|