Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
2954da55
Commit
2954da55
authored
Feb 12, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQUASH: ldisc fix for new raw_io method
parent
28df0258
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
zio-ldisc.c
drivers/zio-ldisc.c
+3
-14
No files found.
drivers/zio-ldisc.c
View file @
2954da55
...
...
@@ -17,8 +17,8 @@ ZIO_PARAM_TRIGGER(zld_trigger);
#define ZLD_SSIZE 2
/*
* We have no concept of driver instance yet
. So this is just one instance,
* a
nd as such it has global data.
* We have no concept of driver instance yet
, until we have the bus
* a
bstraction implemented. So this is just one instance, with global data
*/
static
struct
zio_cset
zld_cset
[];
/* Declared later, needed in ldisc */
...
...
@@ -137,30 +137,19 @@ static struct tty_ldisc_ops zld_ldisc = {
/* This method is called by the trigger */
static
int
zld_input
(
struct
zio_cset
*
cset
)
{
unsigned
long
flags
;
struct
zio_channel
*
chan
;
struct
zio_block
*
block
;
struct
zio_device
*
zdev
;
zdev
=
cset
->
zdev
;
return
-
EAGAIN
;
/* will call data_done later */
}
static
struct
zio_device_operations
zld_d_op
=
{
.
input_cset
=
zld_input
,
};
static
struct
zio_cset
zld_cset
[]
=
{
{
.
n_chan
=
ZLD_NCHAN
,
.
ssize
=
ZLD_SSIZE
,
.
flags
=
ZIO_DIR_INPUT
|
ZCSET_TYPE_ANALOG
,
.
raw_io
=
zld_input
,
},
};
static
struct
zio_device
zld_dev
=
{
.
owner
=
THIS_MODULE
,
.
d_op
=
&
zld_d_op
,
.
cset
=
zld_cset
,
.
n_cset
=
ARRAY_SIZE
(
zld_cset
),
...
...
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