static void msm_xo_dump_xo(struct seq_file *m, struct msm_xo *xo, const char *name) { struct msm_xo_voter *voter; seq_printf(m, "%-20s%s\n", name, msm_xo_mode_to_str(xo->mode)); list_for_each_entry(voter, &xo->voters, list) seq_printf(m, " %s %-16s %s\n", xo->mode == voter->mode ? "*" : " ", voter->name, msm_xo_mode_to_str(voter->mode)); }
static void msm_xo_dump_xo_print(struct msm_xo *xo, const char *name) { struct msm_xo_voter *voter; pr_info("%-20s%s\n", name, msm_xo_mode_to_str(xo->mode)); list_for_each_entry(voter, &xo->voters, list) pr_info(" %s %-16s %s\n", xo->mode == voter->mode ? "*" : " ", voter->name, msm_xo_mode_to_str(voter->mode)); }