Changeset 462054a in mainline for uspace/drv/bus/usb/ar9271/wmi.c
- Timestamp:
- 2015-01-29T17:46:19Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab365c4
- Parents:
- 01784d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ar9271/wmi.c
r01784d2 r462054a 115 115 * @return EOK if succeed, negative error code otherwise. 116 116 */ 117 int wmi_reg_ rmw(htc_device_t *htc_device, uint32_t reg_offset,117 int wmi_reg_clear_set_bit(htc_device_t *htc_device, uint32_t reg_offset, 118 118 uint32_t set_bit, uint32_t clear_bit) 119 119 { … … 127 127 } 128 128 129 value &= ~clear_bit; 129 130 value |= set_bit; 130 value &= ~clear_bit;131 131 132 132 rc = wmi_reg_write(htc_device, reg_offset, value); … … 152 152 uint32_t set_bit) 153 153 { 154 return wmi_reg_ rmw(htc_device, reg_offset, set_bit, 0);154 return wmi_reg_clear_set_bit(htc_device, reg_offset, set_bit, 0); 155 155 } 156 156 … … 167 167 uint32_t clear_bit) 168 168 { 169 return wmi_reg_ rmw(htc_device, reg_offset, 0, clear_bit);169 return wmi_reg_clear_set_bit(htc_device, reg_offset, 0, clear_bit); 170 170 } 171 171
Note:
See TracChangeset
for help on using the changeset viewer.