qcacmn: Fix kernel module check patch warnings in HIF Dispatcher files

Fix kernel module check patch warnings in HIF DISPATCHER files

Change-Id: Ice22f299c075f99eacc20c7acc10fe8040139f97
CRs-fixed: 2033001
This commit is contained in:
Manikandan Mohan
2017-04-07 18:32:02 -07:00
committed by snandini
parent c23f28e540
commit 8e0313588d
3 changed files with 28 additions and 10 deletions

View File

@@ -195,7 +195,6 @@ hif_dummy_get_config_item(struct hif_softc *hif_sc,
void
hif_dummy_set_mailbox_swap(struct hif_softc *hif_sc)
{
return;
}
/**
@@ -207,7 +206,6 @@ hif_dummy_set_mailbox_swap(struct hif_softc *hif_sc)
void
hif_dummy_claim_device(struct hif_softc *hif_sc)
{
return;
}
/**
@@ -219,7 +217,6 @@ hif_dummy_claim_device(struct hif_softc *hif_sc)
void
hif_dummy_cancel_deferred_target_sleep(struct hif_softc *hif_sc)
{
return;
}
/**
@@ -323,7 +320,6 @@ void hif_dummy_ipa_get_ce_resource(struct hif_softc *hif_sc,
void
hif_dummy_mask_interrupt_call(struct hif_softc *hif_sc)
{
return;
}
/**
@@ -354,7 +350,6 @@ void hif_dummy_clear_stats(struct hif_softc *hif_ctx)
void hif_dummy_set_bundle_mode(struct hif_softc *hif_ctx,
bool enabled, int rx_bundle_cnt)
{
return;
}
/**

View File

@@ -192,42 +192,49 @@ void hif_bus_prevent_linkdown(struct hif_softc *hif_sc, bool flag)
void hif_reset_soc(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
hif_sc->bus_ops.hif_reset_soc(hif_sc);
}
int hif_bus_early_suspend(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
return hif_sc->bus_ops.hif_bus_early_suspend(hif_sc);
}
int hif_bus_late_resume(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
return hif_sc->bus_ops.hif_bus_late_resume(hif_sc);
}
int hif_bus_suspend(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
return hif_sc->bus_ops.hif_bus_suspend(hif_sc);
}
int hif_bus_resume(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
return hif_sc->bus_ops.hif_bus_resume(hif_sc);
}
int hif_bus_suspend_noirq(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
return hif_sc->bus_ops.hif_bus_suspend_noirq(hif_sc);
}
int hif_bus_resume_noirq(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
return hif_sc->bus_ops.hif_bus_resume_noirq(hif_sc);
}
@@ -241,6 +248,7 @@ int hif_target_sleep_state_adjust(struct hif_softc *hif_sc,
void hif_disable_isr(struct hif_opaque_softc *hif_hdl)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_hdl);
hif_sc->bus_ops.hif_disable_isr(hif_sc);
}
@@ -270,6 +278,7 @@ QDF_STATUS hif_get_config_item(struct hif_opaque_softc *hif_ctx,
int opcode, void *config, uint32_t config_len)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
return hif_sc->bus_ops.hif_get_config_item(hif_sc, opcode, config,
config_len);
}
@@ -277,24 +286,28 @@ QDF_STATUS hif_get_config_item(struct hif_opaque_softc *hif_ctx,
void hif_set_mailbox_swap(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
hif_sc->bus_ops.hif_set_mailbox_swap(hif_sc);
}
void hif_claim_device(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
hif_sc->bus_ops.hif_claim_device(hif_sc);
}
void hif_shutdown_device(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
hif_sc->bus_ops.hif_shutdown_device(hif_sc);
}
void hif_stop(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
hif_sc->bus_ops.hif_stop(hif_sc);
}
@@ -331,6 +344,7 @@ int hif_grp_irq_configure(struct hif_softc *hif_sc)
int hif_dump_registers(struct hif_opaque_softc *hif_hdl)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_hdl);
return hif_sc->bus_ops.hif_dump_registers(hif_sc);
}
@@ -339,6 +353,7 @@ void hif_dump_target_memory(struct hif_opaque_softc *hif_hdl,
uint32_t address, uint32_t size)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_hdl);
hif_sc->bus_ops.hif_dump_target_memory(hif_sc, ramdump_base,
address, size);
}
@@ -349,6 +364,7 @@ void hif_ipa_get_ce_resource(struct hif_opaque_softc *hif_hdl,
qdf_dma_addr_t *ce_reg_paddr)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_hdl);
hif_sc->bus_ops.hif_ipa_get_ce_resource(hif_sc, ce_sr_base_paddr,
ce_sr_ring_size, ce_reg_paddr);
}
@@ -356,6 +372,7 @@ void hif_ipa_get_ce_resource(struct hif_opaque_softc *hif_hdl,
void hif_mask_interrupt_call(struct hif_opaque_softc *hif_hdl)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_hdl);
hif_sc->bus_ops.hif_mask_interrupt_call(hif_sc);
}
@@ -386,6 +403,7 @@ void hif_enable_power_management(struct hif_opaque_softc *hif_hdl,
bool is_packet_log_enabled)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_hdl);
hif_sc->bus_ops.hif_enable_power_management(hif_sc,
is_packet_log_enabled);
}
@@ -401,6 +419,7 @@ void hif_enable_power_management(struct hif_opaque_softc *hif_hdl,
void hif_disable_power_management(struct hif_opaque_softc *hif_hdl)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_hdl);
hif_sc->bus_ops.hif_disable_power_management(hif_sc);
}
@@ -416,6 +435,7 @@ void hif_set_bundle_mode(struct hif_opaque_softc *scn, bool enabled,
int rx_bundle_cnt)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(scn);
hif_sc->bus_ops.hif_set_bundle_mode(hif_sc, enabled, rx_bundle_cnt);
}
@@ -433,6 +453,7 @@ int hif_bus_reset_resume(struct hif_opaque_softc *scn)
{
struct hif_softc *hif_sc = HIF_GET_SOFTC(scn);
return hif_sc->bus_ops.hif_bus_reset_resume(hif_sc);
}

View File

@@ -36,7 +36,7 @@ struct hif_softc;
struct hif_bus_ops {
QDF_STATUS (*hif_bus_open)(struct hif_softc *hif_sc,
enum qdf_bus_type bus_type);
enum qdf_bus_type bus_type);
void (*hif_bus_close)(struct hif_softc *hif_sc);
void (*hif_bus_prevent_linkdown)(struct hif_softc *hif_sc, bool flag);
void (*hif_reset_soc)(struct hif_softc *hif_sc);
@@ -51,12 +51,14 @@ struct hif_bus_ops {
void (*hif_disable_isr)(struct hif_softc *hif_sc);
void (*hif_nointrs)(struct hif_softc *hif_sc);
QDF_STATUS (*hif_enable_bus)(struct hif_softc *hif_sc,
struct device *dev, void *bdev, const hif_bus_id *bid,
enum hif_enable_type type);
struct device *dev,
void *bdev,
const struct hif_bus_id *bid,
enum hif_enable_type type);
void (*hif_disable_bus)(struct hif_softc *hif_sc);
int (*hif_bus_configure)(struct hif_softc *hif_sc);
QDF_STATUS (*hif_get_config_item)(struct hif_softc *hif_sc,
int opcode, void *config, uint32_t config_len);
int opcode, void *config, uint32_t config_len);
void (*hif_set_mailbox_swap)(struct hif_softc *hif_sc);
void (*hif_claim_device)(struct hif_softc *hif_sc);
void (*hif_shutdown_device)(struct hif_softc *hif_sc);
@@ -81,7 +83,7 @@ struct hif_bus_ops {
void (*hif_disable_power_management)(struct hif_softc *hif_ctx);
void (*hif_display_stats)(struct hif_softc *hif_ctx);
void (*hif_clear_stats)(struct hif_softc *hif_ctx);
void (*hif_set_bundle_mode) (struct hif_softc *hif_ctx, bool enabled,
void (*hif_set_bundle_mode)(struct hif_softc *hif_ctx, bool enabled,
int rx_bundle_cnt);
int (*hif_bus_reset_resume)(struct hif_softc *hif_ctx);
int (*hif_map_ce_to_irq)(struct hif_softc *hif_sc, int ce_id);