mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
HID: add a new helper to_hid_driver()
Add a new helper to_hid_driver() and use it in hid-core.c. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
committed by
Jiri Kosina
parent
ee79a8f840
commit
ba91a96718
@@ -717,6 +717,9 @@ struct hid_driver {
|
||||
struct device_driver driver;
|
||||
};
|
||||
|
||||
#define to_hid_driver(pdrv) \
|
||||
container_of(pdrv, struct hid_driver, driver)
|
||||
|
||||
/**
|
||||
* hid_ll_driver - low level driver callbacks
|
||||
* @start: called on probe to start the device
|
||||
|
||||
Reference in New Issue
Block a user