drivers: ps2: Fix wrong cast

ps2_read() syscall was casting the value to uint32_t *

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-06-22 17:55:41 -07:00 committed by Anas Nashif
commit 297fb5a90f

View file

@ -28,7 +28,7 @@ static inline int z_vrfy_ps2_read(const struct device *dev, uint8_t *value)
{
Z_OOPS(Z_SYSCALL_DRIVER_PS2(dev, read));
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(value, sizeof(uint8_t)));
return z_impl_ps2_read(dev, (uint32_t *)value);
return z_impl_ps2_read(dev, value);
}
#include <syscalls/ps2_read_mrsh.c>