PATCH Add support for the Iomega IX2-200 Device Tree
Jason Cooper
jason at lakedaemon.net
Thu Aug 16 08:43:44 EDT 2012
On Thu, Aug 16, 2012 at 12:52:18AM +0100, alan butler wrote:
> On 16 August 2012 00:41, Jason Cooper <jason at lakedaemon.net> wrote:
...
> > That means gpio_keys_get_devtree_pdata() is returning an error. Have
> > you tried 'linux,input-type = <0x05>;' ?
>
> 'inux,input-type = <0x05>' instead of 'linux,code = <...>' in the dts?
> no i havent tried will give it a try now.
no, use both. Look at the original gpio code you had. It specified
both the type and the code in the struct. gpio_keys.txt says when
input-type isn't specified it defaults to EV_KEY, whereas your code set
it to EV_SW (0x05 in include/linux/inputh:181).
hth,
Jason.
More information about the linux-arm-kernel
mailing list