Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. /* don't access this variable directly!! except get_switch_sel_value function.
  2. * you must get switch_sel value by using get_switch_sel function. */
  3. static int switch_sel;
  4.  
  5. /*
  6. * func : set_switch_sel
  7. * switch_sel value get from bootloader comand line
  8. * switch_sel data consist 4 bits
  9. */
  10. static int set_switch_sel(char *str)
  11. {
  12. get_option(&str, &switch_sel);
  13. switch_sel = switch_sel & 0x0f;
  14. pr_info("%s:%s switch_sel: 0x%x\n", MUIC_DEV_NAME, __func__,
  15. switch_sel);
  16.  
  17. return switch_sel;
  18. }
  19. __setup("pmic_info=", set_switch_sel);
  20.  
  21. static int get_switch_sel(void)
  22. {
  23. return switch_sel;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement