mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 02:01:29 +00:00
e6e45420f4
The driver goes to some length to dynamically allocate an array to hold the channel addresses. However no ST sensor has more than three channels (x, y, z at most). Instead of kmalloc():ing and kfree():in the address array, just use a fixed array of three elements. Cc: Giuseppe Barba <giuseppe.barba@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> |
||
---|---|---|
.. | ||
hid-sensors | ||
ms_sensors | ||
ssp_sensors | ||
st_sensors | ||
Kconfig | ||
Makefile |