summaryrefslogtreecommitdiff
path: root/drivers/dahdi/zaphfc/zaphfc.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-09-08 13:34:58 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-09-08 13:34:58 +0300
commitdb5ce0faef41095d4fbf9804031931f8e886b2a1 (patch)
tree483e24612e456dad08b7c23dbad087cabd9adb21 /drivers/dahdi/zaphfc/zaphfc.h
parentbc4ae5301d9c34a7f4df74ba1e84742b8e65ab58 (diff)
remove 'pvt' member of dahdi_span
r8984 removed the member 'pvt' of struct dahdi_span in dahdi/kernel.h . No use to have a pointer to a struct that is already embedded in our struct. Thus we remove a single usage of it and replace it with container_of().
Diffstat (limited to 'drivers/dahdi/zaphfc/zaphfc.h')
-rw-r--r--drivers/dahdi/zaphfc/zaphfc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dahdi/zaphfc/zaphfc.h b/drivers/dahdi/zaphfc/zaphfc.h
index c9353cc..29dd304 100644
--- a/drivers/dahdi/zaphfc/zaphfc.h
+++ b/drivers/dahdi/zaphfc/zaphfc.h
@@ -401,6 +401,10 @@ typedef struct dahdi_hfc {
} dahdi_hfc;
+static inline struct dahdi_hfc* dahdi_hfc_from_span(struct dahdi_span *span) {
+ return container_of(span, struct dahdi_hfc, span);
+}
+
static inline u8 hfc_inb(struct hfc_card *card, int offset)
{
return readb(card->io_mem + offset);