sony-laptop: allow complex per-value input/output validation
authorMattia Dongili <malattia@linux.it>
Mon, 12 Feb 2007 21:01:07 +0000 (22:01 +0100)
committerLen Brown <len.brown@intel.com>
Tue, 13 Feb 2007 08:08:04 +0000 (03:08 -0500)
commit156c221b728ccd4657c359cd25428946856beca8
treec5a3b8be58a21ce544560f9b5aabc4a7a56fa744
parent0d477faca3a661908378b602c3d12df73c922c9f
sony-laptop: allow complex per-value input/output validation

Replace sony_acpi_value.{min,max} with a callback function that allows
more complex reasoning in accepting input and presenting output.

This allows consistency between the sony-laptop specific 'brightness_default'
and the backlight subsystem 0-based 'brightness'.

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/sony-laptop.c