mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
afb0a80e63
Up to now cros_ec_unregister() returns zero unconditionally. Make it return void instead which makes it easier to see in the callers that there is no error to handle. Also the return value of i2c, platform and spi remove callbacks is ignored anyway. Reviewed-by: Guenter Roeck <groeck@chromium.org> Link: https://lore.kernel.org/r/20211020071753.wltjslmimb6wtlp5@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20220123175201.34839-5-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
22 lines
500 B
C
22 lines
500 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* ChromeOS Embedded Controller core interface.
|
|
*
|
|
* Copyright (C) 2020 Google LLC
|
|
*/
|
|
|
|
#ifndef __CROS_EC_H
|
|
#define __CROS_EC_H
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
int cros_ec_register(struct cros_ec_device *ec_dev);
|
|
void cros_ec_unregister(struct cros_ec_device *ec_dev);
|
|
|
|
int cros_ec_suspend(struct cros_ec_device *ec_dev);
|
|
int cros_ec_resume(struct cros_ec_device *ec_dev);
|
|
|
|
irqreturn_t cros_ec_irq_thread(int irq, void *data);
|
|
|
|
#endif /* __CROS_EC_H */
|