Searched refs:lsm9ds0 (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/iio/imu/st_lsm9ds0/ |
H A D | st_lsm9ds0_core.c | 21 static int st_lsm9ds0_probe_accel(struct st_lsm9ds0 *lsm9ds0, struct regmap *regmap) in st_lsm9ds0_probe_accel() argument 24 struct device *dev = lsm9ds0->dev; in st_lsm9ds0_probe_accel() 27 settings = st_accel_get_settings(lsm9ds0->name); in st_lsm9ds0_probe_accel() 30 lsm9ds0->name); in st_lsm9ds0_probe_accel() 32 lsm9ds0->accel = devm_iio_device_alloc(dev, sizeof(*data)); in st_lsm9ds0_probe_accel() 33 if (!lsm9ds0->accel) in st_lsm9ds0_probe_accel() 36 lsm9ds0->accel->name = lsm9ds0->name; in st_lsm9ds0_probe_accel() 38 data = iio_priv(lsm9ds0->accel); in st_lsm9ds0_probe_accel() 40 data->irq = lsm9ds0->irq; in st_lsm9ds0_probe_accel() 43 return st_accel_common_probe(lsm9ds0->accel); in st_lsm9ds0_probe_accel() [all …]
|
H A D | st_lsm9ds0_spi.c | 51 struct st_lsm9ds0 *lsm9ds0; in st_lsm9ds0_spi_probe() local 56 lsm9ds0 = devm_kzalloc(dev, sizeof(*lsm9ds0), GFP_KERNEL); in st_lsm9ds0_spi_probe() 57 if (!lsm9ds0) in st_lsm9ds0_spi_probe() 60 lsm9ds0->dev = dev; in st_lsm9ds0_spi_probe() 61 lsm9ds0->name = spi->modalias; in st_lsm9ds0_spi_probe() 62 lsm9ds0->irq = spi->irq; in st_lsm9ds0_spi_probe() 68 spi_set_drvdata(spi, lsm9ds0); in st_lsm9ds0_spi_probe() 70 return st_lsm9ds0_probe(lsm9ds0, regmap); in st_lsm9ds0_spi_probe()
|
H A D | st_lsm9ds0_i2c.c | 58 struct st_lsm9ds0 *lsm9ds0; in st_lsm9ds0_i2c_probe() local 63 lsm9ds0 = devm_kzalloc(dev, sizeof(*lsm9ds0), GFP_KERNEL); in st_lsm9ds0_i2c_probe() 64 if (!lsm9ds0) in st_lsm9ds0_i2c_probe() 67 lsm9ds0->dev = dev; in st_lsm9ds0_i2c_probe() 68 lsm9ds0->name = client->name; in st_lsm9ds0_i2c_probe() 69 lsm9ds0->irq = client->irq; in st_lsm9ds0_i2c_probe() 75 i2c_set_clientdata(client, lsm9ds0); in st_lsm9ds0_i2c_probe() 77 return st_lsm9ds0_probe(lsm9ds0, regmap); in st_lsm9ds0_i2c_probe()
|
H A D | st_lsm9ds0.h | 23 int st_lsm9ds0_probe(struct st_lsm9ds0 *lsm9ds0, struct regmap *regmap);
|
H A D | Kconfig | 13 sensor. Supported devices: accelerometer/magnetometer of lsm9ds0
|