forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/macintosh/windfarm_lm75_sensor.c
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Windfarm PowerMac thermal control. LM75 sensor
34 *
45 * (c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.
56 * <benh@kernel.crashing.org>
6
- *
7
- * Released under the term of the GNU GPL v2.
87 */
98
109 #include <linux/types.h>
....@@ -35,8 +34,8 @@
3534 #endif
3635
3736 struct wf_lm75_sensor {
38
- int ds1775 : 1;
39
- int inited : 1;
37
+ unsigned int ds1775 : 1;
38
+ unsigned int inited : 1;
4039 struct i2c_client *i2c;
4140 struct wf_sensor sens;
4241 };
....@@ -152,8 +151,6 @@
152151 static int wf_lm75_remove(struct i2c_client *client)
153152 {
154153 struct wf_lm75_sensor *lm = i2c_get_clientdata(client);
155
-
156
- DBG("wf_lm75: i2c detatch called for %s\n", lm->sens.name);
157154
158155 /* Mark client detached */
159156 lm->i2c = NULL;