Re: [PATCH] tools: iio: generic_buffer: Fix generic scale extraction

2015-03-28 Thread Jonathan Cameron
On 27/03/15 12:57, Daniel Baluta wrote: > On Fri, Mar 27, 2015 at 1:53 PM, Irina Tirdea wrote: >> 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. >>

Re: [PATCH] tools: iio: generic_buffer: Fix generic scale extraction

2015-03-28 Thread Jonathan Cameron
On 27/03/15 12:57, Daniel Baluta wrote: On Fri, Mar 27, 2015 at 1:53 PM, Irina Tirdea irina.tir...@intel.com wrote: 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

Re: [PATCH] tools: iio: generic_buffer: Fix generic scale extraction

2015-03-27 Thread Daniel Baluta
On Fri, Mar 27, 2015 at 1:53 PM, Irina Tirdea wrote: > 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

[PATCH] tools: iio: generic_buffer: Fix generic scale extraction

2015-03-27 Thread Irina Tirdea
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

Re: [PATCH] tools: iio: generic_buffer: Fix generic scale extraction

2015-03-27 Thread Daniel Baluta
On Fri, Mar 27, 2015 at 1:53 PM, Irina Tirdea irina.tir...@intel.com wrote: 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

[PATCH] tools: iio: generic_buffer: Fix generic scale extraction

2015-03-27 Thread Irina Tirdea
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