mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
platform/chrome: cros_ec: remove unused variable was_wake_device
Reviewed-by: Prashant Malani <pmalani@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
This commit is contained in:
parent
2cd01bd6b1
commit
f47a6113f4
@ -342,7 +342,6 @@ int cros_ec_suspend(struct cros_ec_device *ec_dev)
|
|||||||
ec_dev->wake_enabled = !enable_irq_wake(ec_dev->irq);
|
ec_dev->wake_enabled = !enable_irq_wake(ec_dev->irq);
|
||||||
|
|
||||||
disable_irq(ec_dev->irq);
|
disable_irq(ec_dev->irq);
|
||||||
ec_dev->was_wake_device = ec_dev->wake_enabled;
|
|
||||||
ec_dev->suspended = true;
|
ec_dev->suspended = true;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -76,8 +76,6 @@ struct cros_ec_command {
|
|||||||
* struct cros_ec_device - Information about a ChromeOS EC device.
|
* struct cros_ec_device - Information about a ChromeOS EC device.
|
||||||
* @phys_name: Name of physical comms layer (e.g. 'i2c-4').
|
* @phys_name: Name of physical comms layer (e.g. 'i2c-4').
|
||||||
* @dev: Device pointer for physical comms device
|
* @dev: Device pointer for physical comms device
|
||||||
* @was_wake_device: True if this device was set to wake the system from
|
|
||||||
* sleep at the last suspend.
|
|
||||||
* @cros_class: The class structure for this device.
|
* @cros_class: The class structure for this device.
|
||||||
* @cmd_readmem: Direct read of the EC memory-mapped region, if supported.
|
* @cmd_readmem: Direct read of the EC memory-mapped region, if supported.
|
||||||
* @offset: Is within EC_LPC_ADDR_MEMMAP region.
|
* @offset: Is within EC_LPC_ADDR_MEMMAP region.
|
||||||
@ -137,7 +135,6 @@ struct cros_ec_device {
|
|||||||
/* These are used by other drivers that want to talk to the EC */
|
/* These are used by other drivers that want to talk to the EC */
|
||||||
const char *phys_name;
|
const char *phys_name;
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
bool was_wake_device;
|
|
||||||
struct class *cros_class;
|
struct class *cros_class;
|
||||||
int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset,
|
int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset,
|
||||||
unsigned int bytes, void *dest);
|
unsigned int bytes, void *dest);
|
||||||
|
Loading…
Reference in New Issue
Block a user