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: NHartmut Knaack <knaack.h@gmx.de> Acked-by: NAntoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Showing
想要评论请 注册 或 登录