diff options
| author | Lars-Peter Clausen <lars@metafoo.de> | 2012-11-05 09:56:00 +0000 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-05 20:39:51 +0000 |
| commit | bd6880477a3d73270edead88f4b806504998e5d8 (patch) | |
| tree | 700423605c971c504d1bfb027d5d53975a271300 /include/linux | |
| parent | 3c7f0c2b1150eae8683a98a5a9143d81edfc2762 (diff) | |
staging:iio:ad7887: Preallocate sample buffer
We know that the sample buffer will at most need to hold two 16 bit samples and
the 64 bit aligned 64 bit timestamp. Preallocate a buffer large enough to hold
this instead of allocating and freeing it each time a sample is read.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
