Lines Matching defs:range
139 u8 range;
419 u8 range;
423 range = data->range;
424 return sprintf(buf, "%d\n", regval_to_input_field_mg[range]);
436 unsigned long range = 0;
439 error = strict_strtoul(buf, 10, &range);
442 dev_dbg(dev, "set range to %lu\n", range);
444 if (range > RANGE_6_5)
447 data->range = range;
448 range = range << RANGE_GAIN_OFFSET;
449 if (i2c_smbus_write_byte_data(client, this_attr->address, range))
468 return sprintf(buf, "%d\n", regval_to_counts_per_mg[data->range]);
518 i2c_smbus_write_byte_data(client, HMC5843_CONFIG_REG_B, data->range);
538 data->range = RANGE_1_0;