Lines Matching +full:wp +full:- +full:content
1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf
10 * http://www.aosong.com/m/en/products-33.html
49 dev_err(&client->dev, in ags02ma_register_read()
59 dev_err(&client->dev, in ags02ma_register_read()
67 dev_err(&client->dev, "CRC error\n"); in ags02ma_register_read()
68 return -EIO; in ags02ma_register_read()
84 ret = ags02ma_register_read(data->client, AGS02MA_TVOC_READ_REG, in ags02ma_read_raw()
96 return -EINVAL; in ags02ma_read_raw()
118 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*data)); in ags02ma_probe()
120 return -ENOMEM; in ags02ma_probe()
127 return dev_err_probe(&client->dev, ret, in ags02ma_probe()
129 dev_dbg(&client->dev, "Aosong AGS02MA, Version: 0x%x", version); in ags02ma_probe()
132 data->client = client; in ags02ma_probe()
133 indio_dev->info = &ags02ma_info; in ags02ma_probe()
134 indio_dev->channels = &ags02ma_channel; in ags02ma_probe()
135 indio_dev->num_channels = 1; in ags02ma_probe()
136 indio_dev->name = "ags02ma"; in ags02ma_probe()
138 return devm_iio_device_register(&client->dev, indio_dev); in ags02ma_probe()