mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
expand documentation of probe call
Add a comment that drivers are expected to initialize and read all profiles in the probe callback. Fixes #333
This commit is contained in:
committed by
Peter Hutterer
parent
b1c4bba3b2
commit
1adb147f6d
@@ -135,6 +135,10 @@ struct ratbag_driver {
|
||||
*
|
||||
* Return -ENODEV to ignore the device and let other drivers
|
||||
* probe the device. Any other error code will stop the probing.
|
||||
*
|
||||
* If a matching driver is found it should initialize itself
|
||||
* and synchronize all profiles with the current state on the device
|
||||
* in this callback.
|
||||
*/
|
||||
int (*probe)(struct ratbag_device *device);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user