Write Button Driver...

sushant
Hello,

How to Write Button Driver.

Juergen Beisert
Why do you want to re-invent every driver the Linux kernel already
supports? Take a look into the "input" subsystem of the kernel and you will
find examples for keypads and single GPIO buttons.

Sushant
Hello,
But sir i interested to write the own button driver

Sushant
handle interrupt pin

Juergen Beisert
> i interested to write the own button driver

Sure. Why not. But I think it makes no difference if you ask here for a
"how to" or if you take a look into the kernel sources to read a "how to".
And then write your own version with this knowledge.

Happy hacking.

sushant
Hello,    
    {IRQ_EINT13, S3C2410_GPG(5) ,  S3C2410_GPG5_EINT13 , 2, "KEY2"},
    {IRQ_EINT14, S3C2410_GPG(6) ,  S3C2410_GPG6_EINT14 , 3, "KEY3"},
    {IRQ_EINT15, S3C2410_GPG(7) ,  S3C2410_GPG7_EINT15 , 4, "KEY4"},
    {IRQ_EINT19, S3C2410_GPG(11),  S3C2410_GPG11_EINT19, 5, "KEY5"},
this above line is adde in button driver then generate error
lkm.c:30: error: implicit declaration of function 'S3C2410_GPF'
lkm.c:30: error: initializer element is not constant
lkm.c:30: error: (near initialization for 'button_irqs[0].pin')