Lines Matching refs:new_setting
467 u8 control_reg, new_setting; in ds2780_set_pmod_enabled() local
476 ret = kstrtou8(buf, 0, &new_setting); in ds2780_set_pmod_enabled()
480 if ((new_setting != 0) && (new_setting != 1)) { in ds2780_set_pmod_enabled()
485 if (new_setting) in ds2780_set_pmod_enabled()
520 u8 new_setting; in ds2780_set_sense_resistor_value() local
524 ret = kstrtou8(buf, 0, &new_setting); in ds2780_set_sense_resistor_value()
528 ret = ds2780_set_sense_register(dev_info, new_setting); in ds2780_set_sense_resistor_value()
557 u16 new_setting; in ds2780_set_rsgain_setting() local
561 ret = kstrtou16(buf, 0, &new_setting); in ds2780_set_rsgain_setting()
566 if (new_setting > 1999) { in ds2780_set_rsgain_setting()
571 ret = ds2780_set_rsgain_register(dev_info, new_setting); in ds2780_set_rsgain_setting()
601 u8 new_setting; in ds2780_set_pio_pin() local
605 ret = kstrtou8(buf, 0, &new_setting); in ds2780_set_pio_pin()
609 if ((new_setting != 0) && (new_setting != 1)) { in ds2780_set_pio_pin()
614 ret = ds2780_write(dev_info, &new_setting, in ds2780_set_pio_pin()