Skip to content

Commit c59c46c

Browse files
Dr. David Alan GilbertJiri Kosina
authored andcommitted
HID: intel-ish-hid: Remove unused ishtp_dev_state_str
ishtp_dev_state_str() was added in 2016 by commit 3703f53 ("HID: intel_ish-hid: ISH Transport layer") but has never been used. Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 2a770b4 commit c59c46c

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

drivers/hid/intel-ish-hid/ishtp/init.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,6 @@
1414
#include "client.h"
1515
#include "loader.h"
1616

17-
/**
18-
* ishtp_dev_state_str() -Convert to string format
19-
* @state: state to convert
20-
*
21-
* Convert state to string for prints
22-
*
23-
* Return: character pointer to converted string
24-
*/
25-
const char *ishtp_dev_state_str(int state)
26-
{
27-
switch (state) {
28-
case ISHTP_DEV_INITIALIZING:
29-
return "INITIALIZING";
30-
case ISHTP_DEV_INIT_CLIENTS:
31-
return "INIT_CLIENTS";
32-
case ISHTP_DEV_ENABLED:
33-
return "ENABLED";
34-
case ISHTP_DEV_RESETTING:
35-
return "RESETTING";
36-
case ISHTP_DEV_DISABLED:
37-
return "DISABLED";
38-
case ISHTP_DEV_POWER_DOWN:
39-
return "POWER_DOWN";
40-
case ISHTP_DEV_POWER_UP:
41-
return "POWER_UP";
42-
default:
43-
return "unknown";
44-
}
45-
}
46-
4717
/**
4818
* ishtp_device_init() - ishtp device init
4919
* @dev: ISHTP device instance

drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ enum ishtp_dev_state {
5757
ISHTP_DEV_POWER_DOWN,
5858
ISHTP_DEV_POWER_UP
5959
};
60-
const char *ishtp_dev_state_str(int state);
6160

6261
struct ishtp_cl;
6362

0 commit comments

Comments
 (0)