Lines Matching +full:single +full:- +full:chip
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2012-2013 STMicroelectronics Inc.
21 * For new single-chip sensors use <device_name> as compatible string.
22 * For old single-chip devices keep <device_name>-magn to maintain
24 * For multi-chip devices, use <device_name>-magn to distinguish which
29 .compatible = "st,lis3mdl-magn",
33 .compatible = "st,lsm303agr-magn",
41 .compatible = "st,lsm9ds1-magn",
55 st_sensors_dev_name_probe(&spi->dev, spi->modalias, sizeof(spi->modalias)); in st_magn_spi_probe()
57 settings = st_magn_get_settings(spi->modalias); in st_magn_spi_probe()
59 dev_err(&spi->dev, "device name %s not recognized.\n", in st_magn_spi_probe()
60 spi->modalias); in st_magn_spi_probe()
61 return -ENODEV; in st_magn_spi_probe()
64 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*mdata)); in st_magn_spi_probe()
66 return -ENOMEM; in st_magn_spi_probe()
69 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
101 .name = "st-magn-spi",