im not sure what to cast it to, the dev_get_drvdata() takes a pointer to type input_dev:
Code:
static int wiidriver_release(struct inode *inode,struct file *file)
{
struct input_dev *input_wii = file->private_data;
kfree(dev_get_drvdata(input_wii));
input_unregister_device(input_wii);
module_put(THIS_MODULE); /*decrement use count*/
return 0;
}
as you can see input_wii is type input_dev...im not sure about this file->private_data im afraid kernel modules are still quite unfamiliar to me.
the driver btw, does not currently work...i suspect those warnings are the cause.