]> 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)
commit977b92a721bddd49155f5553a014bec40865edea
treeb8c9430670ce30c9d2100c87def3720bbe24f66f
parentae687aed0c52b49ca6f83377ac8bf43fd85fdef6
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