linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kernel panic on gpio-keys
@ 2013-12-11 19:17 Paul Cercueil
  2013-12-14  9:39 ` Dmitry Torokhov
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Cercueil @ 2013-12-11 19:17 UTC (permalink / raw)
  To: linux-input; +Cc: dmitry.torokhov

Hi there,

I am trying to use the gpio-keys driver to inject joystick events.
There seems to be some basic support of it, looking at <linux/gpio_keys.h>.

However, registering the following will trigger a kernel panic in the 
kernel:

static struct gpio_keys_button my_buttons[] {
	{
		.gpio = GPIO_FOO,
		.type = EV_ABS,
		.code = ABS_HAT0X,
		.value = 1,
	},
};

(tested on kernel 3.12).

I don't know well the input subsystem, so I have no idea of what is 
going wrong. Could anybody try to at least reproduce the issue?

Regards.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-12-30 18:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11 19:17 kernel panic on gpio-keys Paul Cercueil
2013-12-14  9:39 ` Dmitry Torokhov
2013-12-17 15:17   ` Paul Cercueil
2013-12-27  1:56     ` Dmitry Torokhov
2013-12-30 15:13       ` Paul Cercueil
2013-12-30 18:42         ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).