iio: potentiometer: tpl0102: switch to using pointer to chip config
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 24 Oct 2018 10:38:57 +0000 (11:38 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 11 Nov 2018 15:29:42 +0000 (15:29 +0000)
commitee2303515e7555abb93297d8b8d8a55b0d156388
treee6332bf7d83df497c42534f70b76f99d02d3f3d5
parent80fc9c457e99a6f568a56743dcd8ad8851723f5f
iio: potentiometer: tpl0102: switch to using pointer to chip config

More concise to have a pointer to tpl0102_cfg struct in the iio_priv
data than an integer to an index of an array.

Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: Slawomir Stepien <sst@poczta.fm>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/potentiometer/tpl0102.c