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
78d0af33
Commit
78d0af33
authored
Dec 07, 2006
by
Alexey Starikovskiy
Committed by
Len Brown
Dec 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: ec: Style changes.
Signed-off-by:
Len Brown
<
len.brown@intel.com
>
parent
523953b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
drivers/acpi/ec.c
drivers/acpi/ec.c
+6
-10
No files found.
drivers/acpi/ec.c
View file @
78d0af33
...
@@ -135,20 +135,16 @@ static inline void acpi_ec_write_data(struct acpi_ec *ec, u8 data)
...
@@ -135,20 +135,16 @@ static inline void acpi_ec_write_data(struct acpi_ec *ec, u8 data)
outb
(
data
,
ec
->
data_addr
);
outb
(
data
,
ec
->
data_addr
);
}
}
static
int
acpi_ec_check_status
(
struct
acpi_ec
*
ec
,
u8
event
)
static
in
line
in
t
acpi_ec_check_status
(
struct
acpi_ec
*
ec
,
u8
event
)
{
{
u8
status
=
acpi_ec_read_status
(
ec
);
u8
status
=
acpi_ec_read_status
(
ec
);
switch
(
event
)
{
case
ACPI_EC_EVENT_OBF_1
:
if
(
event
==
ACPI_EC_EVENT_OBF_1
)
{
if
(
status
&
ACPI_EC_FLAG_OBF
)
if
(
status
&
ACPI_EC_FLAG_OBF
)
return
1
;
return
1
;
break
;
}
else
if
(
event
==
ACPI_EC_EVENT_IBF_0
)
{
case
ACPI_EC_EVENT_IBF_0
:
if
(
!
(
status
&
ACPI_EC_FLAG_IBF
))
if
(
!
(
status
&
ACPI_EC_FLAG_IBF
))
return
1
;
return
1
;
break
;
default:
break
;
}
}
return
0
;
return
0
;
...
@@ -238,7 +234,7 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
...
@@ -238,7 +234,7 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
acpi_ec_write_cmd
(
ec
,
command
);
acpi_ec_write_cmd
(
ec
,
command
);
for
(;
wdata_len
>
0
;
wdata_len
--
)
{
for
(;
wdata_len
>
0
;
--
wdata_len
)
{
result
=
acpi_ec_wait
(
ec
,
ACPI_EC_EVENT_IBF_0
);
result
=
acpi_ec_wait
(
ec
,
ACPI_EC_EVENT_IBF_0
);
if
(
result
)
{
if
(
result
)
{
printk
(
KERN_ERR
PREFIX
"write_cmd timeout, command = %d
\n
"
,
printk
(
KERN_ERR
PREFIX
"write_cmd timeout, command = %d
\n
"
,
...
@@ -259,7 +255,7 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
...
@@ -259,7 +255,7 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
atomic_set
(
&
ec
->
query_pending
,
0
);
atomic_set
(
&
ec
->
query_pending
,
0
);
}
}
for
(;
rdata_len
>
0
;
rdata_len
--
)
{
for
(;
rdata_len
>
0
;
--
rdata_len
)
{
result
=
acpi_ec_wait
(
ec
,
ACPI_EC_EVENT_OBF_1
);
result
=
acpi_ec_wait
(
ec
,
ACPI_EC_EVENT_OBF_1
);
if
(
result
)
{
if
(
result
)
{
printk
(
KERN_ERR
PREFIX
"read timeout, command = %d
\n
"
,
printk
(
KERN_ERR
PREFIX
"read timeout, command = %d
\n
"
,
...
...
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