From patchwork Thu Mar 22 13:43:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alvaro Gamez X-Patchwork-Id: 10301553 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ACD15605F3 for ; Thu, 22 Mar 2018 13:43:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DA48283AE for ; Thu, 22 Mar 2018 13:43:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B826283FE; Thu, 22 Mar 2018 13:43:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3345128429 for ; Thu, 22 Mar 2018 13:42:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752731AbeCVNm1 (ORCPT ); Thu, 22 Mar 2018 09:42:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54286 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752708AbeCVNm1 (ORCPT ); Thu, 22 Mar 2018 09:42:27 -0400 Received: by mail-wm0-f66.google.com with SMTP id h76so16081077wme.4 for ; Thu, 22 Mar 2018 06:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hazent-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=SANlIW0+8ty63JFUwBx1HDUrUlhJe3/L2QUzUaZUIJw=; b=ci32MwCLfelmLK8UR6vJ8Cc8WVdPXBe3+DtCWURqgUaEOmYDZPs6tr1VCmE8d/hZc6 T7gk2Cv2zIxAOQjcJ2gCXX1yv6N673NHYm3YxI3LChJlEkpbW/ZRbo6QP05GYVmcbedO gSPt+Mi2JhSMa+X1HkiIHj8ixVx7oawf7GFv4Yj5uwr/0eH/dCioPF3u4rTRQeAAmmwI M6XEQtrAB7aCv7AY7eOTp4PPu6NAPWBrQEmZLPH+KGAKE2AV9mH1CRMfLJs5hkkYXFX9 Ic6iEkP9TVVZWPa7iFRFMKoTSvOkCD7q1XJpDMokfZPOjqU+7pKcNoaHk2e+FChIMV7I Vzuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SANlIW0+8ty63JFUwBx1HDUrUlhJe3/L2QUzUaZUIJw=; b=aYVuU/CXtZ3nNbkMXccCUFQ1wAkA1pLhOEmhexvf7e+vh3wRScFQNKDPlQeW2cCork uoxzOyDDO/DEypLG2D81aCcZEvG+czsQysIYVRKdiLtzGAtXN4hci+2QSVAyaXC+5+jp DTwm27p3hw9MujOAJryNBk77UgvI35ulVI1X4Q7ZVLJGgQfGJ/HYFhZKE8MqR4Yybu9r ZguRUHyiuR0CfGprBw3m3ItYiGOdLeHnE283JufvmGk6dLDzJqVpp5SSX3w7pleUq5Sa y3FcSP88MWzKLQVC+CpFUUStg3maxjFRUJo9bDo3RTE/rrWrGsI85dm0eWUaozLDyuN0 ZGQw== X-Gm-Message-State: AElRT7E2B5jTVN09Sr2z0YOppO06Gnz+TM6dDn9kTW8EP0oGQh8ZxQbZ nuSJSK3yQPoWd0N9g7XfHctEIw== X-Google-Smtp-Source: AG47ELu8eZ7EApDGcMmOo67vOXfpVkN6AEN4F7KNcpZ9PA83vbRe5LqpoT2WRUHvbU94D70UF+2qNA== X-Received: by 10.28.22.210 with SMTP id 201mr5335562wmw.66.1521726146114; Thu, 22 Mar 2018 06:42:26 -0700 (PDT) Received: from salem.gmr.ssr.upm.es (salem.gmr.ssr.upm.es. [138.4.36.7]) by smtp.gmail.com with ESMTPSA id t132sm7980567wme.8.2018.03.22.06.42.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Mar 2018 06:42:25 -0700 (PDT) From: Alvaro Gamez Machado To: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: Alvaro Gamez Machado Subject: [PATCH] hwmon: (lm92) Add max6635 to lm92_id[] Date: Thu, 22 Mar 2018 14:43:11 +0100 Message-Id: <20180322134311.19485-1-alvaro.gamez@hazent.com> X-Mailer: git-send-email 2.16.2 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since autodetection of this chip was removed, it makes sense to add prefix max6635 so that the device can be instantiated by its actual name. Signed-off-by: Alvaro Gamez Machado Reviewed-by: Jean Delvare --- drivers/hwmon/lm92.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c index 18509b5af11e..d40fe5122e94 100644 --- a/drivers/hwmon/lm92.c +++ b/drivers/hwmon/lm92.c @@ -52,6 +52,7 @@ */ static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, I2C_CLIENT_END }; +enum chips { lm92, max6635 }; /* The LM92 registers */ #define LM92_REG_CONFIG 0x01 /* 8-bit, RW */ @@ -329,8 +330,8 @@ static int lm92_probe(struct i2c_client *new_client, */ static const struct i2c_device_id lm92_id[] = { - { "lm92", 0 }, - /* max6635 could be added here */ + { "lm92", lm92 }, + { "max6635", max6635 }, { } }; MODULE_DEVICE_TABLE(i2c, lm92_id);