Skip to content

Commit 7671491

Browse files
aescolarfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 9584008 commit 7671491

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

drivers/can/can_native_linux.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,9 @@ CAN_DEVICE_DT_INST_DEFINE(inst, can_native_linux_init, NULL, \
495495

496496
DT_INST_FOREACH_STATUS_OKAY(CAN_NATIVE_LINUX_INIT)
497497

498-
static void add_native_posix_options(void)
498+
static void add_native_options(void)
499499
{
500-
static struct args_struct_t can_native_posix_options[] = {
500+
static struct args_struct_t can_native_options[] = {
501501
{
502502
.is_mandatory = false,
503503
.option = "can-if",
@@ -509,7 +509,7 @@ static void add_native_posix_options(void)
509509
ARG_TABLE_ENDMARKER,
510510
};
511511

512-
native_add_command_line_opts(can_native_posix_options);
512+
native_add_command_line_opts(can_native_options);
513513
}
514514

515-
NATIVE_TASK(add_native_posix_options, PRE_BOOT_1, 10);
515+
NATIVE_TASK(add_native_options, PRE_BOOT_1, 10);

drivers/can/can_native_linux_adapt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* @brief Private functions for native posix canbus driver.
99
*/
1010

11-
#ifndef ZEPHYR_DRIVERS_CAN_NATIVE_POSIX_LINUX_SOCKETCAN_H_
12-
#define ZEPHYR_DRIVERS_CAN_NATIVE_POSIX_LINUX_SOCKETCAN_H_
11+
#ifndef ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_
12+
#define ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_
1313

1414
int linux_socketcan_iface_open(const char *if_name);
1515

@@ -21,4 +21,4 @@ int linux_socketcan_read_data(int fd, void *buf, size_t buf_len, bool *msg_confi
2121

2222
int linux_socketcan_set_mode_fd(int fd, bool mode_fd);
2323

24-
#endif /* ZEPHYR_DRIVERS_CAN_NATIVE_POSIX_LINUX_SOCKETCAN_H_ */
24+
#endif /* ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_ */

0 commit comments

Comments
 (0)