Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141969
b: refs/heads/master
c: b7171ae
h: refs/heads/master
i:
  141967: c8f4e15
v: v3
  • Loading branch information
Jan Engelhardt authored and Len Brown committed Apr 4, 2009
1 parent 87b6c75 commit d8c740f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 070d8eb1f6b789206486ea6a4a1bb7745d86d314
refs/heads/master: b7171ae74b1741245835444bd98a7217958cf929
25 changes: 16 additions & 9 deletions trunk/drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,25 @@ static const 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 int 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 int 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,
};
Expand All @@ -247,20 +253,26 @@ static const 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 int 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 int 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,
};
Expand All @@ -275,7 +287,7 @@ static const struct file_operations acpi_video_device_EDID_fops = {
.release = single_release,
};

static char device_decode[][30] = {
static const char device_decode[][30] = {
"motherboard VGA device",
"PCI VGA device",
"AGP VGA device",
Expand Down Expand Up @@ -1134,7 +1146,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,
Expand All @@ -1143,8 +1154,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,
Expand Down Expand Up @@ -1427,7 +1436,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,
Expand All @@ -1436,7 +1444,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,
Expand Down

0 comments on commit d8c740f

Please sign in to comment.