How to get device pointer address in Kernel Module
I want to use
static inline int hid_hw_raw_request(struct hid_device *hdev,
unsigned char reportnum, __u8 *buf,
size_t len, unsigned char rtype, int reqtype)
in my kernel module. How can I get hdev of existing /dev/hidraw0 ?
hdev = give_me_the_address_of(dev/hidraw0)