aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mousedev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-30 00:07:50 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-10-30 09:29:05 -0400
commita6c2490f010d9235b1424110c6f414460e41dfe1 (patch)
tree2c7d6773739791bfa0510e1ea27e88a3e5ab4cdb /drivers/input/mousedev.c
parentdde4ac07263161264d089c7556d0295487787b77 (diff)
Input: struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mousedev.c')
-rw-r--r--drivers/input/mousedev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index 8137e50ded87..4ab8b28bace8 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -879,8 +879,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev,
879 mousedev->handle.handler = handler; 879 mousedev->handle.handler = handler;
880 mousedev->handle.private = mousedev; 880 mousedev->handle.private = mousedev;
881 881
882 strlcpy(mousedev->dev.bus_id, mousedev->name, 882 dev_set_name(&mousedev->dev, mousedev->name);
883 sizeof(mousedev->dev.bus_id));
884 mousedev->dev.class = &input_class; 883 mousedev->dev.class = &input_class;
885 if (dev) 884 if (dev)
886 mousedev->dev.parent = &dev->dev; 885 mousedev->dev.parent = &dev->dev;