panasonic-laptop: fix acpi_pcc_write_sset return value
authorAxel Lin <axel.lin@gmail.com>
Wed, 7 Jul 2010 00:21:48 +0000 (08:21 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:49:05 +0000 (09:49 -0400)
commit9fab10cdf58099beff08d74f6b4a6633305c5754
treeffa644369eec4f8a7c4aa0ca3d30286fa2106477
parentbfa47960f957c021a4d626b051668d2f66cadf23
panasonic-laptop: fix acpi_pcc_write_sset return value

In current implementation, acpi_pcc_write_sset return 1
if write is successful, 0 if write is failed.
But all the callers consider acpi_pcc_write_sset return 0
if write is successful and return negtive if write is failed.

This patch changes the implementation of acpi_pcc_write_sset to
return 0 if write is successful, -EIO if write is failed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/panasonic-laptop.c