drivers: can: mcan: document return values from typedef API functions
Document that the Bosch M_CAN read/write register functions are allowed to return -ENOTSUP for unsupported registers. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
78f956f308
commit
c52499e447
1 changed files with 2 additions and 0 deletions
|
@ -568,6 +568,7 @@ struct can_mcan_data {
|
|||
* @param[out] val Register value
|
||||
*
|
||||
* @retval 0 If successful.
|
||||
* @retval -ENOTSUP Register not supported.
|
||||
* @retval -EIO General input/output error.
|
||||
*/
|
||||
typedef int (*can_mcan_read_reg_t)(const struct device *dev, uint16_t reg, uint32_t *val);
|
||||
|
@ -580,6 +581,7 @@ typedef int (*can_mcan_read_reg_t)(const struct device *dev, uint16_t reg, uint3
|
|||
* @param val Register value
|
||||
*
|
||||
* @retval 0 If successful.
|
||||
* @retval -ENOTSUP Register not supported.
|
||||
* @retval -EIO General input/output error.
|
||||
*/
|
||||
typedef int (*can_mcan_write_reg_t)(const struct device *dev, uint16_t reg, uint32_t val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue