Commit f8789f81 authored by Art Haas's avatar Art Haas Committed by David S. Miller

[PATCH] C99 initializers for drivers/input

parent 4360e757
...@@ -74,7 +74,7 @@ static void evbug_disconnect(struct input_handle *handle) ...@@ -74,7 +74,7 @@ static void evbug_disconnect(struct input_handle *handle)
} }
static struct input_device_id evbug_ids[] = { static struct input_device_id evbug_ids[] = {
{ driver_info: 1 }, /* Matches all devices */ { .driver_info = 1 }, /* Matches all devices */
{ }, /* Terminating zero entry */ { }, /* Terminating zero entry */
}; };
......
...@@ -419,7 +419,7 @@ static void evdev_disconnect(struct input_handle *handle) ...@@ -419,7 +419,7 @@ static void evdev_disconnect(struct input_handle *handle)
} }
static struct input_device_id evdev_ids[] = { static struct input_device_id evdev_ids[] = {
{ driver_info: 1 }, /* Matches all devices */ { .driver_info = 1 }, /* Matches all devices */
{ }, /* Terminating zero entry */ { }, /* Terminating zero entry */
}; };
......
...@@ -350,17 +350,17 @@ static void tsdev_disconnect(struct input_handle *handle) ...@@ -350,17 +350,17 @@ static void tsdev_disconnect(struct input_handle *handle)
static struct input_device_id tsdev_ids[] = { static struct input_device_id tsdev_ids[] = {
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT,
evbit: { BIT(EV_KEY) | BIT(EV_REL) }, .evbit = { BIT(EV_KEY) | BIT(EV_REL) },
keybit: { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) }, .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) },
relbit: { BIT(REL_X) | BIT(REL_Y) }, .relbit = { BIT(REL_X) | BIT(REL_Y) },
},/* A mouse like device, at least one button, two relative axes */ },/* A mouse like device, at least one button, two relative axes */
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_ABSBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_ABSBIT,
evbit: { BIT(EV_KEY) | BIT(EV_ABS) }, .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
keybit: { [LONG(BTN_TOUCH)] = BIT(BTN_TOUCH) }, .keybit = { [LONG(BTN_TOUCH)] = BIT(BTN_TOUCH) },
absbit: { BIT(ABS_X) | BIT(ABS_Y) }, .absbit = { BIT(ABS_X) | BIT(ABS_Y) },
},/* A tablet like device, at least touch detection, two absolute axes */ },/* A tablet like device, at least touch detection, two absolute axes */
{},/* Terminating entry */ {},/* Terminating entry */
......
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