hwmon: (max1111) Avoid extra memory allocations
commitd737c09cfb78424276e3eb45d1e7af578a451fd4
authorJean Delvare <khali@linux-fr.org>
Mon, 25 Jul 2011 19:46:10 +0000 (25 21:46 +0200)
committerJean Delvare <khali@endymion.delvare>
Mon, 25 Jul 2011 19:46:10 +0000 (25 21:46 +0200)
treeb8c9430670ce30c9d2100c87def3720bbe24f66f
parent3d30f9e69f152d8667b3b13ac6f566e6e76ef7b9
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