Changes in uspace/drv/bus/usb/usbmast/main.c [135486d:4802dd7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/main.c
r135486d r4802dd7 82 82 void *arg); 83 83 84 static int usbmast_bd_open(bd_srv s_t *, bd_srv_t *);84 static int usbmast_bd_open(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-> srvs->sarg;102 return (usbmast_fun_t *)bd->arg; 103 103 } 104 104 … … 240 240 mfun->lun = lun; 241 241 242 bd_srv s_init(&mfun->bds);243 mfun->bd s.ops = &usbmast_bd_ops;244 mfun->bd s.sarg = mfun;242 bd_srv_init(&mfun->bd); 243 mfun->bd.ops = &usbmast_bd_ops; 244 mfun->bd.arg = 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 s);313 bd_conn(iid, icall, &mfun->bd); 314 314 } 315 315 316 316 /** Open device. */ 317 static int usbmast_bd_open(bd_srv s_t *bds, bd_srv_t *bd)317 static int usbmast_bd_open(bd_srv_t *bd) 318 318 { 319 319 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.