Commit a55693f8 authored by Peter Hutterer's avatar Peter Hutterer

udev: drop the JUMPING_SEMI_MT quirk, no-one uses it

Obsolete since 342bc510 when we disabled MT on
all semi-mt touchpads.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent a9ef4ba1
......@@ -1266,7 +1266,6 @@ evdev_read_model_flags(struct evdev_device *device)
MODEL(WACOM_TOUCHPAD),
MODEL(ALPS_TOUCHPAD),
MODEL(SYNAPTICS_SERIAL_TOUCHPAD),
MODEL(JUMPING_SEMI_MT),
MODEL(BOUNCING_KEYS),
MODEL(CYBORG_RAT),
MODEL(HP_STREAM11_TOUCHPAD),
......
......@@ -110,7 +110,6 @@ enum evdev_device_model {
EVDEV_MODEL_WACOM_TOUCHPAD = (1 << 7),
EVDEV_MODEL_ALPS_TOUCHPAD = (1 << 8),
EVDEV_MODEL_SYNAPTICS_SERIAL_TOUCHPAD = (1 << 9),
EVDEV_MODEL_JUMPING_SEMI_MT = (1 << 10),
EVDEV_MODEL_BOUNCING_KEYS = (1 << 11),
EVDEV_MODEL_LENOVO_X220_TOUCHPAD_FW81 = (1 << 12),
EVDEV_MODEL_LENOVO_CARBON_X1_6TH = (1 << 13),
......
......@@ -102,15 +102,6 @@ static struct input_absinfo absinfo[] = {
{ .value = -1 }
};
static const char udev_rule[] =
"ACTION==\"remove\", GOTO=\"synaptics_semi_mt_end\"\n"
"KERNEL!=\"event*\", GOTO=\"synaptics_semi_mt_end\"\n"
"\n"
"ATTRS{name}==\"SynPS/2 Synaptics TouchPad\",\\\n"
" ENV{LIBINPUT_MODEL_JUMPING_SEMI_MT}=\"1\"\n"
"\n"
"LABEL=\"synaptics_semi_mt_end\"";
TEST_DEVICE("synaptics-hover",
.type = LITEST_SYNAPTICS_HOVER_SEMI_MT,
.features = LITEST_TOUCHPAD | LITEST_SEMI_MT | LITEST_BUTTON,
......@@ -120,5 +111,4 @@ TEST_DEVICE("synaptics-hover",
.id = &input_id,
.events = events,
.absinfo = absinfo,
.udev_rule = udev_rule,
)
......@@ -51,43 +51,6 @@ prop_value(struct udev_device *device,
return prop_value;
}
static void
handle_touchpad_synaptics(struct udev_device *device)
{
const char *product, *props;
int bus, vid, pid, version;
int prop;
product = prop_value(device, "PRODUCT");
if (!product)
return;
if (sscanf(product, "%x/%x/%x/%x", &bus, &vid, &pid, &version) != 4)
return;
if (bus != BUS_I8042 || vid != 0x2 || pid != 0x7)
return;
props = prop_value(device, "PROP");
if (sscanf(props, "%x", &prop) != 1)
return;
if (prop & (1 << INPUT_PROP_SEMI_MT))
printf("LIBINPUT_MODEL_JUMPING_SEMI_MT=1\n");
}
static void
handle_touchpad(struct udev_device *device)
{
const char *name = NULL;
name = prop_value(device, "NAME");
if (!name)
return;
if (strstr(name, "Synaptics ") != NULL)
handle_touchpad_synaptics(device);
}
/**
* For a non-zero fuzz on the x/y axes, print that fuzz as property and
* reset the kernel's fuzz to 0.
......@@ -165,9 +128,6 @@ int main(int argc, char **argv)
handle_absfuzz(device);
if (prop_value(device, "ID_INPUT_TOUCHPAD"))
handle_touchpad(device);
rc = 0;
out:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment