summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_macbeth_locator.py
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2024-06-25 09:51:49 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-06-25 10:22:00 +0300
commit4d0834ea0adfb5139e0ab83751d3e89d72e0a931 (patch)
treed110898a44075311df8b095b9f0fa1ebed05ded9 /utils/raspberrypi/ctt/ctt_macbeth_locator.py
parentbab056eb8621d499d0a2be688ef1a06797a7da1b (diff)
v4l2: v4l2_compat: Move `open*()` flag check into function
This commit moves the check that determines whether the mode argument of `open*()` exists into a separate function. With that, the check is fixed because previously it failed to account for the fact that `O_TMPFILE` is not a power of two. Furthermore, add `assert()`s in the fortified variants that ensure that no mode is required by the specified flags. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'utils/raspberrypi/ctt/ctt_macbeth_locator.py')
0 files changed, 0 insertions, 0 deletions
8 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123