summaryrefslogtreecommitdiffstats
path: root/include/linux/mei_cl_bus.h
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-04-09 01:51:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-08 16:57:15 -0700
commite46980a10a76ec3282dd6832c1974b880acd23d3 (patch)
tree42d8e5abab5991b4026af385545e23af619f610b /include/linux/mei_cl_bus.h
parentd6c36a475fccfca05fd05362c98e49f6dd07721c (diff)
downloadop-kernel-dev-e46980a10a76ec3282dd6832c1974b880acd23d3.zip
op-kernel-dev-e46980a10a76ec3282dd6832c1974b880acd23d3.tar.gz
mei: bus: Add device enabling and disabling API
It should be left to the drivers to enable and disable the device on the MEI bus when e.g getting probed. For drivers to be able to safely call the enable and disable hooks, the mei_cl_ops must be set before it's probed and thus this should happen before registering the device on the MEI bus. Hence the mei_cl_add_device() prototype change. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/mei_cl_bus.h')
-rw-r--r--include/linux/mei_cl_bus.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mei_cl_bus.h b/include/linux/mei_cl_bus.h
index 1bece18..d14af7b 100644
--- a/include/linux/mei_cl_bus.h
+++ b/include/linux/mei_cl_bus.h
@@ -38,4 +38,7 @@ int mei_cl_register_event_cb(struct mei_cl_device *device,
void *mei_cl_get_drvdata(const struct mei_cl_device *device);
void mei_cl_set_drvdata(struct mei_cl_device *device, void *data);
+int mei_cl_enable_device(struct mei_cl_device *device);
+int mei_cl_disable_device(struct mei_cl_device *device);
+
#endif /* _LINUX_MEI_CL_BUS_H */
OpenPOWER on IntegriCloud