[refactor] get_input_data function: change parameter from void* to module_t*