mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00
HID: intel-ish-hid: Remove unused ishtp_dev_state_str
ishtp_dev_state_str() was added in 2016 by commit 3703f53b99e4 ("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>
This commit is contained in:
parent
2a770b49b1
commit
c59c46cade
@ -14,36 +14,6 @@
|
||||
#include "client.h"
|
||||
#include "loader.h"
|
||||
|
||||
/**
|
||||
* ishtp_dev_state_str() -Convert to string format
|
||||
* @state: state to convert
|
||||
*
|
||||
* Convert state to string for prints
|
||||
*
|
||||
* Return: character pointer to converted string
|
||||
*/
|
||||
const char *ishtp_dev_state_str(int state)
|
||||
{
|
||||
switch (state) {
|
||||
case ISHTP_DEV_INITIALIZING:
|
||||
return "INITIALIZING";
|
||||
case ISHTP_DEV_INIT_CLIENTS:
|
||||
return "INIT_CLIENTS";
|
||||
case ISHTP_DEV_ENABLED:
|
||||
return "ENABLED";
|
||||
case ISHTP_DEV_RESETTING:
|
||||
return "RESETTING";
|
||||
case ISHTP_DEV_DISABLED:
|
||||
return "DISABLED";
|
||||
case ISHTP_DEV_POWER_DOWN:
|
||||
return "POWER_DOWN";
|
||||
case ISHTP_DEV_POWER_UP:
|
||||
return "POWER_UP";
|
||||
default:
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ishtp_device_init() - ishtp device init
|
||||
* @dev: ISHTP device instance
|
||||
|
@ -57,7 +57,6 @@ enum ishtp_dev_state {
|
||||
ISHTP_DEV_POWER_DOWN,
|
||||
ISHTP_DEV_POWER_UP
|
||||
};
|
||||
const char *ishtp_dev_state_str(int state);
|
||||
|
||||
struct ishtp_cl;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user