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

View File

@@ -78,6 +78,7 @@ upektc_img_cmd_update_crc (unsigned char *cmd_buf, size_t size)
cmd_buf[size - 1] = (crc & 0xff00) >> 8;
}
FP_GNUC_ACCESS (read_only, 3, 4)
static void
upektc_img_submit_req (FpiSsm *ssm,
FpImageDevice *dev,