mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 19:55:21 +07:00
034dbec179
The 'cros_ec' core driver is the common interface for the cros_ec transport drivers to do the shared operations to register, unregister, suspend, resume and handle_event. The interface is provided by including the header 'include/linux/platform_data/cros_ec_proto.h', however, instead of have the implementation of these functions in cros_ec_proto.c, it is in 'cros_ec.c', which is a different kernel module. Apart from being a bad practice, this can induce confusions allowing the users of the cros_ec protocol to call these functions. The register, unregister, suspend, resume and handle_event functions *should* only be called by the different transport drivers (i2c, spi, lpc, etc.), so make this a bit less confusing by moving these functions from the public in-kernel space to a private include in platform/chrome, and then, the interface for cros_ec module and for the cros_ec_proto module is clean. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Benson Leung <bleung@chromium.org> |
||
---|---|---|
.. | ||
wilco_ec | ||
chromeos_laptop.c | ||
chromeos_pstore.c | ||
chromeos_tbmc.c | ||
cros_ec_chardev.c | ||
cros_ec_debugfs.c | ||
cros_ec_i2c.c | ||
cros_ec_ishtp.c | ||
cros_ec_lightbar.c | ||
cros_ec_lpc_mec.c | ||
cros_ec_lpc_mec.h | ||
cros_ec_lpc.c | ||
cros_ec_proto.c | ||
cros_ec_rpmsg.c | ||
cros_ec_sensorhub.c | ||
cros_ec_spi.c | ||
cros_ec_sysfs.c | ||
cros_ec_trace.c | ||
cros_ec_trace.h | ||
cros_ec_vbc.c | ||
cros_ec.c | ||
cros_ec.h | ||
cros_kbd_led_backlight.c | ||
cros_usbpd_logger.c | ||
Kconfig | ||
Makefile |