mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 21:06:58 +08:00
MCP1515: Eliminate some warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user