SPI Driver for Remote Control?
I'm doing software development for an embedded-Linux device that has a remote control. The remote control has 9 buttons and uses RF to communicate with the device. The device has an RF transceiver with SPI interface.
Now, I want to know the best way to write a device driver for the remote control. I thought of making the remote control to look like a mini-keyboard to the Linux OS. I thought of cloning a keyboard device driver code and modify on it to suit my need, but I'm not sure if that will work.
So, any suggestion please?