wcte12xp: Allow default_linemode to be set to j1.
authorShaun Ruffell <sruffell@digium.com>
Sat, 23 Jun 2012 04:36:12 +0000 (04:36 +0000)
committerShaun Ruffell <sruffell@digium.com>
Sat, 23 Jun 2012 04:36:12 +0000 (04:36 +0000)
commit319d51ae5df04be0fbf5d09d2e3270eddcad6312
tree41ca2223f13fde9647225ed89846f326cd55632d
parent83090b71cf2bf621e7ba94156e7ccdab5f1a8762
wcte12xp: Allow default_linemode to be set to j1.

To enable J1 mode previously one would configure the card in T1 mode and then
set the j1mode module parameter. Now "modprobe wcte12xp default_linemode=j1"
will work like the other linemodes globally for all cards manged by this driver.
J1 can also be set on a card-by-card basis in sysfs.

Also move pr_fmt to top of file so pr_xxx macros print the module name as
intended.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10696

Conflicts:
drivers/dahdi/wcte12xp/base.c

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.6@10698 a0bf4364-ded3-4de4-8d8a-66a801d63aff
drivers/dahdi/wcte12xp/base.c
drivers/dahdi/wcte12xp/wcte12xp.h