]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
video: build fix
authorLen Brown <len.brown@intel.com>
Sat, 4 Apr 2009 07:33:45 +0000 (03:33 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 4 Apr 2009 07:33:45 +0000 (03:33 -0400)
acpi_video_device_write_state() and friends now return ssize_t,
while the constify patch assumed it was still int.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c

index 52779549d367b037e47c4089ac89c158490f858a..0e7e689634a79e7c0eca28c4a4576791d259676b 100644 (file)
@@ -217,7 +217,7 @@ 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 int acpi_video_bus_write_POST(struct file *file,
+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,
@@ -229,7 +229,7 @@ static const struct file_operations acpi_video_bus_POST_fops = {
 };
 
 static int acpi_video_bus_DOS_open_fs(struct inode *inode, struct file *file);
-static int acpi_video_bus_write_DOS(struct file *file,
+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,
@@ -253,7 +253,7 @@ 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 int acpi_video_device_write_state(struct file *file,
+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,
@@ -266,7 +266,7 @@ static const struct file_operations acpi_video_device_state_fops = {
 
 static int acpi_video_device_brightness_open_fs(struct inode *inode,
                                                struct file *file);
-static int acpi_video_device_write_brightness(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,