]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (max1111) Avoid extra memory allocations
authorJean Delvare <khali@linux-fr.org>
Mon, 25 Jul 2011 19:46:10 +0000 (21:46 +0200)
committerJean Delvare <khali@endymion.delvare>
Mon, 25 Jul 2011 19:46:10 +0000 (21:46 +0200)
commit41b77208f5ff90f22176c4e9d2a6e15344f3aa43
treeb8c9430670ce30c9d2100c87def3720bbe24f66f
parent002d8b829a068df4efd29dd316940b2e43c38ac9
hwmon: (max1111) Avoid extra memory allocations

We can allocate the tx and rx buffers as part of our data structure.
Doing so is faster and spares memory.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Stanislav Brabec <utx@penguin.cz>
drivers/hwmon/max1111.c