Commit f145b4f4 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging: csr: io.c: replace spaces with tabs

replace the spaces with the tabs at the start of line
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c35eb3ae
...@@ -1000,37 +1000,37 @@ uf_remove_os_device(int bus_id) ...@@ -1000,37 +1000,37 @@ uf_remove_os_device(int bus_id)
static void static void
uf_sdio_inserted(CsrSdioFunction *sdio_ctx) uf_sdio_inserted(CsrSdioFunction *sdio_ctx)
{ {
unifi_priv_t *priv; unifi_priv_t *priv;
unifi_trace(NULL, UDBG5, "uf_sdio_inserted(0x%p), slot_id=%d, dev=%p\n", unifi_trace(NULL, UDBG5, "uf_sdio_inserted(0x%p), slot_id=%d, dev=%p\n",
sdio_ctx, active_slot, os_devices[active_slot]); sdio_ctx, active_slot, os_devices[active_slot]);
priv = register_unifi_sdio(sdio_ctx, active_slot, os_devices[active_slot]); priv = register_unifi_sdio(sdio_ctx, active_slot, os_devices[active_slot]);
if (priv == NULL) { if (priv == NULL) {
CsrSdioInsertedAcknowledge(sdio_ctx, CSR_RESULT_FAILURE); CsrSdioInsertedAcknowledge(sdio_ctx, CSR_RESULT_FAILURE);
return; return;
} }
sdio_ctx->driverData = priv; sdio_ctx->driverData = priv;
CsrSdioInsertedAcknowledge(sdio_ctx, CSR_RESULT_SUCCESS); CsrSdioInsertedAcknowledge(sdio_ctx, CSR_RESULT_SUCCESS);
} /* uf_sdio_inserted() */ } /* uf_sdio_inserted() */
static void static void
uf_sdio_removed(CsrSdioFunction *sdio_ctx) uf_sdio_removed(CsrSdioFunction *sdio_ctx)
{ {
unregister_unifi_sdio(active_slot); unregister_unifi_sdio(active_slot);
CsrSdioRemovedAcknowledge(sdio_ctx); CsrSdioRemovedAcknowledge(sdio_ctx);
} /* uf_sdio_removed() */ } /* uf_sdio_removed() */
static void static void
uf_sdio_dsr_handler(CsrSdioFunction *sdio_ctx) uf_sdio_dsr_handler(CsrSdioFunction *sdio_ctx)
{ {
unifi_priv_t *priv = sdio_ctx->driverData; unifi_priv_t *priv = sdio_ctx->driverData;
unifi_sdio_interrupt_handler(priv->card); unifi_sdio_interrupt_handler(priv->card);
} /* uf_sdio_dsr_handler() */ } /* uf_sdio_dsr_handler() */
/* /*
...@@ -1052,7 +1052,7 @@ uf_sdio_dsr_handler(CsrSdioFunction *sdio_ctx) ...@@ -1052,7 +1052,7 @@ uf_sdio_dsr_handler(CsrSdioFunction *sdio_ctx)
static CsrSdioInterruptDsrCallback static CsrSdioInterruptDsrCallback
uf_sdio_int_handler(CsrSdioFunction *sdio_ctx) uf_sdio_int_handler(CsrSdioFunction *sdio_ctx)
{ {
return uf_sdio_dsr_handler; return uf_sdio_dsr_handler;
} /* uf_sdio_int_handler() */ } /* uf_sdio_int_handler() */
...@@ -1060,18 +1060,18 @@ uf_sdio_int_handler(CsrSdioFunction *sdio_ctx) ...@@ -1060,18 +1060,18 @@ uf_sdio_int_handler(CsrSdioFunction *sdio_ctx)
static CsrSdioFunctionId unifi_ids[] = static CsrSdioFunctionId unifi_ids[] =
{ {
{ {
.manfId = SDIO_MANF_ID_CSR, .manfId = SDIO_MANF_ID_CSR,
.cardId = SDIO_CARD_ID_UNIFI_3, .cardId = SDIO_CARD_ID_UNIFI_3,
.sdioFunction = SDIO_WLAN_FUNC_ID_UNIFI_3, .sdioFunction = SDIO_WLAN_FUNC_ID_UNIFI_3,
.sdioInterface = CSR_SDIO_ANY_SDIO_INTERFACE, .sdioInterface = CSR_SDIO_ANY_SDIO_INTERFACE,
}, },
{ {
.manfId = SDIO_MANF_ID_CSR, .manfId = SDIO_MANF_ID_CSR,
.cardId = SDIO_CARD_ID_UNIFI_4, .cardId = SDIO_CARD_ID_UNIFI_4,
.sdioFunction = SDIO_WLAN_FUNC_ID_UNIFI_4, .sdioFunction = SDIO_WLAN_FUNC_ID_UNIFI_4,
.sdioInterface = CSR_SDIO_ANY_SDIO_INTERFACE, .sdioInterface = CSR_SDIO_ANY_SDIO_INTERFACE,
} }
}; };
...@@ -1080,14 +1080,14 @@ static CsrSdioFunctionId unifi_ids[] = ...@@ -1080,14 +1080,14 @@ static CsrSdioFunctionId unifi_ids[] =
*/ */
static CsrSdioFunctionDriver unifi_sdioFunction_drv = static CsrSdioFunctionDriver unifi_sdioFunction_drv =
{ {
.inserted = uf_sdio_inserted, .inserted = uf_sdio_inserted,
.removed = uf_sdio_removed, .removed = uf_sdio_removed,
.intr = uf_sdio_int_handler, .intr = uf_sdio_int_handler,
.suspend = uf_lx_suspend, .suspend = uf_lx_suspend,
.resume = uf_lx_resume, .resume = uf_lx_resume,
.ids = unifi_ids, .ids = unifi_ids,
.idsCount = sizeof(unifi_ids) / sizeof(unifi_ids[0]) .idsCount = sizeof(unifi_ids) / sizeof(unifi_ids[0])
}; };
...@@ -1110,15 +1110,15 @@ static CsrSdioFunctionDriver unifi_sdioFunction_drv = ...@@ -1110,15 +1110,15 @@ static CsrSdioFunctionDriver unifi_sdioFunction_drv =
int __init int __init
uf_sdio_load(void) uf_sdio_load(void)
{ {
CsrResult csrResult; CsrResult csrResult;
csrResult = CsrSdioFunctionDriverRegister(&unifi_sdioFunction_drv); csrResult = CsrSdioFunctionDriverRegister(&unifi_sdioFunction_drv);
if (csrResult != CSR_RESULT_SUCCESS) { if (csrResult != CSR_RESULT_SUCCESS) {
unifi_error(NULL, "Failed to register UniFi SDIO driver: csrResult=%d\n", csrResult); unifi_error(NULL, "Failed to register UniFi SDIO driver: csrResult=%d\n", csrResult);
return -EIO; return -EIO;
} }
return 0; return 0;
} /* uf_sdio_load() */ } /* uf_sdio_load() */
...@@ -1126,6 +1126,6 @@ uf_sdio_load(void) ...@@ -1126,6 +1126,6 @@ uf_sdio_load(void)
void __exit void __exit
uf_sdio_unload(void) uf_sdio_unload(void)
{ {
CsrSdioFunctionDriverUnregister(&unifi_sdioFunction_drv); CsrSdioFunctionDriverUnregister(&unifi_sdioFunction_drv);
} /* uf_sdio_unload() */ } /* uf_sdio_unload() */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment