[lm-sensors] [PATCH 7/8] hwmon: applesmc: Simplify feature sysfs handling
Guenter Roeck
guenter.roeck at ericsson.com
Fri Nov 5 04:07:45 CET 2010
On Sun, Oct 31, 2010 at 03:50:33AM -0400, Henrik Rydberg wrote:
> Given the dynamic node construction method, the setup of the
> accelerometer, light sensor and keyboard backlight sysfs nodes
> can be simplified. This patch does not contain any logic changes.
>
> Signed-off-by: Henrik Rydberg <rydberg at euromail.se>
Hi Henrik,
only one minor comment.
> ---
> drivers/hwmon/applesmc.c | 168 ++++++++++++++++++++-------------------------
> 1 files changed, 75 insertions(+), 93 deletions(-)
>
> diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
> index 4ba20ec..c09cd2e 100644
> --- a/drivers/hwmon/applesmc.c
> +++ b/drivers/hwmon/applesmc.c
[ ... ]
> +static struct applesmc_node_group info_group[] = {
> + { "name", applesmc_name_show },
> + { "key_count", applesmc_key_count_show },
> + { "key_at_index", applesmc_key_at_index_show, applesmc_key_at_index_store },
Finally a checkpatch warning - line longer than 80 columns.
Guenter
More information about the lm-sensors
mailing list