Skip to content
Snippets Groups Projects
Commit 8e26d4c8 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

STM32 CAN: More fixes for compilation errors due to blind leverage of STM32L4...

STM32 CAN: More fixes for compilation errors due to blind leverage of STM32L4 CAN filter IOCTLs to STM32
parent e5f623e1
No related branches found
No related tags found
No related merge requests found
......@@ -127,10 +127,12 @@ static void stm32can_dumpfiltregs(FAR struct stm32_can_s *priv,
/* Filtering (todo) */
#ifdef CONFIG_CAN_EXTID
static int stm32can_addextfilter(FAR struct stm32_can_s *priv,
FAR struct canioc_extfilter_s *arg);
static int stm32can_delextfilter(FAR struct stm32_can_s *priv,
int arg);
#endif
static int stm32can_addstdfilter(FAR struct stm32_can_s *priv,
FAR struct canioc_stdfilter_s *arg);
static int stm32can_delstdfilter(FAR struct stm32_can_s *priv,
......@@ -1987,11 +1989,13 @@ static int stm32can_filterinit(FAR struct stm32_can_s *priv)
*
****************************************************************************/
static int stm32can_addextfilter(FAR struct stm32_can_s *priv,
FAR struct canioc_extfilter_s *arg)
#ifdef CONFIG_CAN_EXTID
static int stm32can_addextfilter(FAR struct stm32_can_s *priv,
FAR struct canioc_extfilter_s *arg)
{
return -ENOTTY;
}
#endif
/****************************************************************************
* Name: stm32can_delextfilter
......@@ -2011,13 +2015,15 @@ static int stm32can_addextfilter(FAR struct stm32_can_s *priv,
*
****************************************************************************/
#ifdef CONFIG_CAN_EXTID
static int stm32can_delextfilter(FAR struct stm32_can_s *priv, int arg)
{
return -ENOTTY;
}
#endif
/****************************************************************************
* Name: stm32can_addextfilter
* Name: stm32can_addstdfilter
*
* Description:
* Add a filter for standard CAN IDs
......@@ -2033,8 +2039,8 @@ static int stm32can_delextfilter(FAR struct stm32_can_s *priv, int arg)
*
****************************************************************************/
static int stm32can_addstdfilter(FAR struct stm32_can_s *priv,
FAR struct canioc_stdfilter_s *arg)
static int stm32can_addstdfilter(FAR struct stm32_can_s *priv,
FAR struct canioc_stdfilter_s *arg)
{
return -ENOTTY;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment