sony-laptop: fix sony_nc_sysfs_store()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 9 Jun 2012 04:18:13 +0000 (13:18 +0900)
committerMatthew Garrett <mjg@redhat.com>
Tue, 26 Jun 2012 18:43:27 +0000 (14:43 -0400)
commitc7a2918373983b32db3ca35823d930641747e26f
tree514d6e8c95ffe2cf893671f6e706e20415e00e22
parentca3c2c706de39b3400e57254dce054bf7350efa2
sony-laptop: fix sony_nc_sysfs_store()

We made this an unsigned long and it causes a bug on 64 bit big endian
systems when we try to pass the value to sony_nc_int_call().

Also value has to be signed because validate() returns negative error
codes.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c