OSDN Git Service

eeepc-laptop: disp attribute should be write-only
authorCorentin Chary <corentincj@iksaif.net>
Fri, 2 Oct 2009 15:02:40 +0000 (17:02 +0200)
committerCorentin Chary <corentincj@iksaif.net>
Fri, 2 Oct 2009 15:02:40 +0000 (17:02 +0200)
commitd2c2d06c114e487842d17eecfbf7cf3e82fb4356
tree0ee02f5567ece30dad88bfbb3c10f9a58b69da23
parent20737ac67db275a31199f4a7450bd28f0cdb4b96
eeepc-laptop: disp attribute should be write-only

Currently, reading from the disp attribute fails with "No such device",
which is misleading. According to CMSG table on acpi4asus project site,
no models have a getter method corresponding to SDSP. Change the file
permission to disallow reads.

If some joker changes the permission to permit reads, then return -EIO
to be consistent with sysfs' behaviour when no show() method is
provided.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
drivers/platform/x86/eeepc-laptop.c