Lines Matching +full:pressure +full:- +full:sensors
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for Sensirion sdp500 and sdp510 pressure sensors
28 struct i2c_client *client = to_i2c_client(data->dev); in sdp500_start_measurement()
49 struct i2c_client *client = to_i2c_client(data->dev); in sdp500_read_raw()
55 dev_err(data->dev, "Failed to receive data"); in sdp500_read_raw()
59 dev_err(data->dev, "Data is received wrongly"); in sdp500_read_raw()
60 return -EIO; in sdp500_read_raw()
65 sizeof(rxbuf) - 1, 0x00); in sdp500_read_raw()
67 dev_err(data->dev, in sdp500_read_raw()
70 return -EIO; in sdp500_read_raw()
81 return -EINVAL; in sdp500_read_raw()
93 struct device *dev = &client->dev; in sdp500_probe()
104 return -ENOMEM; in sdp500_probe()
110 data->dev = dev; in sdp500_probe()
112 indio_dev->name = "sdp500"; in sdp500_probe()
113 indio_dev->channels = sdp500_channels; in sdp500_probe()
114 indio_dev->info = &sdp500_info; in sdp500_probe()
115 indio_dev->modes = INDIO_DIRECT_MODE; in sdp500_probe()
116 indio_dev->num_channels = ARRAY_SIZE(sdp500_channels); in sdp500_probe()
154 MODULE_AUTHOR("Thomas Sioutas <thomas.sioutas@prodrive-technologies.com>");
155 MODULE_DESCRIPTION("Driver for Sensirion SDP500 differential pressure sensor");