max77775_log.h 761 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * max77775_log.h - Driver for the Maxim 77775
  3. *
  4. */
  5. #ifndef __MAX77775_LOG_H__
  6. #define __MAX77775_LOG_H__
  7. #ifdef CONFIG_USB_NOTIFY_PROC_LOG
  8. #include <linux/usblog_proc_notify.h>
  9. #endif
  10. #ifdef CONFIG_USB_USING_ADVANCED_USBLOG
  11. #define md75_info_usb(fmt, ...) \
  12. ({ \
  13. pr_info(fmt, ##__VA_ARGS__); \
  14. printk_usb(NOTIFY_PRINTK_USB_NORMAL, fmt, ##__VA_ARGS__); \
  15. })
  16. #define md75_err_usb(fmt, ...) \
  17. ({ \
  18. pr_err(fmt, ##__VA_ARGS__); \
  19. printk_usb(NOTIFY_PRINTK_USB_NORMAL, fmt, ##__VA_ARGS__); \
  20. })
  21. #else
  22. #define md75_info_usb(fmt, ...) \
  23. ({ \
  24. pr_info(fmt, ##__VA_ARGS__); \
  25. })
  26. #define md75_err_usb(fmt, ...) \
  27. ({ \
  28. pr_err(fmt, ##__VA_ARGS__); \
  29. })
  30. #endif
  31. #endif /* __MAX77775_LOG_H__ */