]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (max1111) Avoid extra memory allocations
authorJean Delvare <khali@linux-fr.org>
Tue, 26 Jul 2011 00:37:28 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 00:37:28 +0000 (10:37 +1000)
commitf91127acf8f024edc4777c8fba406e47068ba4af
treeb8c9430670ce30c9d2100c87def3720bbe24f66f
parente5cec63634239dd0c71c42015f0490164998352b
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