hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/i2c/muxes/i2c-mux-ltc4306.c
....@@ -1,9 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Linear Technology LTC4306 and LTC4305 I2C multiplexer/switch
34 *
45 * Copyright (C) 2017 Analog Devices Inc.
5
- *
6
- * Licensed under the GPL-2.
76 *
87 * Based on: i2c-mux-pca954x.c
98 *
....@@ -208,7 +207,7 @@
208207
209208 static int ltc4306_probe(struct i2c_client *client)
210209 {
211
- struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent);
210
+ struct i2c_adapter *adap = client->adapter;
212211 const struct chip_desc *chip;
213212 struct i2c_mux_core *muxc;
214213 struct ltc4306 *data;