summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthias Urlichs <smurf@smurf.noris.de>2008-08-16 00:09:24 +0200
committerKarsten Keil <kkeil@suse.de>2009-01-09 22:44:28 +0100
commitb36b654a7e82308cea063cdf909a7f246105c2a3 (patch)
tree8c6fd2651a307a1b67549801796e2fdf8bc7991e /include
parent808a14a1583ca3790bf0a9c20c7d4cbac212c775 (diff)
downloadlinux-3.10-b36b654a7e82308cea063cdf909a7f246105c2a3.tar.gz
linux-3.10-b36b654a7e82308cea063cdf909a7f246105c2a3.tar.bz2
linux-3.10-b36b654a7e82308cea063cdf909a7f246105c2a3.zip
mISDN: Create /sys/class/mISDN
Create /sys/class/mISDN and implement functions to handle device renames. Signed-Off-By: Matthias Urlichs <matthias@urlichs.de> Signed-off-by: Karsten Keil <kkeil@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mISDNif.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/mISDNif.h b/include/linux/mISDNif.h
index 3f9988849f3..d4229aebf64 100644
--- a/include/linux/mISDNif.h
+++ b/include/linux/mISDNif.h
@@ -531,7 +531,8 @@ _queue_data(struct mISDNchannel *ch, u_int prim,
/* global register/unregister functions */
-extern int mISDN_register_device(struct mISDNdevice *, char *name);
+extern int mISDN_register_device(struct mISDNdevice *,
+ struct device *parent, char *name);
extern void mISDN_unregister_device(struct mISDNdevice *);
extern int mISDN_register_Bprotocol(struct Bprotocol *);
extern void mISDN_unregister_Bprotocol(struct Bprotocol *);
@@ -539,6 +540,11 @@ extern struct mISDNclock *mISDN_register_clock(char *, int, clockctl_func_t *,
void *);
extern void mISDN_unregister_clock(struct mISDNclock *);
+static inline struct mISDNdevice *dev_to_mISDN(struct device *dev)
+{
+ return dev_get_drvdata(dev);
+}
+
extern void set_channel_address(struct mISDNchannel *, u_int, u_int);
extern void mISDN_clock_update(struct mISDNclock *, int, struct timeval *);
extern unsigned short mISDN_clock_get(void);