linux_dsm_epyc7002/tools/iio
Irina Tirdea d9d7b99047 tools: iio: generic_buffer: Fix generic scale extraction
When using generic_buffer to read data, the scale is not properly
detected for scale shared by type. This is caused by a problem
with the generation of generic name out of the full name.
E.g.: for current->name in_accel_z, the extracted generic name
is "in" (when it should be "in_accel"). This is used in generic_buffer
to generate scale and offset paths (in_accel_scale).

Consider the in_ or out_ prefix when extracting the generic name
from the full name.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-03-28 11:01:49 +00:00
..
generic_buffer.c First set of new drivers, cleanups and functionality for IIO in the 4.1 cycle. 2015-03-24 22:53:52 +01:00
iio_event_monitor.c
iio_utils.c tools: iio: generic_buffer: Fix generic scale extraction 2015-03-28 11:01:49 +00:00
iio_utils.h
lsiio.c tools: iio: lsiio: Remove unused variables 2015-03-09 17:18:25 +00:00
Makefile