mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: rely on register macros
For consistency with the rest of the code always rely on defined macros for register access Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
869ba618ef
commit
b1ddec840a
@@ -9,7 +9,7 @@ mt76_reg_set(void *data, u64 val)
|
||||
{
|
||||
struct mt76_dev *dev = data;
|
||||
|
||||
dev->bus->wr(dev, dev->debugfs_reg, val);
|
||||
__mt76_wr(dev, dev->debugfs_reg, val);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ mt76_reg_get(void *data, u64 *val)
|
||||
{
|
||||
struct mt76_dev *dev = data;
|
||||
|
||||
*val = dev->bus->rr(dev, dev->debugfs_reg);
|
||||
*val = __mt76_rr(dev, dev->debugfs_reg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user