hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/power/supply/sbs-manager.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for SBS compliant Smart Battery System Managers
34 *
....@@ -10,10 +11,6 @@
1011 * Datasheet LTC1760: http://cds.linear.com/docs/en/datasheet/1760fb.pdf
1112 *
1213 * Karl-Heinz Schneider <karl-heinz@schneider-inet.de>
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2 as
16
- * published by the Free Software Foundation.
1714 */
1815
1916 #include <linux/gpio.h>
....@@ -317,7 +314,7 @@
317314 static int sbsm_probe(struct i2c_client *client,
318315 const struct i2c_device_id *id)
319316 {
320
- struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
317
+ struct i2c_adapter *adapter = client->adapter;
321318 struct sbsm_data *data;
322319 struct device *dev = &client->dev;
323320 struct power_supply_desc *psy_desc;