drivers can_native_linux: Remove reference to native_posix

Remove references to native_posix as the it is being deprecated.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-08-13 17:26:41 +02:00 committed by Fabio Baltieri
parent 9584008d9f
commit 767149129a
2 changed files with 7 additions and 7 deletions

View file

@ -495,9 +495,9 @@ CAN_DEVICE_DT_INST_DEFINE(inst, can_native_linux_init, NULL, \
DT_INST_FOREACH_STATUS_OKAY(CAN_NATIVE_LINUX_INIT)
static void add_native_posix_options(void)
static void add_native_options(void)
{
static struct args_struct_t can_native_posix_options[] = {
static struct args_struct_t can_native_options[] = {
{
.is_mandatory = false,
.option = "can-if",
@ -509,7 +509,7 @@ static void add_native_posix_options(void)
ARG_TABLE_ENDMARKER,
};
native_add_command_line_opts(can_native_posix_options);
native_add_command_line_opts(can_native_options);
}
NATIVE_TASK(add_native_posix_options, PRE_BOOT_1, 10);
NATIVE_TASK(add_native_options, PRE_BOOT_1, 10);

View file

@ -8,8 +8,8 @@
* @brief Private functions for native posix canbus driver.
*/
#ifndef ZEPHYR_DRIVERS_CAN_NATIVE_POSIX_LINUX_SOCKETCAN_H_
#define ZEPHYR_DRIVERS_CAN_NATIVE_POSIX_LINUX_SOCKETCAN_H_
#ifndef ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_
#define ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_
int linux_socketcan_iface_open(const char *if_name);
@ -21,4 +21,4 @@ int linux_socketcan_read_data(int fd, void *buf, size_t buf_len, bool *msg_confi
int linux_socketcan_set_mode_fd(int fd, bool mode_fd);
#endif /* ZEPHYR_DRIVERS_CAN_NATIVE_POSIX_LINUX_SOCKETCAN_H_ */
#endif /* ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_ */