From bbeb804f68eb49b704676cfff47dc01a7a6d15a0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 4 Dec 2019 13:59:21 +0200 Subject: [PATCH] Revert "input: Set uniq attribute" UNIQ is changes to the kernel has not been accepted yet. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- profiles/audio/avctp.c | 4 +--- src/uinput.h | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index a8a1172..66a4d93 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1224,7 +1224,7 @@ static int uinput_create(struct btd_device *device, const char *name, { struct uinput_dev dev; int fd, err, i; - char dest[18], src[18]; + char src[18]; fd = open("/dev/uinput", O_RDWR); if (fd < 0) { @@ -1282,9 +1282,7 @@ static int uinput_create(struct btd_device *device, const char *name, ioctl(fd, UI_SET_EVBIT, EV_SYN); ba2strlc(btd_adapter_get_address(device_get_adapter(device)), src); - ba2strlc(device_get_address(device), dest); ioctl(fd, UI_SET_PHYS, src); - ioctl(fd, UI_SET_UNIQ, dest); #ifdef TIZEN_FEATURE_BLUEZ_MODIFY ioctl(fd, UI_SET_EVBIT, EV_ABS); diff --git a/src/uinput.h b/src/uinput.h index 589c225..20e0941 100755 --- a/src/uinput.h +++ b/src/uinput.h @@ -686,8 +686,6 @@ extern "C" { #define UI_SET_FFBIT _IOW(UINPUT_IOCTL_BASE, 107, int) #define UI_SET_PHYS _IOW(UINPUT_IOCTL_BASE, 108, char*) #define UI_SET_SWBIT _IOW(UINPUT_IOCTL_BASE, 109, int) -#define UI_SET_PROPBIT _IOW(UINPUT_IOCTL_BASE, 110, int) -#define UI_SET_UNIQ _IOW(UINPUT_IOCTL_BASE, 111, char*) #ifndef NBITS #define NBITS(x) ((((x) - 1) / (sizeof(long) * 8)) + 1) -- 2.7.4