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: NSlawomir Stepien <sst@poczta.fm> Signed-off-by: NPeter Rosin <peda@axentia.se> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Showing
想要评论请 注册 或 登录