intel-hid: allocate correct amount of memory for private struct
authorWolfram Sang <wsa@the-dreams.de>
Sun, 21 Feb 2016 14:22:27 +0000 (15:22 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 23 Mar 2016 17:05:48 +0000 (10:05 -0700)
commite8b69a51b4e72a168e8b3bc5fcac39a7de339864
treefb96bb769488de24ebf272da44216c65a8abe4e6
parentf52ab44fb748537e4e757d5cdb0a79ab847630c7
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>
drivers/platform/x86/intel-hid.c