diff options
author | William Breathitt Gray <[email protected]> | 2023-03-10 19:22:48 -0500 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2023-03-11 12:35:24 +0000 |
commit | c3701185ee1973845db088d8b0fc443397ab0eb2 (patch) | |
tree | 7f898821e2fc8dd7e1c5958a54ce0c2a9f07292d /net/unix/af_unix.c | |
parent | 099cc90a5a62e68b2fe3a42da011ab929b98bf73 (diff) |
iio: dac: cio-dac: Fix max DAC write value check for 12-bit
The CIO-DAC series of devices only supports DAC values up to 12-bit
rather than 16-bit. Trying to write a 16-bit value results in only the
lower 12 bits affecting the DAC output which is not what the user
expects. Instead, adjust the DAC write value check to reject values
larger than 12-bit so that they fail explicitly as invalid for the user.
Fixes: 3b8df5fd526e ("iio: Add IIO support for the Measurement Computing CIO-DAC family")
Cc: [email protected]
Signed-off-by: William Breathitt Gray <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions