summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/hdaps.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-05-10 12:15:47 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-10 18:26:53 +0200
commitc5ddb547e899993be56dc7d0bf72bfd7a8d4ae1e (patch)
tree8fd92eb230ac482efd44b02796414a0dcfbb9f28 /drivers/hwmon/hdaps.c
parentSLUB: remove nr_cpu_ids hack (diff)
downloadlinux-c5ddb547e899993be56dc7d0bf72bfd7a8d4ae1e.tar.xz
linux-c5ddb547e899993be56dc7d0bf72bfd7a8d4ae1e.zip
drivers/hwmon: switch to using input_dev->dev.parent
In preparation for struct class_device -> struct device input core conversion, switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/hwmon/hdaps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/hdaps.c b/drivers/hwmon/hdaps.c
index f82fa2d23f95..e0cf5e6fe5bc 100644
--- a/drivers/hwmon/hdaps.c
+++ b/drivers/hwmon/hdaps.c
@@ -574,7 +574,7 @@ static int __init hdaps_init(void)
/* initialize the input class */
hdaps_idev->name = "hdaps";
- hdaps_idev->cdev.dev = &pdev->dev;
+ hdaps_idev->dev.parent = &pdev->dev;
hdaps_idev->evbit[0] = BIT(EV_ABS);
input_set_abs_params(hdaps_idev, ABS_X,
-256, 256, HDAPS_INPUT_FUZZ, HDAPS_INPUT_FLAT);