From 085ee2b0b8e1dd51776fe8276dfbc29297b4eba0 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Sun, 10 Apr 2022 17:33:19 +0200 Subject: [PATCH] drivers: can: stm32: remove can_get_max_filters() support for now Remove support for the optional API function can_get_max_filters() from the STM32 bxCAN driver for now. The function returns the Kconfig value for the maximum number of filters but the true number of supported filters may be different due to the filter nature of the STM32 bxCAN driver implementation. Signed-off-by: Henrik Brix Andersen --- drivers/can/can_stm32.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/can/can_stm32.c b/drivers/can/can_stm32.c index 724c9aede2b..dd628d7d01f 100644 --- a/drivers/can/can_stm32.c +++ b/drivers/can/can_stm32.c @@ -460,13 +460,6 @@ static int can_stm32_get_core_clock(const struct device *dev, uint32_t *rate) return 0; } -static int can_stm32_get_max_filters(const struct device *dev, enum can_ide id_type) -{ - ARG_UNUSED(id_type); - - return CONFIG_CAN_MAX_FILTER; -} - static int can_stm32_get_max_bitrate(const struct device *dev, uint32_t *max_bitrate) { const struct can_stm32_config *config = dev->config; @@ -1156,7 +1149,6 @@ static const struct can_driver_api can_api_funcs = { #endif .set_state_change_callback = can_stm32_set_state_change_callback, .get_core_clock = can_stm32_get_core_clock, - .get_max_filters = can_stm32_get_max_filters, .get_max_bitrate = can_stm32_get_max_bitrate, .timing_min = { .sjw = 0x1,