mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
mt76: mt7915: make mt7915_eeprom_read static
Make mt7915_eeprom_read routine static since it is used only in eeprom.c Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
ed3c9072fa
commit
078b6d21b8
|
|
@ -4,16 +4,11 @@
|
|||
#include "mt7915.h"
|
||||
#include "eeprom.h"
|
||||
|
||||
static inline bool mt7915_efuse_valid(u8 val)
|
||||
{
|
||||
return !(val == 0xff);
|
||||
}
|
||||
|
||||
u32 mt7915_eeprom_read(struct mt7915_dev *dev, u32 offset)
|
||||
static u32 mt7915_eeprom_read(struct mt7915_dev *dev, u32 offset)
|
||||
{
|
||||
u8 *data = dev->mt76.eeprom.data;
|
||||
|
||||
if (!mt7915_efuse_valid(data[offset]))
|
||||
if (data[offset] == 0xff)
|
||||
mt7915_mcu_get_eeprom(dev, offset);
|
||||
|
||||
return data[offset];
|
||||
|
|
|
|||
|
|
@ -278,7 +278,6 @@ void mt7915_unregister_device(struct mt7915_dev *dev);
|
|||
int mt7915_register_ext_phy(struct mt7915_dev *dev);
|
||||
void mt7915_unregister_ext_phy(struct mt7915_dev *dev);
|
||||
int mt7915_eeprom_init(struct mt7915_dev *dev);
|
||||
u32 mt7915_eeprom_read(struct mt7915_dev *dev, u32 offset);
|
||||
int mt7915_eeprom_get_target_power(struct mt7915_dev *dev,
|
||||
struct ieee80211_channel *chan,
|
||||
u8 chain_idx);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user