drivers: can: remove the use of bitfields from struct can_filter

Remove the use of bitfields in the can_filter struct.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2024-04-06 17:08:57 +00:00 committed by Carles Cufí
parent 09604d4044
commit cba3a831e2

View file

@ -217,14 +217,11 @@ struct can_frame {
*/
struct can_filter {
/** CAN identifier to match. */
uint32_t id : 29;
/** @cond INTERNAL_HIDDEN */
uint32_t res0 : 3;
/** @endcond */
uint32_t id;
/** CAN identifier matching mask. If a bit in this mask is 0, the value
* of the corresponding bit in the ``id`` field is ignored by the filter.
*/
uint32_t mask : 29;
uint32_t mask;
/** Flags. @see @ref CAN_FILTER_FLAGS. */
uint8_t flags;
};