drivers: can: mcp251xfd: Increase max filters and change filter usage type
The mcp251xfd supports upto 32 filters. Also store the filter usage in uint32_t instead of uint64_t. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
parent
0aa6f3f3ff
commit
8c607bf401
|
@ -54,7 +54,7 @@ config CAN_MCP251XFD_READ_CRC_RETRIES
|
|||
config CAN_MAX_FILTER
|
||||
int "Maximum number of concurrent active filters"
|
||||
default 5
|
||||
range 1 31
|
||||
range 1 32
|
||||
help
|
||||
Maximum number of filters supported by the can_add_rx_callback() API call.
|
||||
|
||||
|
|
|
@ -496,7 +496,7 @@ struct mcp251xfd_data {
|
|||
struct mcp251xfd_mailbox mailbox[CONFIG_CAN_MCP251XFD_MAX_TX_QUEUE];
|
||||
|
||||
/* Filter Data */
|
||||
uint64_t filter_usage;
|
||||
uint32_t filter_usage;
|
||||
struct can_filter filter[CONFIG_CAN_MAX_FILTER];
|
||||
can_rx_callback_t rx_cb[CONFIG_CAN_MAX_FILTER];
|
||||
void *cb_arg[CONFIG_CAN_MAX_FILTER];
|
||||
|
|
Loading…
Reference in New Issue