1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /***************************************************************************
3 * Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com> *
5 ***************************************************************************/
7 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
9 #include <linux/module.h>
10 #include <linux/init.h>
11 #include <linux/slab.h>
12 #include <linux/jiffies.h>
13 #include <linux/platform_device.h>
14 #include <linux/hwmon.h>
15 #include <linux/hwmon-sysfs.h>
16 #include <linux/err.h>
17 #include <linux/mutex.h>
18 #include "sch56xx-common.h"
20 #define DRVNAME "sch5627"
21 #define DEVNAME DRVNAME /* We only support one model */
23 #define SCH5627_HWMON_ID 0xa5
24 #define SCH5627_COMPANY_ID 0x5c
25 #define SCH5627_PRIMARY_ID 0xa0
27 #define SCH5627_REG_BUILD_CODE 0x39
28 #define SCH5627_REG_BUILD_ID 0x3a
29 #define SCH5627_REG_HWMON_ID 0x3c
30 #define SCH5627_REG_HWMON_REV 0x3d
31 #define SCH5627_REG_COMPANY_ID 0x3e
32 #define SCH5627_REG_PRIMARY_ID 0x3f
33 #define SCH5627_REG_CTRL 0x40
35 #define SCH5627_NO_TEMPS 8
36 #define SCH5627_NO_FANS 4
37 #define SCH5627_NO_IN 5
39 static const u16 SCH5627_REG_TEMP_MSB
[SCH5627_NO_TEMPS
] = {
40 0x2B, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x180, 0x181 };
41 static const u16 SCH5627_REG_TEMP_LSN
[SCH5627_NO_TEMPS
] = {
42 0xE2, 0xE1, 0xE1, 0xE5, 0xE5, 0xE6, 0x182, 0x182 };
43 static const u16 SCH5627_REG_TEMP_HIGH_NIBBLE
[SCH5627_NO_TEMPS
] = {
44 0, 0, 1, 1, 0, 0, 0, 1 };
45 static const u16 SCH5627_REG_TEMP_HIGH
[SCH5627_NO_TEMPS
] = {
46 0x61, 0x57, 0x59, 0x5B, 0x5D, 0x5F, 0x184, 0x186 };
47 static const u16 SCH5627_REG_TEMP_ABS
[SCH5627_NO_TEMPS
] = {
48 0x9B, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x1A8, 0x1A9 };
50 static const u16 SCH5627_REG_FAN
[SCH5627_NO_FANS
] = {
51 0x2C, 0x2E, 0x30, 0x32 };
52 static const u16 SCH5627_REG_FAN_MIN
[SCH5627_NO_FANS
] = {
53 0x62, 0x64, 0x66, 0x68 };
55 static const u16 SCH5627_REG_IN_MSB
[SCH5627_NO_IN
] = {
56 0x22, 0x23, 0x24, 0x25, 0x189 };
57 static const u16 SCH5627_REG_IN_LSN
[SCH5627_NO_IN
] = {
58 0xE4, 0xE4, 0xE3, 0xE3, 0x18A };
59 static const u16 SCH5627_REG_IN_HIGH_NIBBLE
[SCH5627_NO_IN
] = {
61 static const u16 SCH5627_REG_IN_FACTOR
[SCH5627_NO_IN
] = {
62 10745, 3660, 9765, 10745, 3660 };
63 static const char * const SCH5627_IN_LABELS
[SCH5627_NO_IN
] = {
64 "VCC", "VTT", "VBAT", "VTR", "V_IN" };
68 struct device
*hwmon_dev
;
69 struct sch56xx_watchdog_data
*watchdog
;
71 u8 temp_max
[SCH5627_NO_TEMPS
];
72 u8 temp_crit
[SCH5627_NO_TEMPS
];
73 u16 fan_min
[SCH5627_NO_FANS
];
75 struct mutex update_lock
;
76 unsigned long last_battery
; /* In jiffies */
77 char valid
; /* !=0 if following fields are valid */
78 unsigned long last_updated
; /* In jiffies */
79 u16 temp
[SCH5627_NO_TEMPS
];
80 u16 fan
[SCH5627_NO_FANS
];
81 u16 in
[SCH5627_NO_IN
];
84 static struct sch5627_data
*sch5627_update_device(struct device
*dev
)
86 struct sch5627_data
*data
= dev_get_drvdata(dev
);
87 struct sch5627_data
*ret
= data
;
90 mutex_lock(&data
->update_lock
);
92 /* Trigger a Vbat voltage measurement every 5 minutes */
93 if (time_after(jiffies
, data
->last_battery
+ 300 * HZ
)) {
94 sch56xx_write_virtual_reg(data
->addr
, SCH5627_REG_CTRL
,
95 data
->control
| 0x10);
96 data
->last_battery
= jiffies
;
99 /* Cache the values for 1 second */
100 if (time_after(jiffies
, data
->last_updated
+ HZ
) || !data
->valid
) {
101 for (i
= 0; i
< SCH5627_NO_TEMPS
; i
++) {
102 val
= sch56xx_read_virtual_reg12(data
->addr
,
103 SCH5627_REG_TEMP_MSB
[i
],
104 SCH5627_REG_TEMP_LSN
[i
],
105 SCH5627_REG_TEMP_HIGH_NIBBLE
[i
]);
106 if (unlikely(val
< 0)) {
113 for (i
= 0; i
< SCH5627_NO_FANS
; i
++) {
114 val
= sch56xx_read_virtual_reg16(data
->addr
,
116 if (unlikely(val
< 0)) {
123 for (i
= 0; i
< SCH5627_NO_IN
; i
++) {
124 val
= sch56xx_read_virtual_reg12(data
->addr
,
125 SCH5627_REG_IN_MSB
[i
],
126 SCH5627_REG_IN_LSN
[i
],
127 SCH5627_REG_IN_HIGH_NIBBLE
[i
]);
128 if (unlikely(val
< 0)) {
135 data
->last_updated
= jiffies
;
139 mutex_unlock(&data
->update_lock
);
143 static int sch5627_read_limits(struct sch5627_data
*data
)
147 for (i
= 0; i
< SCH5627_NO_TEMPS
; i
++) {
149 * Note what SMSC calls ABS, is what lm_sensors calls max
150 * (aka high), and HIGH is what lm_sensors calls crit.
152 val
= sch56xx_read_virtual_reg(data
->addr
,
153 SCH5627_REG_TEMP_ABS
[i
]);
156 data
->temp_max
[i
] = val
;
158 val
= sch56xx_read_virtual_reg(data
->addr
,
159 SCH5627_REG_TEMP_HIGH
[i
]);
162 data
->temp_crit
[i
] = val
;
164 for (i
= 0; i
< SCH5627_NO_FANS
; i
++) {
165 val
= sch56xx_read_virtual_reg16(data
->addr
,
166 SCH5627_REG_FAN_MIN
[i
]);
169 data
->fan_min
[i
] = val
;
175 static int reg_to_temp(u16 reg
)
177 return (reg
* 625) / 10 - 64000;
180 static int reg_to_temp_limit(u8 reg
)
182 return (reg
- 64) * 1000;
185 static int reg_to_rpm(u16 reg
)
192 return 5400540 / reg
;
195 static ssize_t
name_show(struct device
*dev
, struct device_attribute
*devattr
,
198 return snprintf(buf
, PAGE_SIZE
, "%s\n", DEVNAME
);
201 static ssize_t
temp_show(struct device
*dev
, struct device_attribute
*devattr
,
204 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
205 struct sch5627_data
*data
= sch5627_update_device(dev
);
209 return PTR_ERR(data
);
211 val
= reg_to_temp(data
->temp
[attr
->index
]);
212 return snprintf(buf
, PAGE_SIZE
, "%d\n", val
);
215 static ssize_t
temp_fault_show(struct device
*dev
,
216 struct device_attribute
*devattr
, char *buf
)
218 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
219 struct sch5627_data
*data
= sch5627_update_device(dev
);
222 return PTR_ERR(data
);
224 return snprintf(buf
, PAGE_SIZE
, "%d\n", data
->temp
[attr
->index
] == 0);
227 static ssize_t
temp_max_show(struct device
*dev
,
228 struct device_attribute
*devattr
, char *buf
)
230 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
231 struct sch5627_data
*data
= dev_get_drvdata(dev
);
234 val
= reg_to_temp_limit(data
->temp_max
[attr
->index
]);
235 return snprintf(buf
, PAGE_SIZE
, "%d\n", val
);
238 static ssize_t
temp_crit_show(struct device
*dev
,
239 struct device_attribute
*devattr
, char *buf
)
241 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
242 struct sch5627_data
*data
= dev_get_drvdata(dev
);
245 val
= reg_to_temp_limit(data
->temp_crit
[attr
->index
]);
246 return snprintf(buf
, PAGE_SIZE
, "%d\n", val
);
249 static ssize_t
fan_show(struct device
*dev
, struct device_attribute
*devattr
,
252 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
253 struct sch5627_data
*data
= sch5627_update_device(dev
);
257 return PTR_ERR(data
);
259 val
= reg_to_rpm(data
->fan
[attr
->index
]);
263 return snprintf(buf
, PAGE_SIZE
, "%d\n", val
);
266 static ssize_t
fan_fault_show(struct device
*dev
,
267 struct device_attribute
*devattr
, char *buf
)
269 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
270 struct sch5627_data
*data
= sch5627_update_device(dev
);
273 return PTR_ERR(data
);
275 return snprintf(buf
, PAGE_SIZE
, "%d\n",
276 data
->fan
[attr
->index
] == 0xffff);
279 static ssize_t
fan_min_show(struct device
*dev
,
280 struct device_attribute
*devattr
, char *buf
)
282 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
283 struct sch5627_data
*data
= dev_get_drvdata(dev
);
284 int val
= reg_to_rpm(data
->fan_min
[attr
->index
]);
288 return snprintf(buf
, PAGE_SIZE
, "%d\n", val
);
291 static ssize_t
in_show(struct device
*dev
, struct device_attribute
*devattr
,
294 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
295 struct sch5627_data
*data
= sch5627_update_device(dev
);
299 return PTR_ERR(data
);
301 val
= DIV_ROUND_CLOSEST(
302 data
->in
[attr
->index
] * SCH5627_REG_IN_FACTOR
[attr
->index
],
304 return snprintf(buf
, PAGE_SIZE
, "%d\n", val
);
307 static ssize_t
in_label_show(struct device
*dev
,
308 struct device_attribute
*devattr
, char *buf
)
310 struct sensor_device_attribute
*attr
= to_sensor_dev_attr(devattr
);
312 return snprintf(buf
, PAGE_SIZE
, "%s\n",
313 SCH5627_IN_LABELS
[attr
->index
]);
316 static DEVICE_ATTR_RO(name
);
317 static SENSOR_DEVICE_ATTR_RO(temp1_input
, temp
, 0);
318 static SENSOR_DEVICE_ATTR_RO(temp2_input
, temp
, 1);
319 static SENSOR_DEVICE_ATTR_RO(temp3_input
, temp
, 2);
320 static SENSOR_DEVICE_ATTR_RO(temp4_input
, temp
, 3);
321 static SENSOR_DEVICE_ATTR_RO(temp5_input
, temp
, 4);
322 static SENSOR_DEVICE_ATTR_RO(temp6_input
, temp
, 5);
323 static SENSOR_DEVICE_ATTR_RO(temp7_input
, temp
, 6);
324 static SENSOR_DEVICE_ATTR_RO(temp8_input
, temp
, 7);
325 static SENSOR_DEVICE_ATTR_RO(temp1_fault
, temp_fault
, 0);
326 static SENSOR_DEVICE_ATTR_RO(temp2_fault
, temp_fault
, 1);
327 static SENSOR_DEVICE_ATTR_RO(temp3_fault
, temp_fault
, 2);
328 static SENSOR_DEVICE_ATTR_RO(temp4_fault
, temp_fault
, 3);
329 static SENSOR_DEVICE_ATTR_RO(temp5_fault
, temp_fault
, 4);
330 static SENSOR_DEVICE_ATTR_RO(temp6_fault
, temp_fault
, 5);
331 static SENSOR_DEVICE_ATTR_RO(temp7_fault
, temp_fault
, 6);
332 static SENSOR_DEVICE_ATTR_RO(temp8_fault
, temp_fault
, 7);
333 static SENSOR_DEVICE_ATTR_RO(temp1_max
, temp_max
, 0);
334 static SENSOR_DEVICE_ATTR_RO(temp2_max
, temp_max
, 1);
335 static SENSOR_DEVICE_ATTR_RO(temp3_max
, temp_max
, 2);
336 static SENSOR_DEVICE_ATTR_RO(temp4_max
, temp_max
, 3);
337 static SENSOR_DEVICE_ATTR_RO(temp5_max
, temp_max
, 4);
338 static SENSOR_DEVICE_ATTR_RO(temp6_max
, temp_max
, 5);
339 static SENSOR_DEVICE_ATTR_RO(temp7_max
, temp_max
, 6);
340 static SENSOR_DEVICE_ATTR_RO(temp8_max
, temp_max
, 7);
341 static SENSOR_DEVICE_ATTR_RO(temp1_crit
, temp_crit
, 0);
342 static SENSOR_DEVICE_ATTR_RO(temp2_crit
, temp_crit
, 1);
343 static SENSOR_DEVICE_ATTR_RO(temp3_crit
, temp_crit
, 2);
344 static SENSOR_DEVICE_ATTR_RO(temp4_crit
, temp_crit
, 3);
345 static SENSOR_DEVICE_ATTR_RO(temp5_crit
, temp_crit
, 4);
346 static SENSOR_DEVICE_ATTR_RO(temp6_crit
, temp_crit
, 5);
347 static SENSOR_DEVICE_ATTR_RO(temp7_crit
, temp_crit
, 6);
348 static SENSOR_DEVICE_ATTR_RO(temp8_crit
, temp_crit
, 7);
350 static SENSOR_DEVICE_ATTR_RO(fan1_input
, fan
, 0);
351 static SENSOR_DEVICE_ATTR_RO(fan2_input
, fan
, 1);
352 static SENSOR_DEVICE_ATTR_RO(fan3_input
, fan
, 2);
353 static SENSOR_DEVICE_ATTR_RO(fan4_input
, fan
, 3);
354 static SENSOR_DEVICE_ATTR_RO(fan1_fault
, fan_fault
, 0);
355 static SENSOR_DEVICE_ATTR_RO(fan2_fault
, fan_fault
, 1);
356 static SENSOR_DEVICE_ATTR_RO(fan3_fault
, fan_fault
, 2);
357 static SENSOR_DEVICE_ATTR_RO(fan4_fault
, fan_fault
, 3);
358 static SENSOR_DEVICE_ATTR_RO(fan1_min
, fan_min
, 0);
359 static SENSOR_DEVICE_ATTR_RO(fan2_min
, fan_min
, 1);
360 static SENSOR_DEVICE_ATTR_RO(fan3_min
, fan_min
, 2);
361 static SENSOR_DEVICE_ATTR_RO(fan4_min
, fan_min
, 3);
363 static SENSOR_DEVICE_ATTR_RO(in0_input
, in
, 0);
364 static SENSOR_DEVICE_ATTR_RO(in1_input
, in
, 1);
365 static SENSOR_DEVICE_ATTR_RO(in2_input
, in
, 2);
366 static SENSOR_DEVICE_ATTR_RO(in3_input
, in
, 3);
367 static SENSOR_DEVICE_ATTR_RO(in4_input
, in
, 4);
368 static SENSOR_DEVICE_ATTR_RO(in0_label
, in_label
, 0);
369 static SENSOR_DEVICE_ATTR_RO(in1_label
, in_label
, 1);
370 static SENSOR_DEVICE_ATTR_RO(in2_label
, in_label
, 2);
371 static SENSOR_DEVICE_ATTR_RO(in3_label
, in_label
, 3);
373 static struct attribute
*sch5627_attributes
[] = {
376 &sensor_dev_attr_temp1_input
.dev_attr
.attr
,
377 &sensor_dev_attr_temp2_input
.dev_attr
.attr
,
378 &sensor_dev_attr_temp3_input
.dev_attr
.attr
,
379 &sensor_dev_attr_temp4_input
.dev_attr
.attr
,
380 &sensor_dev_attr_temp5_input
.dev_attr
.attr
,
381 &sensor_dev_attr_temp6_input
.dev_attr
.attr
,
382 &sensor_dev_attr_temp7_input
.dev_attr
.attr
,
383 &sensor_dev_attr_temp8_input
.dev_attr
.attr
,
384 &sensor_dev_attr_temp1_fault
.dev_attr
.attr
,
385 &sensor_dev_attr_temp2_fault
.dev_attr
.attr
,
386 &sensor_dev_attr_temp3_fault
.dev_attr
.attr
,
387 &sensor_dev_attr_temp4_fault
.dev_attr
.attr
,
388 &sensor_dev_attr_temp5_fault
.dev_attr
.attr
,
389 &sensor_dev_attr_temp6_fault
.dev_attr
.attr
,
390 &sensor_dev_attr_temp7_fault
.dev_attr
.attr
,
391 &sensor_dev_attr_temp8_fault
.dev_attr
.attr
,
392 &sensor_dev_attr_temp1_max
.dev_attr
.attr
,
393 &sensor_dev_attr_temp2_max
.dev_attr
.attr
,
394 &sensor_dev_attr_temp3_max
.dev_attr
.attr
,
395 &sensor_dev_attr_temp4_max
.dev_attr
.attr
,
396 &sensor_dev_attr_temp5_max
.dev_attr
.attr
,
397 &sensor_dev_attr_temp6_max
.dev_attr
.attr
,
398 &sensor_dev_attr_temp7_max
.dev_attr
.attr
,
399 &sensor_dev_attr_temp8_max
.dev_attr
.attr
,
400 &sensor_dev_attr_temp1_crit
.dev_attr
.attr
,
401 &sensor_dev_attr_temp2_crit
.dev_attr
.attr
,
402 &sensor_dev_attr_temp3_crit
.dev_attr
.attr
,
403 &sensor_dev_attr_temp4_crit
.dev_attr
.attr
,
404 &sensor_dev_attr_temp5_crit
.dev_attr
.attr
,
405 &sensor_dev_attr_temp6_crit
.dev_attr
.attr
,
406 &sensor_dev_attr_temp7_crit
.dev_attr
.attr
,
407 &sensor_dev_attr_temp8_crit
.dev_attr
.attr
,
409 &sensor_dev_attr_fan1_input
.dev_attr
.attr
,
410 &sensor_dev_attr_fan2_input
.dev_attr
.attr
,
411 &sensor_dev_attr_fan3_input
.dev_attr
.attr
,
412 &sensor_dev_attr_fan4_input
.dev_attr
.attr
,
413 &sensor_dev_attr_fan1_fault
.dev_attr
.attr
,
414 &sensor_dev_attr_fan2_fault
.dev_attr
.attr
,
415 &sensor_dev_attr_fan3_fault
.dev_attr
.attr
,
416 &sensor_dev_attr_fan4_fault
.dev_attr
.attr
,
417 &sensor_dev_attr_fan1_min
.dev_attr
.attr
,
418 &sensor_dev_attr_fan2_min
.dev_attr
.attr
,
419 &sensor_dev_attr_fan3_min
.dev_attr
.attr
,
420 &sensor_dev_attr_fan4_min
.dev_attr
.attr
,
422 &sensor_dev_attr_in0_input
.dev_attr
.attr
,
423 &sensor_dev_attr_in1_input
.dev_attr
.attr
,
424 &sensor_dev_attr_in2_input
.dev_attr
.attr
,
425 &sensor_dev_attr_in3_input
.dev_attr
.attr
,
426 &sensor_dev_attr_in4_input
.dev_attr
.attr
,
427 &sensor_dev_attr_in0_label
.dev_attr
.attr
,
428 &sensor_dev_attr_in1_label
.dev_attr
.attr
,
429 &sensor_dev_attr_in2_label
.dev_attr
.attr
,
430 &sensor_dev_attr_in3_label
.dev_attr
.attr
,
431 /* No in4_label as in4 is a generic input pin */
436 static const struct attribute_group sch5627_group
= {
437 .attrs
= sch5627_attributes
,
440 static int sch5627_remove(struct platform_device
*pdev
)
442 struct sch5627_data
*data
= platform_get_drvdata(pdev
);
445 sch56xx_watchdog_unregister(data
->watchdog
);
448 hwmon_device_unregister(data
->hwmon_dev
);
450 sysfs_remove_group(&pdev
->dev
.kobj
, &sch5627_group
);
455 static int sch5627_probe(struct platform_device
*pdev
)
457 struct sch5627_data
*data
;
458 int err
, build_code
, build_id
, hwmon_rev
, val
;
460 data
= devm_kzalloc(&pdev
->dev
, sizeof(struct sch5627_data
),
465 data
->addr
= platform_get_resource(pdev
, IORESOURCE_IO
, 0)->start
;
466 mutex_init(&data
->update_lock
);
467 platform_set_drvdata(pdev
, data
);
469 val
= sch56xx_read_virtual_reg(data
->addr
, SCH5627_REG_HWMON_ID
);
474 if (val
!= SCH5627_HWMON_ID
) {
475 pr_err("invalid %s id: 0x%02X (expected 0x%02X)\n", "hwmon",
476 val
, SCH5627_HWMON_ID
);
481 val
= sch56xx_read_virtual_reg(data
->addr
, SCH5627_REG_COMPANY_ID
);
486 if (val
!= SCH5627_COMPANY_ID
) {
487 pr_err("invalid %s id: 0x%02X (expected 0x%02X)\n", "company",
488 val
, SCH5627_COMPANY_ID
);
493 val
= sch56xx_read_virtual_reg(data
->addr
, SCH5627_REG_PRIMARY_ID
);
498 if (val
!= SCH5627_PRIMARY_ID
) {
499 pr_err("invalid %s id: 0x%02X (expected 0x%02X)\n", "primary",
500 val
, SCH5627_PRIMARY_ID
);
505 build_code
= sch56xx_read_virtual_reg(data
->addr
,
506 SCH5627_REG_BUILD_CODE
);
507 if (build_code
< 0) {
512 build_id
= sch56xx_read_virtual_reg16(data
->addr
,
513 SCH5627_REG_BUILD_ID
);
519 hwmon_rev
= sch56xx_read_virtual_reg(data
->addr
,
520 SCH5627_REG_HWMON_REV
);
526 val
= sch56xx_read_virtual_reg(data
->addr
, SCH5627_REG_CTRL
);
532 if (!(data
->control
& 0x01)) {
533 pr_err("hardware monitoring not enabled\n");
537 /* Trigger a Vbat voltage measurement, so that we get a valid reading
538 the first time we read Vbat */
539 sch56xx_write_virtual_reg(data
->addr
, SCH5627_REG_CTRL
,
540 data
->control
| 0x10);
541 data
->last_battery
= jiffies
;
544 * Read limits, we do this only once as reading a register on
545 * the sch5627 is quite expensive (and they don't change).
547 err
= sch5627_read_limits(data
);
551 pr_info("found %s chip at %#hx\n", DEVNAME
, data
->addr
);
552 pr_info("firmware build: code 0x%02X, id 0x%04X, hwmon: rev 0x%02X\n",
553 build_code
, build_id
, hwmon_rev
);
555 /* Register sysfs interface files */
556 err
= sysfs_create_group(&pdev
->dev
.kobj
, &sch5627_group
);
560 data
->hwmon_dev
= hwmon_device_register(&pdev
->dev
);
561 if (IS_ERR(data
->hwmon_dev
)) {
562 err
= PTR_ERR(data
->hwmon_dev
);
563 data
->hwmon_dev
= NULL
;
567 /* Note failing to register the watchdog is not a fatal error */
568 data
->watchdog
= sch56xx_watchdog_register(&pdev
->dev
, data
->addr
,
569 (build_code
<< 24) | (build_id
<< 8) | hwmon_rev
,
570 &data
->update_lock
, 1);
575 sch5627_remove(pdev
);
579 static struct platform_driver sch5627_driver
= {
583 .probe
= sch5627_probe
,
584 .remove
= sch5627_remove
,
587 module_platform_driver(sch5627_driver
);
589 MODULE_DESCRIPTION("SMSC SCH5627 Hardware Monitoring Driver");
590 MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
591 MODULE_LICENSE("GPL");