IIO: si7020: Allocate correct amount of memory in devm_iio_device_alloc
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Fri, 13 Feb 2015 07:58:41 +0000 (23:58 -0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Feb 2015 11:35:12 +0000 (11:35 +0000)
Since only a pointer to struct i2c_client is stored in a private area
of IIO device created by the driver there's no need to allocate
sizeof(struct i2c_client) worth of storage.

Pushed to stable as this is linked to the revert patch previously.
Without this followup the original patch looks sensible.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

No differences found