intel-hid: allocate correct amount of memory for private struct

We want the size of the struct, not of a pointer to it. To be future
proof, just dereference the pointer to get the desired type.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
This commit is contained in:
Wolfram Sang 2016-02-21 15:22:27 +01:00 • committed by Darren Hart
commit e8b69a51b4