Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753367AbbF0NW6 (ORCPT ); Sat, 27 Jun 2015 09:22:58 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37603 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753321AbbF0NWt (ORCPT ); Sat, 27 Jun 2015 09:22:49 -0400 From: Gabriele Mazzotta To: pali.rohar@gmail.com, linux@roeck-us.net, jdelvare@suse.de Cc: gregkh@linuxfoundation.org, arnd@arndb.de, stevenhoneyman@gmail.com, Valdis.Kletnieks@vt.edu, jochen@penguin-breeder.org, linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, Gabriele Mazzotta Subject: [PATCH] hwmon: (dell-smm-hwon) Use a valid name attribute Date: Sat, 27 Jun 2015 15:22:05 +0200 Message-Id: <1435411325-27428-1-git-send-email-gabriele.mzt@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1155 Lines: 30 As per Documentation/hwmon/sysfs-interface, hwmon name attributes must not include '-', so replace 'dell-smm' with 'dell_smm'. Fixes: 039ae58503f3 ("hwmon: Allow to compile dell-smm-hwmon driver without /proc/i8k") Signed-off-by: Gabriele Mazzotta --- drivers/hwmon/dell-smm-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c index 2a80882..37c16af 100644 --- a/drivers/hwmon/dell-smm-hwmon.c +++ b/drivers/hwmon/dell-smm-hwmon.c @@ -777,7 +777,7 @@ static int __init i8k_init_hwmon(void) if (err >= 0) i8k_hwmon_flags |= I8K_HWMON_HAVE_FAN2; - i8k_hwmon_dev = hwmon_device_register_with_groups(NULL, "dell-smm", + i8k_hwmon_dev = hwmon_device_register_with_groups(NULL, "dell_smm", NULL, i8k_groups); if (IS_ERR(i8k_hwmon_dev)) { err = PTR_ERR(i8k_hwmon_dev); -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/