How is gpio_keys.ko supposed to work?

Sven Geggus lists at fuchsschwanzdomain.de
Sat Mar 30 14:41:06 EDT 2013


Jerry Zhang <jerry.scofield at gmail.com> wrote:

> The entry will only be created after the "Driver" probes the "Device"
> successfully. In your case, you need to be sure the corresponding
> platform_device is claimed in your board setup code.

What does claiming the device actually mean? Do I really need to
hardcode the GPIOs where buttons are connected at compile time?

This would not be a very good idea for a User configurable board like
Raspberry Pi.

I actually thought that I could configure the gpios where buttons are
connected at runtime using sysfs, depending on the actual hardware
setup in use.

Sven

-- 
"Das Einzige wovor wir Angst haben müssen ist die Angst selbst"
						(Franklin D. Roosevelt)

/me is giggls at ircnet, http://sven.gegg.us/ on the Web



More information about the Kernelnewbies mailing list