device.h 721 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Arch specific extensions to struct device
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License v2. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_DEVICE_H
  9. #define _ASM_MICROBLAZE_DEVICE_H
  10. struct device_node;
  11. struct dev_archdata {
  12. /* Optional pointer to an OF device node */
  13. struct device_node *of_node;
  14. };
  15. struct pdev_archdata {
  16. };
  17. static inline void dev_archdata_set_node(struct dev_archdata *ad,
  18. struct device_node *np)
  19. {
  20. ad->of_node = np;
  21. }
  22. static inline struct device_node *
  23. dev_archdata_get_node(const struct dev_archdata *ad)
  24. {
  25. return ad->of_node;
  26. }
  27. #endif /* _ASM_MICROBLAZE_DEVICE_H */