acpi_power_meter: remove duplicate code between register_{ro,rw}_attrs
authorKyle McMartin <kyle@mcmartin.ca>
Mon, 2 Apr 2012 18:19:02 +0000 (14:19 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 21 May 2012 02:41:48 +0000 (19:41 -0700)
commitf49d6a7ed2406b0c9b1c134f2e9aa4426a5266f0
tree60a788dfcd2242ef46dcb32f5d12a92872cfc2f3
parent3c45f2c78db21f4676287df19c89343acf04e7ef
acpi_power_meter: remove duplicate code between register_{ro,rw}_attrs

Key off the attr->set method being present to set the sysfs attribute
as writable.

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