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>
Mon, 21 May 2012 02:41:48 +0000 (19:41 -0700)
commit81194cd24051eb3476f3ae853cc892e6d3a77bd7
tree5afa22ddfdea4ce63c2251a25802c5ed74f5cfd1
parentf71f5a550a43a81943efbe0032190ec381006b53
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