From 0b3fe6b17a86a7ff46ff7d54ad93444a58ffe296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Wed, 15 Feb 2023 16:59:55 +0100 Subject: [PATCH] doc: peripherals: can: fix can_filter mask variable name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The member variable was renamed from id_mask to mask in #51361, but the docs were not adjusted accordingly. Signed-off-by: Martin Jäger --- doc/hardware/peripherals/canbus/controller.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/hardware/peripherals/canbus/controller.rst b/doc/hardware/peripherals/canbus/controller.rst index e1e37eee0ebfc..c83fdce97ea0a 100644 --- a/doc/hardware/peripherals/canbus/controller.rst +++ b/doc/hardware/peripherals/canbus/controller.rst @@ -227,7 +227,7 @@ The filter for this example is configured to match the identifier 0x123 exactly. const struct can_filter my_filter = { .flags = CAN_FILTER_DATA, .id = 0x123, - .id_mask = CAN_STD_ID_MASK + .mask = CAN_STD_ID_MASK }; int filter_id; const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus)); @@ -250,7 +250,7 @@ The filter for this example is configured to match the extended identifier const struct can_filter my_filter = { .flags = CAN_FILTER_DATA | CAN_FILTER_IDE, .id = 0x1234567, - .id_mask = CAN_EXT_ID_MASK + .mask = CAN_EXT_ID_MASK }; CAN_MSGQ_DEFINE(my_can_msgq, 2); struct can_frame rx_frame;