linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mainlining of Pyra nub joystick driver
@ 2016-06-14 11:45 Andrey Utkin
  2016-06-14 15:14 ` Arnd Bergmann
  2016-06-14 17:02 ` [Kernel] " Andrey Utkin
  0 siblings, 2 replies; 6+ messages in thread
From: Andrey Utkin @ 2016-06-14 11:45 UTC (permalink / raw)
  To: linux-input, devel, kernel-mentors, linux-kernel, letux-kernel,
	kernel, Dmitry Torokhov, Krzysztof Kozlowski, Arnd Bergmann,
	Mark Brown, Daniel Hung-yu Wu, Moritz Fischer,
	Geert Uytterhoeven, S Twiss, Rob Herring, Grant Grundler

There's a pair of "nub" devices on Pyra handheld PC
(https://pyra-handheld.com/), and there's driver for nub, which is going
to be reworked for upstreaming. While the device itself fits most to
"joystick" category, the computer itself lacks touchpad and mouse
buttons, and the existing driver is capable of switching between modes, in
which it shows up like one of the following:
 - scrolling wheel,
 - mouse buttons set,
 - pointer updating its absolute position (graphic pad alike AFAIU),
 - pointer device behaving like actual joystick / pointing stick.

Currently modes switching happens through r/w file in /proc, which is of
couse going to be changed.

I wonder if such mode switching mechanism is tolerable for inclusion to
upstream kernel in this case. I'd like some advice how to rearrange the
driver to save most of flexibility while matching upstream kernel
conventions. I am especially interested in comments from subsystem
maintainers.

Existing driver:
http://git.goldelico.com/?p=gta04-kernel.git;a=blob;f=drivers/input/misc/as5013.c;h=1bfb5243f692c0c0a9c93881968849cac947c92d;hb=refs/heads/work/hns/input/as5013

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

end of thread, other threads:[~2016-06-17 11:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-14 11:45 Mainlining of Pyra nub joystick driver Andrey Utkin
2016-06-14 15:14 ` Arnd Bergmann
2016-06-14 17:02 ` [Kernel] " Andrey Utkin
2016-06-14 17:09   ` H. Nikolaus Schaller
2016-06-16 19:51     ` Andrey Utkin
2016-06-17 11:20       ` H. Nikolaus Schaller

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).