OSDN Git Service

STPK-1429 Fix single channel opt_scale specifier
authorPatrick Porlan <patrick.porlan@intel.com>
Thu, 19 Jun 2014 09:19:28 +0000 (11:19 +0200)
committersuyyala <sridhar.uyyala@intel.com>
Thu, 19 Jun 2014 16:48:57 +0000 (09:48 -0700)
This (unused as of today) line was forgotten when the
optional scaling specified was renamed from scale to
opt_scale. It's intended for single channel sensors,
such as the temperature or ALS.

Issue: STPK-1429

Change-Id: Idcc69f8113636ff95e84140bbf4ec21d45ad811c
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
enumeration.c

index 1f3613e..3e8cef8 100644 (file)
@@ -150,7 +150,7 @@ static void add_sensor (int dev_num, int catalog_index, int use_polling)
                }
         } else {
                opt_scale = 1;
-               sensor_get_fl_prop(s, "scale", &opt_scale);
+               sensor_get_fl_prop(s, "opt_scale", &opt_scale);
                sensor_info[s].channel[0].opt_scale = opt_scale;
         }