]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/mei_cl_bus.h
mei: bus: Implement driver registration
[mirror_ubuntu-bionic-kernel.git] / include / linux / mei_cl_bus.h
CommitLineData
e5354107
SO
1#ifndef _LINUX_MEI_CL_BUS_H
2#define _LINUX_MEI_CL_BUS_H
3
4#include <linux/device.h>
5#include <linux/uuid.h>
6
7struct mei_cl_device;
8
9struct mei_cl_driver {
10 struct device_driver driver;
11 const char *name;
12
13 const struct mei_cl_device_id *id_table;
14
15 int (*probe)(struct mei_cl_device *dev,
16 const struct mei_cl_device_id *id);
17 int (*remove)(struct mei_cl_device *dev);
18};
19
333e4ee0
SO
20int __mei_cl_driver_register(struct mei_cl_driver *driver,
21 struct module *owner);
22#define mei_cl_driver_register(driver) \
23 __mei_cl_driver_register(driver, THIS_MODULE)
24
25void mei_cl_driver_unregister(struct mei_cl_driver *driver);
26
e5354107 27#endif /* _LINUX_MEI_CL_BUS_H */