Skip to content

Commit

Permalink
hwmon: (applesmc) Introduce a register lookup table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Henrik Rydberg authored and Guenter Roeck committed Jan 8, 2011
1 parent 1ee7c71 commit 5874583
Showing 1 changed file with 297 additions and 242 deletions.
Loading

0 comments on commit 5874583

Please sign in to comment.