Lines Matching refs:sprintf
659 ret = sprintf(buf, "%d.%d\n", in apds990x_lux_show()
671 return sprintf(buf, "%u\n", APDS_RANGE); in apds990x_lux_range_show()
679 return sprintf(buf, "%u\n", APDS_CALIB_SCALER); in apds990x_lux_calib_format_show()
690 return sprintf(buf, "%u\n", chip->lux_calib); in apds990x_lux_calib_show()
719 pos += sprintf(buf + pos, "%d ", arates_hz[i]); in apds990x_rate_avail()
720 sprintf(buf + pos - 1, "\n"); in apds990x_rate_avail()
728 return sprintf(buf, "%d\n", chip->arate); in apds990x_rate_show()
791 ret = sprintf(buf, "%d\n", chip->prox_data); in apds990x_prox_show()
801 return sprintf(buf, "%u\n", APDS_PROX_RANGE); in apds990x_prox_range_show()
810 return sprintf(buf, "%d\n", chip->prox_en); in apds990x_prox_enable_show()
850 return sprintf(buf, "%s\n", in apds990x_prox_reporting_mode_show()
876 return sprintf(buf, "%s %s\n", reporting_modes[0], reporting_modes[1]); in apds990x_prox_reporting_avail_show()
887 return sprintf(buf, "%d\n", chip->lux_thres_hi); in apds990x_lux_thresh_above_show()
894 return sprintf(buf, "%d\n", chip->lux_thres_lo); in apds990x_lux_thresh_below_show()
957 return sprintf(buf, "%d\n", chip->prox_thres); in apds990x_prox_threshold_show()
991 return sprintf(buf, "%d\n", !pm_runtime_suspended(dev)); in apds990x_power_state_show()
1029 return sprintf(buf, "%s %d\n", chip->chipname, chip->revision); in apds990x_chip_id_show()