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

STM32 CAN fixes need to be backported to STM32L4 as well

parent 8e26d4c8
No related branches found
No related tags found
No related merge requests found
......@@ -130,10 +130,12 @@ static void stm32l4can_dumpfiltregs(FAR struct stm32l4_can_s *priv,
/* Filtering (todo) */
#ifdef CONFIG_CAN_EXTID
static int stm32l4can_addextfilter(FAR struct stm32l4_can_s *priv,
FAR struct canioc_extfilter_s *arg);
static int stm32l4can_delextfilter(FAR struct stm32l4_can_s *priv,
int arg);
#endif
static int stm32l4can_addstdfilter(FAR struct stm32l4_can_s *priv,
FAR struct canioc_stdfilter_s *arg);
static int stm32l4can_delstdfilter(FAR struct stm32l4_can_s *priv,
......@@ -1928,11 +1930,13 @@ static int stm32l4can_filterinit(FAR struct stm32l4_can_s *priv)
*
****************************************************************************/
static int stm32l4can_addextfilter(FAR struct stm32l4_can_s *priv,
FAR struct canioc_extfilter_s *arg)
#ifdef CONFIG_CAN_EXTID
static int stm32l4can_addextfilter(FAR struct stm32l4_can_s *priv,
FAR struct canioc_extfilter_s *arg)
{
return -ENOTTY;
}
#endif
/****************************************************************************
* Name: stm32l4can_delextfilter
......@@ -1952,13 +1956,15 @@ static int stm32l4can_addextfilter(FAR struct stm32l4_can_s *priv,
*
****************************************************************************/
static int stm32l4can_delextfilter(FAR struct stm32l4_can_s *priv, int arg)
#ifdef CONFIG_CAN_EXTID
static int stm32l4can_delextfilter(FAR struct stm32l4_can_s *priv, int arg)
{
return -ENOTTY;
}
#endif
/****************************************************************************
* Name: stm32l4can_addextfilter
* Name: stm32l4can_addstdfilter
*
* Description:
* Add a filter for standard CAN IDs
......@@ -1974,8 +1980,8 @@ static int stm32l4can_delextfilter(FAR struct stm32l4_can_s *priv, int arg)
*
****************************************************************************/
static int stm32l4can_addstdfilter(FAR struct stm32l4_can_s *priv,
FAR struct canioc_stdfilter_s *arg)
static int stm32l4can_addstdfilter(FAR struct stm32l4_can_s *priv,
FAR struct canioc_stdfilter_s *arg)
{
return -ENOTTY;
}
......@@ -1998,7 +2004,7 @@ static int stm32l4can_addstdfilter(FAR struct stm32l4_can_s *priv,
*
****************************************************************************/
static int stm32l4can_delstdfilter(FAR struct stm32l4_can_s *priv, int arg)
static int stm32l4can_delstdfilter(FAR struct stm32l4_can_s *priv, int 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