A short look at the code also suggests that you're using a userspace program to feed back stuff into the appletouch driver about when FN is pressed. Look at Michael Hanselmann's inputd for how to really do this. The code as-is will never be accepted into the kernel if I can help it.
johannes
signature.asc
Description: This is a digitally signed message part