rsi: rename sdio_read_buffer_status_register
authorKarun Eagalapati <karun256@gmail.com>
Thu, 3 Aug 2017 14:29:01 +0000 (19:59 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 8 Aug 2017 11:46:02 +0000 (14:46 +0300)
rsi_sdio_check_buffer_status would be the appropriate name
for this function as we are checking hardware buffers
availability status.

Signed-off-by: Karun Eagalapati <karun256@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_sdio.c
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c
drivers/net/wireless/rsi/rsi_sdio.h

index 42d558b61721ee0f39caefbced2f31ff0507d942..742f6cd44f6c0bf705e001cc722e9c4d34dc421b 100644 (file)
@@ -860,7 +860,7 @@ static int rsi_init_sdio_interface(struct rsi_hw *adapter,
        sdio_release_host(pfunction);
 
        adapter->determine_event_timeout = rsi_sdio_determine_event_timeout;
-       adapter->check_hw_queue_status = rsi_sdio_read_buffer_status_register;
+       adapter->check_hw_queue_status = rsi_sdio_check_buffer_status;
 
 #ifdef CONFIG_RSI_DEBUGFS
        adapter->num_debugfs_entries = MAX_DEBUGFS_ENTRIES;
index b3f7adc9d0853049d54b7d0dd6008788d7396aba..9b94ba780ee25f4443d3eb7904949d422f092dab 100644 (file)
@@ -323,17 +323,10 @@ void rsi_interrupt_handler(struct rsi_hw *adapter)
        } while (1);
 }
 
-/**
- * rsi_sdio_read_buffer_status_register() - This function is used to the read
- *                                         buffer status register and set
- *                                         relevant fields in
- *                                         rsi_91x_sdiodev struct.
- * @adapter: Pointer to the driver hw structure.
- * @q_num: The Q number whose status is to be found.
- *
- * Return: status: -1 on failure or else queue full/stop is indicated.
+/* This function is used to read buffer status register and
+ * set relevant fields in rsi_91x_sdiodev struct.
  */
-int rsi_sdio_read_buffer_status_register(struct rsi_hw *adapter, u8 q_num)
+int rsi_sdio_check_buffer_status(struct rsi_hw *adapter, u8 q_num)
 {
        struct rsi_common *common = adapter->priv;
        struct rsi_91x_sdiodev *dev =
index 3cf67565feb133c69d69efb017fcdb8be2cd8734..9239fbe698f883c59134e98a748afd35e79f45b1 100644 (file)
@@ -127,5 +127,5 @@ int rsi_sdio_write_register_multiple(struct rsi_hw *adapter, u32 addr,
 int rsi_sdio_master_access_msword(struct rsi_hw *adapter, u16 ms_word);
 void rsi_sdio_ack_intr(struct rsi_hw *adapter, u8 int_bit);
 int rsi_sdio_determine_event_timeout(struct rsi_hw *adapter);
-int rsi_sdio_read_buffer_status_register(struct rsi_hw *adapter, u8 q_num);
+int rsi_sdio_check_buffer_status(struct rsi_hw *adapter, u8 q_num);
 #endif