iio: potentiometer: mcp4531: use pointer to access model parameters
authorSlawomir Stepien <sst@poczta.fm>
Thu, 24 Mar 2016 16:06:01 +0000 (17:06 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Apr 2016 09:27:27 +0000 (10:27 +0100)
commit91307cbeca7fd372342aaea7e814a19156ee8e64
tree0b6bf83bb03596c3ed3cf4a80be3b775657178e4
parent51fadb985786929af9377245042b412302d2c9a2
iio: potentiometer: mcp4531: use pointer to access model parameters

Use const pointer to element from model configuration array rather then array
index, as it will not change anyway.

Signed-off-by: Slawomir Stepien <sst@poczta.fm>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/potentiometer/mcp4531.c