Input: struct device - replace bus_id with dev_name(), dev_set_name()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / input / evbug.c
index 0353601ac3b575e9a7e968387ec22d10fb88c04e..f7c5c14ec12ad933d5613fc4ea8c7a93cfa796e7 100644 (file)
@@ -39,7 +39,7 @@ MODULE_LICENSE("GPL");
 static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int value)
 {
        printk(KERN_DEBUG "evbug.c: Event. Dev: %s, Type: %d, Code: %d, Value: %d\n",
-               handle->dev->dev.bus_id, type, code, value);
+               dev_name(&handle->dev->dev), type, code, value);
 }
 
 static int evbug_connect(struct input_handler *handler, struct input_dev *dev,
@@ -65,7 +65,7 @@ static int evbug_connect(struct input_handler *handler, struct input_dev *dev,
                goto err_unregister_handle;
 
        printk(KERN_DEBUG "evbug.c: Connected device: %s (%s at %s)\n",
-               dev->dev.bus_id,
+               dev_name(&dev->dev),
                dev->name ?: "unknown",
                dev->phys ?: "unknown");
 
@@ -81,7 +81,7 @@ static int evbug_connect(struct input_handler *handler, struct input_dev *dev,
 static void evbug_disconnect(struct input_handle *handle)
 {
        printk(KERN_DEBUG "evbug.c: Disconnected device: %s\n",
-               handle->dev->dev.bus_id);
+               dev_name(&handle->dev->dev));
 
        input_close_device(handle);
        input_unregister_handle(handle);