Staging: w35und: inline hal_set_rf_power() to mto.c
[linux-2.6/mini2440.git] / drivers / staging / winbond / wbhal.c
blobb9a6e38bd5001c4369c4d77a49c60347a720b94a
1 #include "sysdef.h"
2 #include "wbhal_f.h"
3 #include "wblinux_f.h"
5 unsigned char hal_get_dxx_reg(struct hw_data *pHwData, u16 number, u32 * pValue)
7 if (number < 0x1000)
8 number += 0x1000;
9 return Wb35Reg_ReadSync(pHwData, number, pValue);
12 unsigned char hal_set_dxx_reg(struct hw_data *pHwData, u16 number, u32 value)
14 unsigned char ret;
16 if (number < 0x1000)
17 number += 0x1000;
18 ret = Wb35Reg_WriteSync(pHwData, number, value);
19 return ret;