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:
parent
407ea645a0
commit
297fb5a90f
1 changed files with 1 additions and 1 deletions
|
@ -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_DRIVER_PS2(dev, read));
|
||||||
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(value, sizeof(uint8_t)));
|
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>
|
#include <syscalls/ps2_read_mrsh.c>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue