]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (smsc47m1) restore missing name attribute
authorJean Delvare <khali@linux-fr.org>
Sun, 12 Aug 2007 11:58:50 +0000 (13:58 +0200)
committerMark M. Hoffman <mhoffman@lightlink.com>
Sun, 12 Aug 2007 18:39:44 +0000 (14:39 -0400)
commit1eb4b5b4628308757b0fc819dc2ea78e046a5b25
tree0489c8c726b70d98fd01e5e15607c3313f7d6ead
parent9c0eaca2eb7e4afa5dbefc660ed95bd8ebc28e1f
hwmon: (smsc47m1) restore missing name attribute

The smsc47m1 driver no longer creates the name attribute used by
libsensors to identify chip types. It was lost during the conversion
to a platform driver. I was fooled by the fact that we do have a
group with all attributes, but only to delete them all at once. The
group is not used to create the attributes, so we have to explicitly
create the name attribute.

This fixes lm-sensors ticket #2236:
http://lm-sensors.org/ticket/2236

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/smsc47m1.c