Skip to content

Commit cda8607

Browse files
Karthikeyan Periyasamykvalo
authored andcommitted
wifi: ath12k: rename the sc naming convention to ab
In PCI and HAL interface layer module, the identifier sc is used to represent an instance of ath12k_base structure. However, within ath12k, the convention is to use "ab" to represent an SoC "base" struct. So change the all instances of sc to ab. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00125-QCAHKSWPL_SILICONZ-1 Signed-off-by: Karthikeyan Periyasamy <[email protected]> Acked-by: Jeff Johnson <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 25ebf4c commit cda8607

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

drivers/net/wireless/ath/ath12k/hif.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
#include "core.h"
1111

1212
struct ath12k_hif_ops {
13-
u32 (*read32)(struct ath12k_base *sc, u32 address);
14-
void (*write32)(struct ath12k_base *sc, u32 address, u32 data);
15-
void (*irq_enable)(struct ath12k_base *sc);
16-
void (*irq_disable)(struct ath12k_base *sc);
17-
int (*start)(struct ath12k_base *sc);
18-
void (*stop)(struct ath12k_base *sc);
19-
int (*power_up)(struct ath12k_base *sc);
20-
void (*power_down)(struct ath12k_base *sc);
13+
u32 (*read32)(struct ath12k_base *ab, u32 address);
14+
void (*write32)(struct ath12k_base *ab, u32 address, u32 data);
15+
void (*irq_enable)(struct ath12k_base *ab);
16+
void (*irq_disable)(struct ath12k_base *ab);
17+
int (*start)(struct ath12k_base *ab);
18+
void (*stop)(struct ath12k_base *ab);
19+
int (*power_up)(struct ath12k_base *ab);
20+
void (*power_down)(struct ath12k_base *ab);
2121
int (*suspend)(struct ath12k_base *ab);
2222
int (*resume)(struct ath12k_base *ab);
23-
int (*map_service_to_pipe)(struct ath12k_base *sc, u16 service_id,
23+
int (*map_service_to_pipe)(struct ath12k_base *ab, u16 service_id,
2424
u8 *ul_pipe, u8 *dl_pipe);
2525
int (*get_user_msi_vector)(struct ath12k_base *ab, char *user_name,
2626
int *num_vectors, u32 *user_base_data,

drivers/net/wireless/ath/ath12k/pci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,12 +424,12 @@ static void ath12k_pci_ext_grp_disable(struct ath12k_ext_irq_grp *irq_grp)
424424
disable_irq_nosync(irq_grp->ab->irq_num[irq_grp->irqs[i]]);
425425
}
426426

427-
static void __ath12k_pci_ext_irq_disable(struct ath12k_base *sc)
427+
static void __ath12k_pci_ext_irq_disable(struct ath12k_base *ab)
428428
{
429429
int i;
430430

431431
for (i = 0; i < ATH12K_EXT_IRQ_GRP_NUM_MAX; i++) {
432-
struct ath12k_ext_irq_grp *irq_grp = &sc->ext_irq_grp[i];
432+
struct ath12k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i];
433433

434434
ath12k_pci_ext_grp_disable(irq_grp);
435435

0 commit comments

Comments
 (0)