Changeset 5a6cc679 in mainline for uspace/lib/drv/generic/remote_battery_dev.c
- Timestamp:
- 2018-01-31T02:21:24Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_battery_dev.c
r132ab5d1 r5a6cc679 47 47 * @return EOK on success or an error code 48 48 */ 49 int49 errno_t 50 50 battery_status_get(async_sess_t *sess, battery_status_t *batt_status) 51 51 { … … 54 54 async_exch_t *exch = async_exchange_begin(sess); 55 55 56 int const rc = async_req_1_1(exch, DEV_IFACE_ID(BATTERY_DEV_IFACE),56 errno_t const rc = async_req_1_1(exch, DEV_IFACE_ID(BATTERY_DEV_IFACE), 57 57 BATTERY_STATUS_GET, &status); 58 58 … … 72 72 * @return EOK on success or an error code 73 73 */ 74 int74 errno_t 75 75 battery_charge_level_get(async_sess_t *sess, int *level) 76 76 { … … 79 79 async_exch_t *exch = async_exchange_begin(sess); 80 80 81 int const rc = async_req_1_1(exch, DEV_IFACE_ID(BATTERY_DEV_IFACE),81 errno_t const rc = async_req_1_1(exch, DEV_IFACE_ID(BATTERY_DEV_IFACE), 82 82 BATTERY_CHARGE_LEVEL_GET, &charge_level); 83 83 … … 129 129 130 130 battery_status_t batt_status; 131 const int rc = bops->battery_status_get(fun, &batt_status);131 const errno_t rc = bops->battery_status_get(fun, &batt_status); 132 132 133 133 if (rc != EOK) … … 155 155 156 156 int battery_level; 157 const int rc = bops->battery_charge_level_get(fun, &battery_level);157 const errno_t rc = bops->battery_charge_level_get(fun, &battery_level); 158 158 159 159 if (rc != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.