Lines Matching +full:pressure +full:- +full:sensors
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Freescale MPL115A1 pressure/temperature sensor
7 * Datasheet: http://www.nxp.com/files/sensors/doc/data_sheet/MPL115A1.pdf
30 return -ENOMEM; in mpl115_spi_init()
42 .tx_buf = buf->tx, in mpl115_spi_read()
43 .rx_buf = buf->rx, in mpl115_spi_read()
48 buf->tx[0] = MPL115_SPI_READ(address); in mpl115_spi_read()
49 buf->tx[2] = MPL115_SPI_READ(address + 1); in mpl115_spi_read()
55 return (buf->rx[1] << 8) | buf->rx[3]; in mpl115_spi_read()
63 .tx_buf = buf->tx, in mpl115_spi_write()
67 buf->tx[0] = MPL115_SPI_WRITE(address); in mpl115_spi_write()
68 buf->tx[1] = value; in mpl115_spi_write()
83 return mpl115_probe(&spi->dev, id->name, &mpl115_spi_ops); in mpl115_spi_probe()
103 MODULE_DESCRIPTION("Freescale MPL115A1 pressure/temperature driver");