Changes in uspace/drv/bus/usb/usbmast/main.c [4802dd7:135486d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/main.c
r4802dd7 r135486d 82 82 void *arg); 83 83 84 static int usbmast_bd_open(bd_srv _t *);84 static int usbmast_bd_open(bd_srvs_t *, bd_srv_t *); 85 85 static int usbmast_bd_close(bd_srv_t *); 86 86 static int usbmast_bd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *, size_t); … … 100 100 static usbmast_fun_t *bd_srv_usbmast(bd_srv_t *bd) 101 101 { 102 return (usbmast_fun_t *)bd-> arg;102 return (usbmast_fun_t *)bd->srvs->sarg; 103 103 } 104 104 … … 240 240 mfun->lun = lun; 241 241 242 bd_srv _init(&mfun->bd);243 mfun->bd .ops = &usbmast_bd_ops;244 mfun->bd .arg = mfun;242 bd_srvs_init(&mfun->bds); 243 mfun->bds.ops = &usbmast_bd_ops; 244 mfun->bds.sarg = mfun; 245 245 246 246 /* Set up a connection handler. */ … … 311 311 312 312 mfun = (usbmast_fun_t *) ((ddf_fun_t *)arg)->driver_data; 313 bd_conn(iid, icall, &mfun->bd );313 bd_conn(iid, icall, &mfun->bds); 314 314 } 315 315 316 316 /** Open device. */ 317 static int usbmast_bd_open(bd_srv _t *bd)317 static int usbmast_bd_open(bd_srvs_t *bds, bd_srv_t *bd) 318 318 { 319 319 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.