summaryrefslogtreecommitdiff
path: root/drivers/char/epcaconfig.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-11-10 13:58:03 +0300
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-01-08 21:55:38 +0300
commit5874583d5662de5550b0ed1c54a9dea70bcdcba4 (patch)
tree4f2ccb1b543674d183469cb562f8f2b0cce00c53 /drivers/char/epcaconfig.h
parent1ee7c71bd1aa9758f14e1be92310215a5bd0abe7 (diff)
downloadlinux-5874583d5662de5550b0ed1c54a9dea70bcdcba4.tar.xz
hwmon: (applesmc) Introduce a register lookup table
One main problem with the current driver is the inability to quickly search for supported keys, resulting in detailed feature maps per machine model which are cumbersome to maintain. This patch adds a register lookup table, which enables binary search for supported keys. The lookup also reduces the io frequency, so the original mutex is replaced by locks around the actual io. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> [guenter.roeck@ericsson.com: Added value range check to key_at_index_store()] Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/char/epcaconfig.h')
0 files changed, 0 insertions, 0 deletions