diff options
Diffstat (limited to 'drivers/thunderbolt/ctl.h')
| -rw-r--r-- | drivers/thunderbolt/ctl.h | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/drivers/thunderbolt/ctl.h b/drivers/thunderbolt/ctl.h index 97cb03b38953..e8c64898dfce 100644 --- a/drivers/thunderbolt/ctl.h +++ b/drivers/thunderbolt/ctl.h @@ -21,15 +21,14 @@ struct tb_ctl;  typedef bool (*event_cb)(void *data, enum tb_cfg_pkg_type type,  			 const void *buf, size_t size); -struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, event_cb cb, void *cb_data); +struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, int timeout_msec, event_cb cb, +			    void *cb_data);  void tb_ctl_start(struct tb_ctl *ctl);  void tb_ctl_stop(struct tb_ctl *ctl);  void tb_ctl_free(struct tb_ctl *ctl);  /* configuration commands */ -#define TB_CFG_DEFAULT_TIMEOUT 5000 /* msec */ -  struct tb_cfg_result {  	u64 response_route;  	u32 response_port; /* @@ -124,8 +123,7 @@ static inline struct tb_cfg_header tb_cfg_make_header(u64 route)  }  int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug); -struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route, -				  int timeout_msec); +struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route);  struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer,  				     u64 route, u32 port,  				     enum tb_cfg_space space, u32 offset, | 
