projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hwmon: Convert from class_device to device
[deliverable/linux.git]
/
drivers
/
hwmon
/
applesmc.c
diff --git
a/drivers/hwmon/applesmc.c
b/drivers/hwmon/applesmc.c
index 941729a131f5c41498f47bc77c55c6cc2181736f..21ff8e1268896cf3d8985712599ef7dca0815b00 100644
(file)
--- a/
drivers/hwmon/applesmc.c
+++ b/
drivers/hwmon/applesmc.c
@@
-127,7
+127,7
@@
static s16 rest_x;
static s16 rest_y;
static struct timer_list applesmc_timer;
static struct input_dev *applesmc_idev;
static s16 rest_y;
static struct timer_list applesmc_timer;
static struct input_dev *applesmc_idev;
-static struct
class_device *hwmon_class
_dev;
+static struct
device *hwmon
_dev;
/* Indicates whether this computer has an accelerometer. */
static unsigned int applesmc_accelerometer;
/* Indicates whether this computer has an accelerometer. */
static unsigned int applesmc_accelerometer;
@@
-1287,9
+1287,9
@@
static int __init applesmc_init(void)
goto out_light_wq;
}
goto out_light_wq;
}
- hwmon_
class_
dev = hwmon_device_register(&pdev->dev);
- if (IS_ERR(hwmon_
class_
dev)) {
- ret = PTR_ERR(hwmon_
class_
dev);
+ hwmon_dev = hwmon_device_register(&pdev->dev);
+ if (IS_ERR(hwmon_dev)) {
+ ret = PTR_ERR(hwmon_dev);
goto out_light_ledclass;
}
goto out_light_ledclass;
}
@@
-1331,7
+1331,7
@@
out:
static void __exit applesmc_exit(void)
{
static void __exit applesmc_exit(void)
{
- hwmon_device_unregister(hwmon_
class_
dev);
+ hwmon_device_unregister(hwmon_dev);
if (applesmc_light) {
led_classdev_unregister(&applesmc_backlight);
destroy_workqueue(applesmc_led_wq);
if (applesmc_light) {
led_classdev_unregister(&applesmc_backlight);
destroy_workqueue(applesmc_led_wq);
This page took
0.026532 seconds
and
5
git commands to generate.