Searched refs:lsm9ds0 (Results 1 – 5 of 5) sorted by relevance
/drivers/iio/imu/st_lsm9ds0/ |
D | st_lsm9ds0_core.c | 21 static int st_lsm9ds0_power_enable(struct device *dev, struct st_lsm9ds0 *lsm9ds0) in st_lsm9ds0_power_enable() argument 26 lsm9ds0->vdd = devm_regulator_get(dev, "vdd"); in st_lsm9ds0_power_enable() 27 if (IS_ERR(lsm9ds0->vdd)) { in st_lsm9ds0_power_enable() 29 return PTR_ERR(lsm9ds0->vdd); in st_lsm9ds0_power_enable() 31 ret = regulator_enable(lsm9ds0->vdd); in st_lsm9ds0_power_enable() 37 lsm9ds0->vdd_io = devm_regulator_get(dev, "vddio"); in st_lsm9ds0_power_enable() 38 if (IS_ERR(lsm9ds0->vdd_io)) { in st_lsm9ds0_power_enable() 40 regulator_disable(lsm9ds0->vdd); in st_lsm9ds0_power_enable() 41 return PTR_ERR(lsm9ds0->vdd_io); in st_lsm9ds0_power_enable() 43 ret = regulator_enable(lsm9ds0->vdd_io); in st_lsm9ds0_power_enable() [all …]
|
D | st_lsm9ds0_spi.c | 44 struct st_lsm9ds0 *lsm9ds0; in st_lsm9ds0_spi_probe() local 49 lsm9ds0 = devm_kzalloc(dev, sizeof(*lsm9ds0), GFP_KERNEL); in st_lsm9ds0_spi_probe() 50 if (!lsm9ds0) in st_lsm9ds0_spi_probe() 53 lsm9ds0->dev = dev; in st_lsm9ds0_spi_probe() 54 lsm9ds0->name = spi->modalias; in st_lsm9ds0_spi_probe() 55 lsm9ds0->irq = spi->irq; in st_lsm9ds0_spi_probe() 61 spi_set_drvdata(spi, lsm9ds0); in st_lsm9ds0_spi_probe() 63 return st_lsm9ds0_probe(lsm9ds0, regmap); in st_lsm9ds0_spi_probe()
|
D | st_lsm9ds0_i2c.c | 45 struct st_lsm9ds0 *lsm9ds0; in st_lsm9ds0_i2c_probe() local 50 lsm9ds0 = devm_kzalloc(dev, sizeof(*lsm9ds0), GFP_KERNEL); in st_lsm9ds0_i2c_probe() 51 if (!lsm9ds0) in st_lsm9ds0_i2c_probe() 54 lsm9ds0->dev = dev; in st_lsm9ds0_i2c_probe() 55 lsm9ds0->name = client->name; in st_lsm9ds0_i2c_probe() 56 lsm9ds0->irq = client->irq; in st_lsm9ds0_i2c_probe() 62 i2c_set_clientdata(client, lsm9ds0); in st_lsm9ds0_i2c_probe() 64 return st_lsm9ds0_probe(lsm9ds0, regmap); in st_lsm9ds0_i2c_probe()
|
D | st_lsm9ds0.h | 20 int st_lsm9ds0_probe(struct st_lsm9ds0 *lsm9ds0, struct regmap *regmap); 21 int st_lsm9ds0_remove(struct st_lsm9ds0 *lsm9ds0);
|
D | Kconfig | 15 sensor. Supported devices: accelerometer/magnetometer of lsm9ds0.
|