iio:adc:berlin2-adc: use short operator format
authorHartmut Knaack <knaack.h@gmx.de>
Mon, 27 Jul 2015 22:39:01 +0000 (00:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Aug 2015 18:08:13 +0000 (19:08 +0100)
commit609e9d88f277bfe83392595745cc3976d42125b2
tree85f4d17a3b7482b0848405b5c804d59a55658497
parent688febbd168c52ab54ad29c210aceecb72386398
iio:adc:berlin2-adc: use short operator format

Use augmented assignment to subtract the offset for negative temperature
values.
Specify the amount of private data to be allocated through
devm_iio_device_alloc() with sizeof(*priv), as it is shorter and common
practice in IIO.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/berlin2-adc.c