aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/keyboard.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2008-05-22 13:48:59 -0400
committerDavid S. Miller <davem@davemloft.net>2008-05-22 13:48:59 -0400
commitb9a2f2e450b0f770bb4347ae8d48eb2dea701e24 (patch)
tree7f2d25b44259bdeb8dd35448bbf16f68aa1d5dd2 /include/linux/keyboard.h
parent071f92d05967a0c8422f1c8587ce0b4d90a8b447 (diff)
netlink: Fix nla_parse_nested_compat() to call nla_parse() directly
The purpose of nla_parse_nested_compat() is to parse attributes which contain a struct followed by a stream of nested attributes. So far, it called nla_parse_nested() to parse the stream of nested attributes which was wrong, as nla_parse_nested() expects a container attribute as data which holds the attribute stream. It needs to call nla_parse() directly while pointing at the next possible alignment point after the struct in the beginning of the attribute. With this patch, I can no longer reproduce the reported leftover warnings. Signed-off-by: Thomas Graf <tgraf@suug.ch> Acked-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/keyboard.h')
0 files changed, 0 insertions, 0 deletions
ly available at Murata Supported thermistors from EPCOS: * EPCOS NTC Thermistors B57330V2103 Prefixes: b57330v2103 Datasheet: Publicly available at EPCOS Other NTC thermistors can be supported simply by adding compensation tables; e.g., NCP15WL333 support is added by the table ncpXXwl333. Authors: MyungJoo Ham <myungjoo.ham@samsung.com> Description ----------- The NTC (Negative Temperature Coefficient) thermistor is a simple thermistor that requires users to provide the resistance and lookup the corresponding compensation table to get the temperature input. The NTC driver provides lookup tables with a linear approximation function and four circuit models with an option not to use any of the four models. The four circuit models provided are: $: resister, [TH]: the thermistor 1. connect = NTC_CONNECTED_POSITIVE, pullup_ohm > 0 [pullup_uV] | | [TH] $ (pullup_ohm) | | +----+-----------------------[read_uV] | $ (pulldown_ohm) | --- (ground) 2. connect = NTC_CONNECTED_POSITIVE, pullup_ohm = 0 (not-connected) [pullup_uV] | [TH] | +----------------------------[read_uV] | $ (pulldown_ohm) | --- (ground) 3. connect = NTC_CONNECTED_GROUND, pulldown_ohm > 0 [pullup_uV] | $ (pullup_ohm) | +----+-----------------------[read_uV] | | [TH] $ (pulldown_ohm) | | -------- (ground) 4. connect = NTC_CONNECTED_GROUND, pulldown_ohm = 0 (not-connected) [pullup_uV] | $ (pullup_ohm) | +----------------------------[read_uV] | [TH] | --- (ground) When one of the four circuit models is used, read_uV, pullup_uV, pullup_ohm, pulldown_ohm, and connect should be provided. When none of the four models are suitable or the user can get the resistance directly, the user should provide read_ohm and _not_ provide the others. Sysfs Interface --------------- name the mandatory global attribute, the thermistor name. temp1_type always 4 (thermistor) RO temp1_input measure the temperature and provide the measured value. (reading this file initiates the reading procedure.) RO Note that each NTC thermistor has only _one_ thermistor; thus, only temp1 exists.