forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/iio/dac/cio-dac.c
....@@ -66,8 +66,8 @@
6666 if (mask != IIO_CHAN_INFO_RAW)
6767 return -EINVAL;
6868
69
- /* DAC can only accept up to a 16-bit value */
70
- if ((unsigned int)val > 65535)
69
+ /* DAC can only accept up to a 12-bit value */
70
+ if ((unsigned int)val > 4095)
7171 return -EINVAL;
7272
7373 priv->chan_out_states[chan->channel] = val;