mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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>
This commit is contained in:
parent
66594e3f48
commit
1914e9ebd3
1 changed files with 0 additions and 14 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue