Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c2769b50
Commit
c2769b50
authored
May 06, 2003
by
Paul Fulghum
Committed by
Linus Torvalds
May 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] n_hdlc update
- Use C99 initializers
parent
0aeef07f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
21 deletions
+17
-21
drivers/char/n_hdlc.c
drivers/char/n_hdlc.c
+17
-21
No files found.
drivers/char/n_hdlc.c
View file @
c2769b50
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* Al Longyear <longyear@netcom.com>, Paul Mackerras <Paul.Mackerras@cs.anu.edu.au>
* Al Longyear <longyear@netcom.com>, Paul Mackerras <Paul.Mackerras@cs.anu.edu.au>
*
*
* Original release 01/11/99
* Original release 01/11/99
* $Id: n_hdlc.c,v 4.
6 2003/04/21 19:14:07
paulkf Exp $
* $Id: n_hdlc.c,v 4.
8 2003/05/06 21:18:51
paulkf Exp $
*
*
* This code is released under the GNU General Public License (GPL)
* This code is released under the GNU General Public License (GPL)
*
*
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
*/
*/
#define HDLC_MAGIC 0x239e
#define HDLC_MAGIC 0x239e
#define HDLC_VERSION "$Revision: 4.
6
$"
#define HDLC_VERSION "$Revision: 4.
8
$"
#include <linux/version.h>
#include <linux/version.h>
#include <linux/config.h>
#include <linux/config.h>
...
@@ -215,6 +215,21 @@ static void n_hdlc_tty_wakeup (struct tty_struct *tty);
...
@@ -215,6 +215,21 @@ static void n_hdlc_tty_wakeup (struct tty_struct *tty);
/* Define this string only once for all macro invocations */
/* Define this string only once for all macro invocations */
static
char
szVersion
[]
=
HDLC_VERSION
;
static
char
szVersion
[]
=
HDLC_VERSION
;
static
struct
tty_ldisc
n_hdlc_ldisc
=
{
.
owner
=
THIS_MODULE
,
.
magic
=
TTY_LDISC_MAGIC
,
.
name
=
"hdlc"
,
.
open
=
n_hdlc_tty_open
,
.
close
=
n_hdlc_tty_close
,
.
read
=
n_hdlc_tty_read
,
.
write
=
n_hdlc_tty_write
,
.
ioctl
=
n_hdlc_tty_ioctl
,
.
poll
=
n_hdlc_tty_poll
,
.
receive_buf
=
n_hdlc_tty_receive
,
.
receive_room
=
n_hdlc_tty_room
,
.
write_wakeup
=
n_hdlc_tty_wakeup
,
};
/* n_hdlc_release()
/* n_hdlc_release()
*
*
* release an n_hdlc per device line discipline info structure
* release an n_hdlc per device line discipline info structure
...
@@ -968,25 +983,6 @@ static N_HDLC_BUF* n_hdlc_buf_get(N_HDLC_BUF_LIST *list)
...
@@ -968,25 +983,6 @@ static N_HDLC_BUF* n_hdlc_buf_get(N_HDLC_BUF_LIST *list)
static
int
__init
n_hdlc_init
(
void
)
static
int
__init
n_hdlc_init
(
void
)
{
{
static
struct
tty_ldisc
n_hdlc_ldisc
=
{
TTY_LDISC_MAGIC
,
/* magic */
"hdlc"
,
/* name */
0
,
/* num */
0
,
/* flags */
n_hdlc_tty_open
,
/* open */
n_hdlc_tty_close
,
/* close */
0
,
/* flush_buffer */
0
,
/* chars_in_buffer */
n_hdlc_tty_read
,
/* read */
n_hdlc_tty_write
,
/* write */
n_hdlc_tty_ioctl
,
/* ioctl */
0
,
/* set_termios */
n_hdlc_tty_poll
,
/* poll */
n_hdlc_tty_receive
,
/* receive_buf */
n_hdlc_tty_room
,
/* receive_room */
n_hdlc_tty_wakeup
,
/* write_wakeup */
THIS_MODULE
/* owner */
};
int
status
;
int
status
;
/* range check maxframe arg */
/* range check maxframe arg */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment