aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorLars-Peter Clausen <[email protected]>2012-04-25 09:44:54 +0200
committerGreg Kroah-Hartman <[email protected]>2012-04-25 10:57:19 -0700
commitaf836d9a38aec16a99c9c9bee114111db8b9e8df (patch)
treea49cd57a77090802404f2f12bf110fcf6f6a3041 /tools/perf/scripts/python/net_dropmonitor.py
parent5ff6a99d7c6c804c3b58608e8a476f4d7fd2dfd8 (diff)
staging:iio:dac:ad5446: Fix 24bit transfers
We currently only write 16 bit in case where we should write 24 bit. The spi message length is calculated from the channel storage_size, but since the storage size is only 16 bit we end up with the wrong value for devices which have power down bits and thus a register with 24 bit. Since each store function knows how many bytes it has to write just use the spi_write function from there instead of going through the hassle of manually preparing a spi_message and keeping buffers in the state struct. Another advantage of this patch is that it will make implementing support for similar I2C based DACs much easier. Signed-off-by: Lars-Peter Clausen <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions