From 088195dc112279a9de04e2f46d8f2064e30d470b Mon Sep 17 00:00:00 2001 From: suyyala Date: Thu, 12 Jun 2014 13:12:52 -0700 Subject: [PATCH] Rename opt_scale property name rename optional scale property to reflect the options use and not to confus with scale. old: iio.accel.y.scale new: iio.accel.y.opt_scale Change-Id: I2fdf792b1d7db86e7273cbd473cf724c3a91cfda Signed-off-by: suyyala --- enumeration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/enumeration.c b/enumeration.c index 227b691..43608b5 100644 --- a/enumeration.c +++ b/enumeration.c @@ -131,8 +131,8 @@ static void add_sensor (int dev_num, int catalog_index, int use_polling) /* * See if we have optional correction scaling factors for each of the * channels of this sensor. These would be expressed using properties - * like iio.accel.y.scale = -1. In case of a single channel we also - * support things such as iio.temp.scale = -1. Note that this works + * like iio.accel.y.opt_scale = -1. In case of a single channel we also + * support things such as iio.temp.opt_scale = -1. Note that this works * for all types of sensors, and whatever transform is selected, on top * of any previous conversions. */ @@ -143,7 +143,7 @@ static void add_sensor (int dev_num, int catalog_index, int use_polling) opt_scale = 1; ch_name = sensor_catalog[catalog_index].channel[c].name; - sprintf(suffix, "%s.scale", ch_name); + sprintf(suffix, "%s.opt_scale", ch_name); sensor_get_fl_prop(s, suffix, &opt_scale); sensor_info[s].channel[c].opt_scale = opt_scale; -- 2.11.0