History

HID: intel-ish-hid: Move driver registry functions

Move the driver registry with the ishtp bus to the common interface file, which clients can include. Also rename __ishtp_cl_driver_register() to ishtp_cl_driver_register() and removed define for ishtp_cl_driver_register.

Srinivas Pandruvada committed 7 years ago

Commit e00a8641 parent c2012ec4 files · +31 −31Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/intel-ish-client-if.h+25−0
@@ -10,6 +10,31 @@ · 9 unmodified lines
1010
1111 struct ishtp_cl_device;
1212
13+/**
14+ * struct ishtp_cl_device - ISHTP device handle
15+ * @driver: driver instance on a bus
16+ * @name: Name of the device for probe
17+ * @probe: driver callback for device probe
18+ * @remove: driver callback on device removal
19+ *
20+ * Client drivers defines to get probed/removed for ISHTP client device.
21+ */
22+struct ishtp_cl_driver {
23+ struct device_driver driver;
24+ const char *name;
25+ const guid_t *guid;
26+ int (*probe)(struct ishtp_cl_device *dev);
27+ int (*remove)(struct ishtp_cl_device *dev);
28+ int (*reset)(struct ishtp_cl_device *dev);
29+ const struct dev_pm_ops *pm;
30+};
31+
32+int ishtp_cl_driver_register(struct ishtp_cl_driver *driver,
33+ struct module *owner);
34+void ishtp_cl_driver_unregister(struct ishtp_cl_driver *driver);
35+int ishtp_register_event_cb(struct ishtp_cl_device *device,
36+ void (*read_cb)(struct ishtp_cl_device *));
37+
1338 /* Get the device * from ishtp device instance */
1439 struct device *ishtp_device(struct ishtp_cl_device *cl_device);
1540 /* Trace interface for clients */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t