Home
last modified time | relevance | path

Searched hist:e01becbad300712a28f29b666e685536f45e83bc (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iio/humidity/
H A Dsi7020.cdiff e01becbad300712a28f29b666e685536f45e83bc Fri Feb 13 01:58:41 CST 2015 Andrey Smirnov <andrew.smirnov@gmail.com> IIO: si7020: Allocate correct amount of memory in devm_iio_device_alloc

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>