summaryrefslogtreecommitdiffstats
path: root/drivers/staging/kpc2000
diff options
context:
space:
mode:
authorGeordan Neukum2019-06-02 17:58:36 +0200
committerGreg Kroah-Hartman2019-06-03 14:17:01 +0200
commit1914e9ebd362af679a4bf384e7960d47788d27e1 (patch)
tree5fdde0710e3056e9a18fdb0171caf25a5e618b9d /drivers/staging/kpc2000
parentstaging: kpc2000: kpc_spi: remove fifo_depth from kp_spi struct (diff)
downloadkernel-qcow2-linux-1914e9ebd362af679a4bf384e7960d47788d27e1.tar.gz
kernel-qcow2-linux-1914e9ebd362af679a4bf384e7960d47788d27e1.tar.xz
kernel-qcow2-linux-1914e9ebd362af679a4bf384e7960d47788d27e1.zip
staging: kpc2000: kpc_spi: remove function kp_spi_bytes_per_word()
The static function kp_spi_bytes_per_word() is defined in kpc2000_spi.c, but it is completely unused. As this function is unused, it can and should be removed. Signed-off-by: Geordan Neukum <gneukum1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/kpc2000')
-rw-r--r--drivers/staging/kpc2000/kpc2000_spi.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c
index 049b1e324031..b513432a26ed 100644
--- a/drivers/staging/kpc2000/kpc2000_spi.c
+++ b/drivers/staging/kpc2000/kpc2000_spi.c
@@ -162,20 +162,6 @@ union kp_spi_ffctrl {
/***************
* SPI Helpers *
***************/
- static inline int
-kp_spi_bytes_per_word(int word_len)
-{
- if (word_len <= 8){
- return 1;
- }
- else if (word_len <= 16) {
- return 2;
- }
- else { /* word_len <= 32 */
- return 4;
- }
-}
-
static inline u64
kp_spi_read_reg(struct kp_spi_controller_state *cs, int idx)
{