commit | e031d5f558f1535968df1ecae8d734b84c17f78d | [log] [tgz] |
---|---|---|
author | Denis Ciocca <denis.ciocca@st.com> | Mon Aug 05 11:57:11 2019 -0700 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Aug 11 09:26:04 2019 +0100 |
tree | 663fb1b5ab579c6486d387e5dabe3ab747535e86 | |
parent | 854da7511a05c9a05a4f28fb2225349380520b96 [diff] |
iio:st_sensors: remove buffer allocation at each buffer enable This patch is removing the buffer allocation at each buffer enable. We just allocate enough memory in the main structure during probe to cover maximum size needed (that anyway is pretty small) [16bytes]. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>