Skip to content

Commit cb3824b

Browse files
author
Karsten Keil
committed
ISDN: Make isdnhdlc usable for other ISDN drivers
isdnhdlc is useful for other ISDN drivers as well. Move the include file to a central location and the source to the central isdn location. Signed-off-by: Karsten Keil <keil@b1-systems.de>
1 parent 74d1541 commit cb3824b

8 files changed

Lines changed: 17 additions & 15 deletions

File tree

‎drivers/isdn/Kconfig‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ menuconfig ISDN
2121

2222
if ISDN
2323

24-
source "drivers/isdn/mISDN/Kconfig"
25-
2624
menuconfig ISDN_I4L
2725
tristate "Old ISDN4Linux (deprecated)"
2826
---help---
@@ -41,9 +39,9 @@ menuconfig ISDN_I4L
4139
It is still available, though, for use with adapters that are not
4240
supported by the new CAPI subsystem yet.
4341

44-
if ISDN_I4L
42+
source "drivers/isdn/mISDN/Kconfig"
43+
4544
source "drivers/isdn/i4l/Kconfig"
46-
endif
4745

4846
menuconfig ISDN_CAPI
4947
tristate "CAPI 2.0 subsystem"

‎drivers/isdn/hisax/Kconfig‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ comment "HiSax sub driver modules"
391391
config HISAX_ST5481
392392
tristate "ST5481 USB ISDN modem (EXPERIMENTAL)"
393393
depends on USB && EXPERIMENTAL
394+
select ISDN_HDLC
394395
select CRC_CCITT
395396
select BITREVERSE
396397
help
@@ -418,11 +419,6 @@ config HISAX_FRITZ_PCIPNP
418419
(the latter also needs you to select "ISA Plug and Play support"
419420
from the menu "Plug and Play configuration")
420421

421-
config HISAX_HDLC
422-
bool
423-
depends on HISAX_ST5481
424-
default y
425-
426422
config HISAX_AVM_A1_PCMCIA
427423
bool
428424
depends on HISAX_AVM_A1_CS

‎drivers/isdn/hisax/Makefile‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ obj-$(CONFIG_HISAX_HFCUSB) += hfc_usb.o
1616
obj-$(CONFIG_HISAX_HFC4S8S) += hfc4s8s_l1.o
1717
obj-$(CONFIG_HISAX_FRITZ_PCIPNP) += hisax_isac.o hisax_fcpcipnp.o
1818

19-
ifdef CONFIG_HISAX_HDLC
20-
obj-$(CONFIG_ISDN_DRV_HISAX) += isdnhdlc.o
21-
endif
22-
2319
# Multipart objects.
2420

2521
hisax_st5481-y := st5481_init.o st5481_usb.o st5481_d.o \

‎drivers/isdn/hisax/st5481.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
226226
#define INFO(format, arg...) \
227227
printk(KERN_INFO "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
228228

229-
#include "isdnhdlc.h"
229+
#include <linux/isdn/hdlc.h>
230230
#include "fsm.h"
231231
#include "hisax_if.h"
232232
#include <linux/skbuff.h>

‎drivers/isdn/i4l/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Old ISDN4Linux config
33
#
44

5+
if ISDN_I4L
6+
57
config ISDN_PPP
68
bool "Support synchronous PPP"
79
depends on INET
@@ -135,3 +137,12 @@ source "drivers/isdn/act2000/Kconfig"
135137
source "drivers/isdn/hysdn/Kconfig"
136138

137139
endmenu
140+
# end ISDN_I4L
141+
endif
142+
143+
config ISDN_HDLC
144+
tristate
145+
depends on HISAX_ST5481
146+
select CRC_CCITT
147+
select BITREVERSE
148+

‎drivers/isdn/i4l/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
obj-$(CONFIG_ISDN_I4L) += isdn.o
66
obj-$(CONFIG_ISDN_PPP_BSDCOMP) += isdn_bsdcomp.o
7+
obj-$(CONFIG_ISDN_HDLC) += isdnhdlc.o
78

89
# Multipart objects.
910

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <linux/module.h>
2424
#include <linux/init.h>
2525
#include <linux/crc-ccitt.h>
26-
#include "isdnhdlc.h"
26+
#include <linux/isdn/hdlc.h>
2727

2828
/*-------------------------------------------------------------------*/
2929

0 commit comments

Comments
 (0)