Changeset d35ac1d in mainline for uspace/lib/drv/include/driver.h
- Timestamp:
- 2011-01-09T19:52:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36f2b3e
- Parents:
- 8871dba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/driver.h
r8871dba rd35ac1d 188 188 } 189 189 190 static inline void *device_get_ iface(device_t *dev, dev_inferface_idx_t idx)190 static inline void *device_get_ops(device_t *dev, dev_inferface_idx_t idx) 191 191 { 192 192 assert(is_valid_iface_idx(idx)); 193 if ( NULL == dev->ops)193 if (dev->ops == NULL) 194 194 return NULL; 195 195 return dev->ops->interfaces[idx];
Note:
See TracChangeset
for help on using the changeset viewer.