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
e2fae0ab
Commit
e2fae0ab
authored
Apr 05, 2009
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'constify' into release
parents
fff251f6
c07c9a78
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
27 deletions
+34
-27
drivers/acpi/battery.c
drivers/acpi/battery.c
+1
-1
drivers/acpi/ec.c
drivers/acpi/ec.c
+1
-1
drivers/acpi/processor_thermal.c
drivers/acpi/processor_thermal.c
+1
-1
drivers/acpi/processor_throttling.c
drivers/acpi/processor_throttling.c
+1
-1
drivers/acpi/sbs.c
drivers/acpi/sbs.c
+7
-7
drivers/acpi/video.c
drivers/acpi/video.c
+21
-14
include/acpi/processor.h
include/acpi/processor.h
+2
-2
No files found.
drivers/acpi/battery.c
View file @
e2fae0ab
...
...
@@ -743,7 +743,7 @@ DECLARE_FILE_FUNCTIONS(alarm);
static
struct
battery_file
{
struct
file_operations
ops
;
mode_t
mode
;
char
*
name
;
c
onst
c
har
*
name
;
}
acpi_battery_file
[]
=
{
FILE_DESCRIPTION_RO
(
info
),
FILE_DESCRIPTION_RO
(
state
),
...
...
drivers/acpi/ec.c
View file @
e2fae0ab
...
...
@@ -682,7 +682,7 @@ static int acpi_ec_info_open_fs(struct inode *inode, struct file *file)
return
single_open
(
file
,
acpi_ec_read_info
,
PDE
(
inode
)
->
data
);
}
static
struct
file_operations
acpi_ec_info_ops
=
{
static
const
struct
file_operations
acpi_ec_info_ops
=
{
.
open
=
acpi_ec_info_open_fs
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
...
...
drivers/acpi/processor_thermal.c
View file @
e2fae0ab
...
...
@@ -509,7 +509,7 @@ static ssize_t acpi_processor_write_limit(struct file * file,
return
count
;
}
struct
file_operations
acpi_processor_limit_fops
=
{
const
struct
file_operations
acpi_processor_limit_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_processor_limit_open_fs
,
.
read
=
seq_read
,
...
...
drivers/acpi/processor_throttling.c
View file @
e2fae0ab
...
...
@@ -1291,7 +1291,7 @@ static ssize_t acpi_processor_write_throttling(struct file *file,
return
count
;
}
struct
file_operations
acpi_processor_throttling_fops
=
{
const
struct
file_operations
acpi_processor_throttling_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_processor_throttling_open_fs
,
.
read
=
seq_read
,
...
...
drivers/acpi/sbs.c
View file @
e2fae0ab
...
...
@@ -484,9 +484,9 @@ static int
acpi_sbs_add_fs
(
struct
proc_dir_entry
**
dir
,
struct
proc_dir_entry
*
parent_dir
,
char
*
dir_name
,
struct
file_operations
*
info_fops
,
struct
file_operations
*
state_fops
,
struct
file_operations
*
alarm_fops
,
void
*
data
)
const
struct
file_operations
*
info_fops
,
const
struct
file_operations
*
state_fops
,
const
struct
file_operations
*
alarm_fops
,
void
*
data
)
{
if
(
!*
dir
)
{
*
dir
=
proc_mkdir
(
dir_name
,
parent_dir
);
...
...
@@ -682,7 +682,7 @@ static int acpi_battery_alarm_open_fs(struct inode *inode, struct file *file)
return
single_open
(
file
,
acpi_battery_read_alarm
,
PDE
(
inode
)
->
data
);
}
static
struct
file_operations
acpi_battery_info_fops
=
{
static
const
struct
file_operations
acpi_battery_info_fops
=
{
.
open
=
acpi_battery_info_open_fs
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
...
...
@@ -690,7 +690,7 @@ static struct file_operations acpi_battery_info_fops = {
.
owner
=
THIS_MODULE
,
};
static
struct
file_operations
acpi_battery_state_fops
=
{
static
const
struct
file_operations
acpi_battery_state_fops
=
{
.
open
=
acpi_battery_state_open_fs
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
...
...
@@ -698,7 +698,7 @@ static struct file_operations acpi_battery_state_fops = {
.
owner
=
THIS_MODULE
,
};
static
struct
file_operations
acpi_battery_alarm_fops
=
{
static
const
struct
file_operations
acpi_battery_alarm_fops
=
{
.
open
=
acpi_battery_alarm_open_fs
,
.
read
=
seq_read
,
.
write
=
acpi_battery_write_alarm
,
...
...
@@ -730,7 +730,7 @@ static int acpi_ac_state_open_fs(struct inode *inode, struct file *file)
return
single_open
(
file
,
acpi_ac_read_state
,
PDE
(
inode
)
->
data
);
}
static
struct
file_operations
acpi_ac_state_fops
=
{
static
const
struct
file_operations
acpi_ac_state_fops
=
{
.
open
=
acpi_ac_state_open_fs
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
...
...
drivers/acpi/video.c
View file @
e2fae0ab
...
...
@@ -201,7 +201,7 @@ struct acpi_video_device {
/* bus */
static
int
acpi_video_bus_info_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
acpi_video_bus_info_fops
=
{
static
const
struct
file_operations
acpi_video_bus_info_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_bus_info_open_fs
,
.
read
=
seq_read
,
...
...
@@ -210,7 +210,7 @@ static struct file_operations acpi_video_bus_info_fops = {
};
static
int
acpi_video_bus_ROM_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
acpi_video_bus_ROM_fops
=
{
static
const
struct
file_operations
acpi_video_bus_ROM_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_bus_ROM_open_fs
,
.
read
=
seq_read
,
...
...
@@ -220,7 +220,7 @@ static struct file_operations acpi_video_bus_ROM_fops = {
static
int
acpi_video_bus_POST_info_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
acpi_video_bus_POST_info_fops
=
{
static
const
struct
file_operations
acpi_video_bus_POST_info_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_bus_POST_info_open_fs
,
.
read
=
seq_read
,
...
...
@@ -229,19 +229,25 @@ static struct file_operations acpi_video_bus_POST_info_fops = {
};
static
int
acpi_video_bus_POST_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
acpi_video_bus_POST_fops
=
{
static
ssize_t
acpi_video_bus_write_POST
(
struct
file
*
file
,
const
char
__user
*
buffer
,
size_t
count
,
loff_t
*
data
);
static
const
struct
file_operations
acpi_video_bus_POST_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_bus_POST_open_fs
,
.
read
=
seq_read
,
.
write
=
acpi_video_bus_write_POST
,
.
llseek
=
seq_lseek
,
.
release
=
single_release
,
};
static
int
acpi_video_bus_DOS_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
acpi_video_bus_DOS_fops
=
{
static
ssize_t
acpi_video_bus_write_DOS
(
struct
file
*
file
,
const
char
__user
*
buffer
,
size_t
count
,
loff_t
*
data
);
static
const
struct
file_operations
acpi_video_bus_DOS_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_bus_DOS_open_fs
,
.
read
=
seq_read
,
.
write
=
acpi_video_bus_write_DOS
,
.
llseek
=
seq_lseek
,
.
release
=
single_release
,
};
...
...
@@ -249,7 +255,7 @@ static struct file_operations acpi_video_bus_DOS_fops = {
/* device */
static
int
acpi_video_device_info_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
acpi_video_device_info_fops
=
{
static
const
struct
file_operations
acpi_video_device_info_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_device_info_open_fs
,
.
read
=
seq_read
,
...
...
@@ -259,27 +265,33 @@ static struct file_operations acpi_video_device_info_fops = {
static
int
acpi_video_device_state_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
acpi_video_device_state_fops
=
{
static
ssize_t
acpi_video_device_write_state
(
struct
file
*
file
,
const
char
__user
*
buffer
,
size_t
count
,
loff_t
*
data
);
static
const
struct
file_operations
acpi_video_device_state_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_device_state_open_fs
,
.
read
=
seq_read
,
.
write
=
acpi_video_device_write_state
,
.
llseek
=
seq_lseek
,
.
release
=
single_release
,
};
static
int
acpi_video_device_brightness_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
ssize_t
acpi_video_device_write_brightness
(
struct
file
*
file
,
const
char
__user
*
buffer
,
size_t
count
,
loff_t
*
data
);
static
struct
file_operations
acpi_video_device_brightness_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_device_brightness_open_fs
,
.
read
=
seq_read
,
.
write
=
acpi_video_device_write_brightness
,
.
llseek
=
seq_lseek
,
.
release
=
single_release
,
};
static
int
acpi_video_device_EDID_open_fs
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
acpi_video_device_EDID_fops
=
{
static
const
struct
file_operations
acpi_video_device_EDID_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
acpi_video_device_EDID_open_fs
,
.
read
=
seq_read
,
...
...
@@ -287,7 +299,7 @@ static struct file_operations acpi_video_device_EDID_fops = {
.
release
=
single_release
,
};
static
char
device_decode
[][
30
]
=
{
static
c
onst
c
har
device_decode
[][
30
]
=
{
"motherboard VGA device"
,
"PCI VGA device"
,
"AGP VGA device"
,
...
...
@@ -1253,7 +1265,6 @@ static int acpi_video_device_add_fs(struct acpi_device *device)
goto
err_remove_dir
;
/* 'state' [R/W] */
acpi_video_device_state_fops
.
write
=
acpi_video_device_write_state
;
entry
=
proc_create_data
(
"state"
,
S_IFREG
|
S_IRUGO
|
S_IWUSR
,
device_dir
,
&
acpi_video_device_state_fops
,
...
...
@@ -1262,8 +1273,6 @@ static int acpi_video_device_add_fs(struct acpi_device *device)
goto
err_remove_info
;
/* 'brightness' [R/W] */
acpi_video_device_brightness_fops
.
write
=
acpi_video_device_write_brightness
;
entry
=
proc_create_data
(
"brightness"
,
S_IFREG
|
S_IRUGO
|
S_IWUSR
,
device_dir
,
&
acpi_video_device_brightness_fops
,
...
...
@@ -1546,7 +1555,6 @@ static int acpi_video_bus_add_fs(struct acpi_device *device)
goto
err_remove_rom
;
/* 'POST' [R/W] */
acpi_video_bus_POST_fops
.
write
=
acpi_video_bus_write_POST
;
entry
=
proc_create_data
(
"POST"
,
S_IFREG
|
S_IRUGO
|
S_IWUSR
,
device_dir
,
&
acpi_video_bus_POST_fops
,
...
...
@@ -1555,7 +1563,6 @@ static int acpi_video_bus_add_fs(struct acpi_device *device)
goto
err_remove_post_info
;
/* 'DOS' [R/W] */
acpi_video_bus_DOS_fops
.
write
=
acpi_video_bus_write_DOS
;
entry
=
proc_create_data
(
"DOS"
,
S_IFREG
|
S_IRUGO
|
S_IWUSR
,
device_dir
,
&
acpi_video_bus_DOS_fops
,
...
...
include/acpi/processor.h
View file @
e2fae0ab
...
...
@@ -322,7 +322,7 @@ static inline int acpi_processor_ppc_has_changed(struct acpi_processor *pr)
int
acpi_processor_tstate_has_changed
(
struct
acpi_processor
*
pr
);
int
acpi_processor_get_throttling_info
(
struct
acpi_processor
*
pr
);
extern
int
acpi_processor_set_throttling
(
struct
acpi_processor
*
pr
,
int
state
);
extern
struct
file_operations
acpi_processor_throttling_fops
;
extern
const
struct
file_operations
acpi_processor_throttling_fops
;
extern
void
acpi_processor_throttling_init
(
void
);
/* in processor_idle.c */
int
acpi_processor_power_init
(
struct
acpi_processor
*
pr
,
...
...
@@ -336,7 +336,7 @@ extern struct cpuidle_driver acpi_idle_driver;
/* in processor_thermal.c */
int
acpi_processor_get_limit_info
(
struct
acpi_processor
*
pr
);
extern
struct
file_operations
acpi_processor_limit_fops
;
extern
const
struct
file_operations
acpi_processor_limit_fops
;
extern
struct
thermal_cooling_device_ops
processor_cooling_ops
;
#ifdef CONFIG_CPU_FREQ
void
acpi_thermal_cpufreq_init
(
void
);
...
...
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