diff options
author | Dmitry Torokhov <[email protected]> | 2024-07-03 14:37:53 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2024-07-08 16:22:49 -0700 |
commit | 0cd58773520584ccb4ce1eeebd8d43f1b27bb24a (patch) | |
tree | fabfaef026dbca5483045860fb65d1055d60cd9b /drivers/usb/cdns3/cdns3-imx.c | |
parent | 3544cf574a577d92111f0b29e6d649b7ea3210ed (diff) |
Input: preallocate memory to hold event values
Preallocate memory for holding event values (input_dev->vals) so that
there is no need to check if it was allocated or not in the event
processing code.
The amount of memory will be adjusted after input device has been fully
set up upon registering device with the input core.
Reviewed-by: Jeff LaBundy <[email protected]>
Reviewed-by: Benjamin Tissoires <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions