hwmon: applesmc: allow for variable ALV0 and ALV1 package length
commit8bd1a12a51871f0c870612d8220b1485d6aefc73
authorHenrik Rydberg <rydberg@euromail.se>
Sun, 19 Oct 2008 03:27:39 +0000 (18 20:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:52:35 +0000 (20 08:52 -0700)
tree173aa85efcf75f5f825ea6bf4cb6277df8ba81ad
parent02fcbd144d684167aa67b1d3ad68f18d265f2d08
hwmon: applesmc: allow for variable ALV0 and ALV1 package length

On some recent Macbooks, the package length for the light sensors ALV0 and
ALV1 has changed from 6 to 10.  This patch allows for a variable package
length encompassing both variants.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Cc: Nicolas Boichat <nicolas@boichat.ch>
Cc: Riki Oktarianto <rkoktarianto@gmail.com>
Cc: Mark M. Hoffman <mhoffman@lightlink.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/applesmc.c