How is gpio_keys.ko supposed to work?

2013-03-28 Thread Sven Geggus
Hello, I have a userland application on Raspberry Pi which uses select to read input from a button connected to gpio like this: GPIO --+ BUTTON - GND | +--- RESISTOR 2k -- VCC (3.3V) The sysfs "file" I use select at is /sys/class/gpio/gpioX/value with the method found in Do

Re: How is gpio_keys.ko supposed to work?

2013-03-30 Thread Sven Geggus
Jerry Zhang 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 GPIO