drivers: Add access annotations to USB helpers

Mostly for completeness sake, doing this did not find any errors (but
might catch some issues with fixed buffer lengths).
This commit is contained in:
Benjamin Berg
2020-10-07 13:37:49 +02:00
parent 33d50e4e30
commit 7eb361087a
4 changed files with 5 additions and 0 deletions
+2
View File
@@ -54,6 +54,7 @@ static void complete_deactivation (FpImageDevice *dev);
#define CALIBRATE_DATA_LEN 4
#define FINGER_DET_DATA_LEN 4
FP_GNUC_ACCESS (read_only, 3, 4)
static void
aesX660_send_cmd_timeout (FpiSsm *ssm,
FpDevice *_dev,
@@ -70,6 +71,7 @@ aesX660_send_cmd_timeout (FpiSsm *ssm,
fpi_usb_transfer_submit (transfer, timeout, NULL, callback, NULL);
}
FP_GNUC_ACCESS (read_only, 3, 4)
static void
aesX660_send_cmd (FpiSsm *ssm,
FpDevice *dev,