iio:dac:m62332: share scale and offset
authorHartmut Knaack <knaack.h@gmx.de>
Fri, 28 Aug 2015 21:59:53 +0000 (23:59 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Oct 2015 14:39:37 +0000 (15:39 +0100)
commit862a76acb2a033b886880fc70db19f00a036b4aa
treeb3364c8caef101f9af5f86e7acb418a9c372984e
parentd3a21ce0c60365991e59bbe848457c08f0c3c7ca
iio:dac:m62332: share scale and offset

This device simply uses its Vcc as reference voltage, so the same scale
applies for all channels. Also offset doesn't appear to be different for
any channel. Represent this by switching these two attributes to
info_mask_shared_by_type.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/m62332.c