]> git.karo-electronics.de Git - linux-beck.git/commit
staging:iio:hmc5843: register <-> value arrays now can have different lengths
authorJosef Gajdusek <atx@atalax.net>
Tue, 22 Jul 2014 15:02:00 +0000 (16:02 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Jul 2014 20:48:17 +0000 (21:48 +0100)
commit585f7ce2a93296e634cb50deab418029fdffb23f
treec9145241feceb25cd7ef0db0e6d85d16ab3135f8
parentfc35a91b2e348d7aa2de177812e2e78c5276b338
staging:iio:hmc5843: register <-> value arrays now can have different lengths

Changed structure of struct hmc5843_chip_info to include length of translation
arrays. Code previously using #defined constant has been changed accordingly.
This allows to integrate devices which do have different amounts of available
rates/scales.

Signed-off-by: Josef Gajdusek <atx@atx.name>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/magnetometer/hmc5843_core.c