1
0
forked from drath/libratbag

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:
Thomas Hindoe Paaboel Andersen
2017-09-27 21:43:59 +02:00
committed by Peter Hutterer
parent b1c4bba3b2
commit 1adb147f6d

View File

@@ -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);