include: drivers: usb_c: unify status register data type to uint32_t
The tcpc_get_status_register function was using int32_t for the status parameter, while the other related functions used uint32_t. This change unifies the data type across all related functions to uint32_t for consistency and clarity. Signed-off-by: Jianxiong Gu <jianxiong.gu@outlook.com>
This commit is contained in:
parent
414ac1895a
commit
29436c2b29
@ -423,7 +423,7 @@ void ps8xxx_tcpc_alert_handler_cb(const struct device *dev, void *data, enum tcp
|
||||
}
|
||||
|
||||
int ps8xxx_tcpc_get_status_register(const struct device *dev, enum tcpc_status_reg reg,
|
||||
int32_t *status)
|
||||
uint32_t *status)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ __subsystem struct tcpc_driver_api {
|
||||
int (*dump_std_reg)(const struct device *dev);
|
||||
void (*alert_handler_cb)(const struct device *dev, void *data, enum tcpc_alert alert);
|
||||
int (*get_status_register)(const struct device *dev, enum tcpc_status_reg reg,
|
||||
int32_t *status);
|
||||
uint32_t *status);
|
||||
int (*clear_status_register)(const struct device *dev, enum tcpc_status_reg reg,
|
||||
uint32_t mask);
|
||||
int (*mask_status_register)(const struct device *dev, enum tcpc_status_reg reg,
|
||||
@ -573,7 +573,7 @@ static inline int tcpc_set_alert_handler_cb(const struct device *dev,
|
||||
* @retval -ENOSYS if not implemented
|
||||
*/
|
||||
static inline int tcpc_get_status_register(const struct device *dev, enum tcpc_status_reg reg,
|
||||
int32_t *status)
|
||||
uint32_t *status)
|
||||
{
|
||||
const struct tcpc_driver_api *api = (const struct tcpc_driver_api *)dev->api;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user