summaryrefslogtreecommitdiff
path: root/backport-include/linux/mmc/sdio_func.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport-include/linux/mmc/sdio_func.h')
-rw-r--r--backport-include/linux/mmc/sdio_func.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/backport-include/linux/mmc/sdio_func.h b/backport-include/linux/mmc/sdio_func.h
new file mode 100644
index 0000000..2d3e92b
--- /dev/null
+++ b/backport-include/linux/mmc/sdio_func.h
@@ -0,0 +1,10 @@
+#ifndef __BACKPORT_MMC_SDIO_FUNC_H
+#define __BACKPORT_MMC_SDIO_FUNC_H
+#include <linux/version.h>
+#include_next <linux/mmc/sdio_func.h>
+
+#ifndef dev_to_sdio_func
+#define dev_to_sdio_func(d) container_of(d, struct sdio_func, dev)
+#endif
+
+#endif /* __BACKPORT_MMC_SDIO_FUNC_H */