Lines Matching defs:value
151 * Reads and calculates current lux value.
157 * of ch1 value, to the ch0 value, is calculated. The array als_device_lux[]
158 * declared above is then scanned to find the first ratio value that is just
183 dev_err(&chip->client->dev, "%s: data not valid; returning last value\n",
306 * Return updated gain_trim value.
490 int value;
492 if (kstrtoint(buf, 0, &value) || !value)
496 chip->als_settings.als_cal_target = value;
508 int value, ret;
510 if (kstrtoint(buf, 0, &value) || value != 1)
562 int value[TSL2583_MAX_LUX_TABLE_ENTRIES * 3 + 1];
568 get_options(buf, ARRAY_SIZE(value), value);
571 * We now have an array of ints starting at value[1], and
572 * enumerated by value[0].
576 n = value[0];
583 if ((value[n - 2] | value[n - 1] | value[n]) != 0) {
589 memcpy(chip->als_settings.als_device_lux, &value[1],
590 value[0] * sizeof(value[1]));