]> git.karo-electronics.de Git - karo-tx-linux.git/commit
acpi_power_meter: use the same struct {rw,ro}_sensor_template for both
authorKyle McMartin <kyle@mcmartin.ca>
Mon, 2 Apr 2012 18:19:00 +0000 (14:19 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 26 Apr 2012 15:42:56 +0000 (08:42 -0700)
commita15339fcca290ac6d713cb7e26c95185bf0687c0
treeb16693e7235ceb32751994bec95536c60affe2f6
parent7c888f5030bcd0b7d0b5cc21f6dac87acff9a35b
acpi_power_meter: use the same struct {rw,ro}_sensor_template for both

We don't need both, when we can just key the read/write off of the
presence of the .set member.

Signed-off-by: Kyle McMartin <kyle@redhat.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/acpi_power_meter.c