linux-stable/drivers/iio/chemical
Lars-Peter Clausen f22ab91ae3 iio: sps30: Use sysfs_emit()
sysfs_emit() is preferred over raw s*printf() for sysfs attributes since it
knows about the sysfs buffer specifics and has some built-in checks for
size and alignment.

Use sysfs_emit() to format the custom `cleaning_period` device attribute of
the sps30 driver.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20211216185217.1054495-14-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-01-23 18:03:37 +00:00
..
ams-iaq-core.c iio:chemical:ams-iaq-core: Drop of_match_ptr protection 2020-09-21 18:41:31 +01:00
atlas-ezo-sensor.c iio: chemical: atlas-ezo-sensor: add humidity sensor support 2020-09-03 19:40:48 +01:00
atlas-sensor.c iio:chemical:atlas: Trivial white space cleanup to add space before } 2022-01-23 18:03:34 +00:00
bme680.h
bme680_core.c iio: bme680: Use DIV_ROUND_CLOSEST() instead of open-coding it 2021-01-09 21:52:45 +00:00
bme680_i2c.c iio: bme680_i2c: Remove acpi_device_id table 2021-05-17 13:54:23 +01:00
bme680_spi.c iio: bme680_spi: Remove acpi_device_id table 2021-05-17 13:54:23 +01:00
ccs811.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
Kconfig drivers: iio: chemical: Add support for Sensirion SCD4x CO2 sensor 2021-10-19 08:30:44 +01:00
Makefile drivers: iio: chemical: Add support for Sensirion SCD4x CO2 sensor 2021-10-19 08:30:44 +01:00
pms7003.c iio: chemical: pms7003: convert comma to semicolon 2021-01-09 14:25:28 +00:00
scd4x.c iio: scd4x: Use sysfs_emit() 2022-01-23 18:03:36 +00:00
scd30.h iio: chemical: scd30: add core driver 2020-06-27 14:46:44 +01:00
scd30_core.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
scd30_i2c.c iio: chemical: scd30: add I2C interface driver 2020-06-27 14:50:30 +01:00
scd30_serial.c iio: use getter/setter functions 2021-03-11 20:47:07 +00:00
sgp30.c iio: chemical: sgp30: Drop use of %hx in format string. 2021-06-03 18:24:13 +01:00
sgp40.c iio: chemical: Add driver support for sgp40 2021-08-08 15:19:18 +01:00
sps30.c iio: sps30: Use sysfs_emit() 2022-01-23 18:03:37 +00:00
sps30.h iio: sps30: separate core and interface specific code 2021-05-17 13:49:10 +01:00
sps30_i2c.c iio: sps30: separate core and interface specific code 2021-05-17 13:49:10 +01:00
sps30_serial.c iio: sps30: add support for serial interface 2021-05-17 13:49:10 +01:00
sunrise_co2.c iio: chemical: sunrise_co2: set val parameter only on success 2021-12-28 18:37:41 +00:00
vz89x.c iio: vz89x: Remove unnecessary cast 2021-12-16 16:34:54 +00:00