Skip to content

Commit

Permalink
canctl: fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
marckleinebudde committed Dec 9, 2024
1 parent 30edd06 commit c42f31d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/canctl.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/**
* canctrl.h
*
*
* Functions to configure the CAN interfaces (bitrates, control modes, etc...)
*/


#ifndef __CANCTRL_H__
#define __CANCTRL_H__

Expand All @@ -14,20 +13,20 @@

/**
* canctl_set_bittiming - Set the interface bittiming.
*
*
* @param bus_name name of the can interface to configure.
* @param buff_bittiming_conf buffer which contains the remaining config of the interface.
* @param buff_length config buffer length.
*
*
* returns 0 - ok / -1 error
*/
int canctl_set_bittiming(const char *bus_name, const char *buff_bittiming_conf, int buff_length);

/**
* canctl_start_iface - Start the can interface.
*
*
* @param bus_name name of the can interface to start.
*
*
* returns 0 - ok / -1 error
*/
static inline int canctl_start_iface(const char *bus_name)
Expand All @@ -37,11 +36,11 @@ static inline int canctl_start_iface(const char *bus_name)

/**
* canctl_set_control_modes - set up control modes for given interface.
*
*
* @param bus_name name of the can interface to configure.
* @param buff_control_modes_conf buffer which contains the control modes configuration.
* @param buff_length config buffer length.
*
*
* returns 0 - ok / -1 error
*/
int canctl_set_control_modes(const char *bus_name, const char *buff_control_modes_conf, int buff_length);
Expand All @@ -62,8 +61,8 @@ static inline int canctl_start_iface(const char *bus_name)

static inline int canctl_set_control_modes(const char *bus_name, const char *buff_control_modes_conf, int buff_length)
{
return -EINVAL;
return -EINVAL;
}

#endif
#endif
#endif

0 comments on commit c42f31d

Please sign in to comment.