summaryrefslogtreecommitdiffstats
path: root/sound/atmel
diff options
context:
space:
mode:
authorJakob Hauser <jahau@rocketmail.com>2022-08-13 00:05:02 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-08-15 22:30:04 +0100
commit059ff0f9a10508c39f2c22d4144e88156bbf86ef (patch)
tree93cf767c11e2e112a0c4536d66bff796db53a7eb /sound/atmel
parent2d6676ecbe6a39fb1e002b89781e4158e77a784e (diff)
downloadlinux-059ff0f9a10508c39f2c22d4144e88156bbf86ef.tar.bz2
iio: magnetometer: yas530: Add function pointers to "chip_info"
Add function pointers to the "chip_info" structure to ease the handling of different YAS variants. In the function yas5xx_probe(), the function call for "measure_offsets" was added as a conditional "if (ci->measure_offsets)". This is a preparatory step for YAS537, as this variant doesn't need an offset measurement. Signed-off-by: Jakob Hauser <jahau@rocketmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/4bd3f96262e0132b7f9720521a801da3c18abd95.1660337264.git.jahau@rocketmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'sound/atmel')
0 files changed, 0 insertions, 0 deletions