Changeset 476f62c in mainline for uspace/lib/drv/generic/remote_clock_dev.c
- Timestamp:
- 2014-01-17T17:26:48Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5828554, cf982ff
- Parents:
- 61b5b73d (diff), 66be0288 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_clock_dev.c
r61b5b73d r476f62c 36 36 #include <errno.h> 37 37 #include <time.h> 38 #include <macros.h> 39 #include <device/clock_dev.h> 38 40 39 41 #include <ops/clock_dev.h> … … 46 48 47 49 /** Remote clock interface operations */ 48 static remote_iface_func_ptr_t remote_clock_dev_iface_ops[] = {49 &remote_clock_time_get,50 &remote_clock_time_set,50 static const remote_iface_func_ptr_t remote_clock_dev_iface_ops[] = { 51 [CLOCK_DEV_TIME_GET] = remote_clock_time_get, 52 [CLOCK_DEV_TIME_SET] = remote_clock_time_set, 51 53 }; 52 54 … … 56 58 * addressed by the clock interface. 57 59 */ 58 remote_iface_t remote_clock_dev_iface = { 59 .method_count = sizeof(remote_clock_dev_iface_ops) / 60 sizeof(remote_iface_func_ptr_t), 60 const remote_iface_t remote_clock_dev_iface = { 61 .method_count = ARRAY_SIZE(remote_clock_dev_iface_ops), 61 62 .methods = remote_clock_dev_iface_ops, 62 63 };
Note:
See TracChangeset
for help on using the changeset viewer.