Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: health: max30102: add support for max30101

The Maxim max30101 is the replacement for the max30105, which is no
longer recommended for future designs.

Their internal structure is identical, as well as the register map,
configuration options and sensitivity, which allows for code recycling.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240324-max30101-v2-2-611deb510c97@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Javier Carrasco and committed by
Jonathan Cameron
c71af78d 0a2c4432

+2
+2
drivers/iio/health/max30102.c
··· 613 613 } 614 614 615 615 static const struct i2c_device_id max30102_id[] = { 616 + { "max30101", max30105 }, 616 617 { "max30102", max30102 }, 617 618 { "max30105", max30105 }, 618 619 {} ··· 621 620 MODULE_DEVICE_TABLE(i2c, max30102_id); 622 621 623 622 static const struct of_device_id max30102_dt_ids[] = { 623 + { .compatible = "maxim,max30101" }, 624 624 { .compatible = "maxim,max30102" }, 625 625 { .compatible = "maxim,max30105" }, 626 626 { }