diff options
Diffstat (limited to 'drivers/dahdi/zaphfc/zaphfc.h')
-rw-r--r-- | drivers/dahdi/zaphfc/zaphfc.h | 4 |
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); |