diff options
Diffstat (limited to 'include/linux/mISDNif.h')
-rw-r--r-- | include/linux/mISDNif.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/mISDNif.h b/include/linux/mISDNif.h index 3f9988849f32..d4229aebf648 100644 --- a/include/linux/mISDNif.h +++ b/include/linux/mISDNif.h | |||
@@ -531,7 +531,8 @@ _queue_data(struct mISDNchannel *ch, u_int prim, | |||
531 | 531 | ||
532 | /* global register/unregister functions */ | 532 | /* global register/unregister functions */ |
533 | 533 | ||
534 | extern int mISDN_register_device(struct mISDNdevice *, char *name); | 534 | extern int mISDN_register_device(struct mISDNdevice *, |
535 | struct device *parent, char *name); | ||
535 | extern void mISDN_unregister_device(struct mISDNdevice *); | 536 | extern void mISDN_unregister_device(struct mISDNdevice *); |
536 | extern int mISDN_register_Bprotocol(struct Bprotocol *); | 537 | extern int mISDN_register_Bprotocol(struct Bprotocol *); |
537 | extern void mISDN_unregister_Bprotocol(struct Bprotocol *); | 538 | extern void mISDN_unregister_Bprotocol(struct Bprotocol *); |
@@ -539,6 +540,11 @@ extern struct mISDNclock *mISDN_register_clock(char *, int, clockctl_func_t *, | |||
539 | void *); | 540 | void *); |
540 | extern void mISDN_unregister_clock(struct mISDNclock *); | 541 | extern void mISDN_unregister_clock(struct mISDNclock *); |
541 | 542 | ||
543 | static inline struct mISDNdevice *dev_to_mISDN(struct device *dev) | ||
544 | { | ||
545 | return dev_get_drvdata(dev); | ||
546 | } | ||
547 | |||
542 | extern void set_channel_address(struct mISDNchannel *, u_int, u_int); | 548 | extern void set_channel_address(struct mISDNchannel *, u_int, u_int); |
543 | extern void mISDN_clock_update(struct mISDNclock *, int, struct timeval *); | 549 | extern void mISDN_clock_update(struct mISDNclock *, int, struct timeval *); |
544 | extern unsigned short mISDN_clock_get(void); | 550 | extern unsigned short mISDN_clock_get(void); |