mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
Fix the eeprom set API method to return HAL_STATUS.
The code assumed it could return HAL_OK, HAL_EINVAL and other HAL_STATUS types; so it shouldn't be declared as returning HAL_BOOL. This commit was brought to you by the Clang compiler. Submitted by: Matthew Fleming <mdf356@gmail.com>
This commit is contained in:
parent
767ca6ed1a
commit
92ffeb633d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221896
|
@ -126,7 +126,7 @@ v9287EepromGet(struct ath_hal *ah, int param, void *val)
|
|||
#undef CHAN_B_IDX
|
||||
}
|
||||
|
||||
static HAL_BOOL
|
||||
static HAL_STATUS
|
||||
v9287EepromSet(struct ath_hal *ah, int param, int v)
|
||||
{
|
||||
HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom;
|
||||
|
|
|
@ -68,7 +68,7 @@ v1EepromGet(struct ath_hal *ah, int param, void *val)
|
|||
}
|
||||
}
|
||||
|
||||
static HAL_BOOL
|
||||
static HAL_STATUS
|
||||
v1EepromSet(struct ath_hal *ah, int param, int v)
|
||||
{
|
||||
return HAL_EINVAL;
|
||||
|
|
|
@ -148,7 +148,7 @@ v14EepromGet(struct ath_hal *ah, int param, void *val)
|
|||
#undef CHAN_B_IDX
|
||||
}
|
||||
|
||||
static HAL_BOOL
|
||||
static HAL_STATUS
|
||||
v14EepromSet(struct ath_hal *ah, int param, int v)
|
||||
{
|
||||
HAL_EEPROM_v14 *ee = AH_PRIVATE(ah)->ah_eeprom;
|
||||
|
|
|
@ -1665,7 +1665,7 @@ legacyEepromGet(struct ath_hal *ah, int param, void *val)
|
|||
return HAL_EINVAL;
|
||||
}
|
||||
|
||||
static HAL_BOOL
|
||||
static HAL_STATUS
|
||||
legacyEepromSet(struct ath_hal *ah, int param, int v)
|
||||
{
|
||||
HAL_EEPROM *ee = AH_PRIVATE(ah)->ah_eeprom;
|
||||
|
|
|
@ -116,7 +116,7 @@ v4kEepromGet(struct ath_hal *ah, int param, void *val)
|
|||
#undef CHAN_B_IDX
|
||||
}
|
||||
|
||||
static HAL_BOOL
|
||||
static HAL_STATUS
|
||||
v4kEepromSet(struct ath_hal *ah, int param, int v)
|
||||
{
|
||||
HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom;
|
||||
|
|
|
@ -269,7 +269,7 @@ struct ath_hal_private {
|
|||
uint16_t ah_eeversion; /* EEPROM version */
|
||||
void (*ah_eepromDetach)(struct ath_hal *);
|
||||
HAL_STATUS (*ah_eepromGet)(struct ath_hal *, int, void *);
|
||||
HAL_BOOL (*ah_eepromSet)(struct ath_hal *, int, int);
|
||||
HAL_STATUS (*ah_eepromSet)(struct ath_hal *, int, int);
|
||||
uint16_t (*ah_getSpurChan)(struct ath_hal *, int, HAL_BOOL);
|
||||
HAL_BOOL (*ah_eepromDiag)(struct ath_hal *, int request,
|
||||
const void *args, uint32_t argsize,
|
||||
|
|
Loading…
Reference in a new issue