summaryrefslogtreecommitdiff
path: root/src/linux/up-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/up-backend.c')
-rw-r--r--src/linux/up-backend.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c
index 9d08a85..bbfa983 100644
--- a/src/linux/up-backend.c
+++ b/src/linux/up-backend.c
@@ -43,7 +43,6 @@
#include "up-device-wup.h"
#include "up-device-hid.h"
#include "up-device-bluez.h"
-#include "up-input.h"
#include "up-config.h"
#ifdef HAVE_IDEVICE
#include "up-device-idevice.h"
@@ -92,7 +91,6 @@ up_backend_device_new (UpBackend *backend, GUdevDevice *native)
const gchar *subsys;
const gchar *native_path;
UpDevice *device = NULL;
- UpInput *input;
gboolean ret;
subsys = g_udev_device_get_subsystem (native);
@@ -155,22 +153,6 @@ up_backend_device_new (UpBackend *backend, GUdevDevice *native)
/* no valid USB object */
g_clear_object (&device);
- } else if (g_strcmp0 (subsys, "input") == 0) {
-
- /* check input device */
- input = up_input_new ();
- ret = up_input_coldplug (input, backend->priv->daemon, native);
- if (ret) {
- /* we now have a lid */
- up_daemon_set_lid_is_present (backend->priv->daemon, TRUE);
-
- /* not a power device */
- up_device_list_insert (backend->priv->managed_devices, G_OBJECT (native), G_OBJECT (input));
-
- /* no valid input object */
- device = NULL;
- }
- g_object_unref (input);
} else {
native_path = g_udev_device_get_sysfs_path (native);
g_warning ("native path %s (%s) ignoring", native_path, subsys);
@@ -501,8 +483,8 @@ up_backend_coldplug (UpBackend *backend, UpDaemon *daemon)
GList *devices;
GList *l;
guint i;
- const gchar *subsystems_wup[] = {"power_supply", "usb", "usbmisc", "tty", "input", "hid", NULL};
- const gchar *subsystems[] = {"power_supply", "usb", "usbmisc", "input", "hid", NULL};
+ const gchar *subsystems_wup[] = {"power_supply", "usb", "usbmisc", "tty", "hid", NULL};
+ const gchar *subsystems[] = {"power_supply", "usb", "usbmisc", "hid", NULL};
backend->priv->daemon = g_object_ref (daemon);
backend->priv->device_list = up_daemon_get_device_list (daemon);