Input: switch to using sizeof(*type) when allocating memory
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 10 May 2017 00:51:30 +0000 (17:51 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 May 2017 21:39:34 +0000 (14:39 -0700)
commitc3f6f8612bdab5959950a58291bd61d1d42d996b
tree05312fe544d46f3b9edc25b12088e967b1f4de8e
parent63c9576544718a949460865588981b70bb717020
Input: switch to using sizeof(*type) when allocating memory

Instead of specifying type explicitly, derive it from the type of pointer
when allocating memory, which is considered safer practice.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c