MCP1515: Eliminate some warnings

This commit is contained in:
Gregory Nutt 2017-06-14 09:38:58 -06:00
parent 46f86982ee
commit a86f46bc54
2 changed files with 5 additions and 3 deletions

View File

@ -2543,7 +2543,7 @@ FAR struct mcp2515_can_s *mcp2515_instantiate(FAR struct mcp2515_config_s *confi
/* Return our private data structure as an opaque handle */
return (MCP2515_HANDLE)priv;
return priv;
}
/****************************************************************************

View File

@ -61,6 +61,9 @@
* Public Types
****************************************************************************/
/* Type of the MCP2515 interrupt handling callback */
struct mcp2515_config_s; /* Forward reference */
typedef void (*mcp2515_handler_t)(FAR struct mcp2515_config_s *config,
FAR void *arg);
@ -104,8 +107,7 @@ struct mcp2515_config_s
mcp2515_handler_t handler, FAR void *arg);
};
typedef FAR void *MCP2515_HANDLE;
/* Internal representation of the MCP2515 state data */
struct mcp2515_can_s;