linux/drivers/iio
Lars-Peter Clausen 02330acda7 iio: Reject trailing garbage when parsing fixed point numbers
When parsing a fixed point number IIO stops parsing the string once it has
reached the last requested decimal place. This means that the remainder of the
string is silently accepted regardless, of whether it is part of a valid number
or not. This patch modifies the code to scan the whole string and only accept
valid numbers. Since fract_mult is 0 after the last decimal place any digit that
may follows won't affect the result.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-11-02 09:43:48 +00:00
..
accel iio: fix spelling of Accelerometer in Kconfig 2012-10-19 16:19:02 +01:00
adc Revert "iio: at91_adc: Use devm_kcalloc to allocate arrays" 2012-10-31 10:56:28 +00:00
amplifiers iio: amplifiers: New driver for AD8366 Dual-Digital Variable Gain Amplifier 2012-05-14 13:15:39 -07:00
common iio: hid-sensors: Prevent crash during hot-unplug 2012-09-22 10:07:34 +01:00
dac iio:dac:ad5449: unlock on error path 2012-10-31 10:59:55 +00:00
frequency iio: frequency: ADF4350: Fix potential reference div factor overflow. 2012-08-16 20:24:33 +01:00
gyro iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
light iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
magnetometer iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
iio_core_trigger.h
iio_core.h
industrialio-buffer.c iio: Use strict_strtouint instead of kstrtoul 2012-10-19 18:46:50 +01:00
industrialio-core.c iio: Reject trailing garbage when parsing fixed point numbers 2012-11-02 09:43:48 +00:00
industrialio-event.c iio: Use strict_strtouint instead of kstrtoul 2012-10-19 18:46:50 +01:00
industrialio-trigger.c iio:trigger: Register sysfs file statically 2012-07-08 10:39:58 +01:00
industrialio-triggered-buffer.c iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00
inkern.c iio: Add a logarithmic fractional value type 2012-10-19 18:46:51 +01:00
Kconfig iio: Remove duplicates for light/ in Kconfig and Makefile 2012-10-19 19:44:06 +01:00
kfifo_buf.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
Makefile iio: Remove duplicates for light/ in Kconfig and Makefile 2012-10-19 19:44:06 +01:00