diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-30 00:07:50 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-10-30 09:29:05 -0400 |
commit | a6c2490f010d9235b1424110c6f414460e41dfe1 (patch) | |
tree | 2c7d6773739791bfa0510e1ea27e88a3e5ab4cdb /drivers/input/input.c | |
parent | dde4ac07263161264d089c7556d0295487787b77 (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/input.c')
-rw-r--r-- | drivers/input/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index c13ced3e0d3d..1730d7331a5d 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -1389,8 +1389,8 @@ int input_register_device(struct input_dev *dev) | |||
1389 | if (!dev->setkeycode) | 1389 | if (!dev->setkeycode) |
1390 | dev->setkeycode = input_default_setkeycode; | 1390 | dev->setkeycode = input_default_setkeycode; |
1391 | 1391 | ||
1392 | snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id), | 1392 | dev_set_name(&dev->dev, "input%ld", |
1393 | "input%ld", (unsigned long) atomic_inc_return(&input_no) - 1); | 1393 | (unsigned long) atomic_inc_return(&input_no) - 1); |
1394 | 1394 | ||
1395 | error = device_add(&dev->dev); | 1395 | error = device_add(&dev->dev); |
1396 | if (error) | 1396 | if (error) |