Skip to content

Commit 6486a37

Browse files
faxe1008aescolar
authored andcommitted
drivers: haptics: Fix userspace handlers
Replace usage of Z_OOPS with K_OOPS. Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
1 parent fe49ab1 commit 6486a37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/haptics/haptics_handlers.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/syscall_handler.h>
7+
#include <zephyr/internal/syscall_handler.h>
88
#include <zephyr/drivers/haptics.h>
99

1010
static inline int z_vrfy_haptics_start_output(const struct device *dev)
1111
{
12-
Z_OOPS(Z_SYSCALL_DRIVER_HAPTICS(dev, start_output));
12+
K_OOPS(K_SYSCALL_DRIVER_HAPTICS(dev, start_output));
1313

1414
return z_impl_haptics_start_output(dev);
1515
}
@@ -18,7 +18,7 @@ static inline int z_vrfy_haptics_start_output(const struct device *dev)
1818

1919
static inline int z_vrfy_haptics_stop_output(const struct device *dev)
2020
{
21-
Z_OOPS(Z_SYSCALL_DRIVER_HAPTICS(dev, stop_output));
21+
K_OOPS(K_SYSCALL_DRIVER_HAPTICS(dev, stop_output));
2222

2323
return z_impl_haptics_stop_output(dev);
2424
}

0 commit comments

Comments
 (0)