From patchwork Thu Mar 22 14:37:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alvaro Gamez X-Patchwork-Id: 10301629 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 5659D60386 for ; Thu, 22 Mar 2018 14:37:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47D2427BA5 for ; Thu, 22 Mar 2018 14:37:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C4FF286AE; Thu, 22 Mar 2018 14:37:11 +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 B4D3927BA5 for ; Thu, 22 Mar 2018 14:37:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753342AbeCVOhG (ORCPT ); Thu, 22 Mar 2018 10:37:06 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:53787 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754047AbeCVOhF (ORCPT ); Thu, 22 Mar 2018 10:37:05 -0400 Received: by mail-wm0-f67.google.com with SMTP id e194so16318835wmd.3 for ; Thu, 22 Mar 2018 07:37:04 -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=JK2Yamnf240zAjAlUrE9V4gfSfr/5HVvVDWwMyaBmFs=; b=bEDcAtsR6IxoGUHd6gMi/HIo2Ly0KDqz7imr+nOjWRJvpxbc/h5d64PMm2glxo9909 cO+tN8BVxxNMSjnssLs2hnvNU/8tOCENUEd3IpauRfJY1hDs/kVUp473W+17bfuBDYaw i5t0y0Q2ZdpTkeqWzdbppevHI1LfBRd/HZBSloBsEv2SkAQV36E7mLBow2fMa0RB2n8p 3QSSB3NIMSPYEtN9QSigCTuc5P8cAqPzspE+DhVNBGasg26MOTap8BllCZcWZYtnlNQV CSUbmauP6RztS/QlnDEiTsfsx6+7T/MIAAk9M6IfgXKEG0ZYEmzXkf7e95VebWvR3WT0 fQEQ== 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=JK2Yamnf240zAjAlUrE9V4gfSfr/5HVvVDWwMyaBmFs=; b=pkkPCaB/yEIFpUMbkPfG11+nd3wvj9BYYstYD2rpJNznMf1mu4PxelRaB2s1x8F5sR tre9V4G/aW4zr28s8Jjy19zH/b1RmCHwqrXNYNTC5NHF84jVtRbvfuH6O7X3c6m6VNWt pAx+rlWhAage3GoiH6CjFPnNq95Vd98Xcc0erN5BIjKAQIPdYDwVp3d6JNwvzRDZ0nbu fS2Rba2kh1DCLagoM6YirVj/FgdLWUgB+yYqc0vT3IEV47cCxxcy5GkDovd9rrEnzSnD pHeDrr8oL/+cpF6kjGvdDIWdV+UQkG4ISz7UbXDvlVcnqxDnDLLzfnkMMWudN6MmEVmD cOBw== X-Gm-Message-State: AElRT7EXmIpP2JY3ovWPyNjRk16Ka9FjHuGvc8K3ZLtSn3LID3dlAbMz qGfHqbhnXnmZI9Li2pKAxfZdxw== X-Google-Smtp-Source: AG47ELuo2+HkuHHShYyBv/lHGp10Px57EH7KqM/duOVnStX0z9b/vSsolIwf+YQq6awNL05hR3wnNg== X-Received: by 10.28.227.66 with SMTP id a63mr5506071wmh.128.1521729424242; Thu, 22 Mar 2018 07:37:04 -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 w18sm2603091wra.25.2018.03.22.07.37.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Mar 2018 07:37:03 -0700 (PDT) From: Alvaro Gamez Machado To: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: Alvaro Gamez Machado Subject: [PATCH v2] hwmon: (lm92) Add max6635 to lm92_id[] Date: Thu, 22 Mar 2018 15:37:44 +0100 Message-Id: <20180322143744.21117-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 --- Differences: * Update also Documentation/hwmon/lm92 with new prefix to use Documentation/hwmon/lm92 | 2 +- drivers/hwmon/lm92.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/hwmon/lm92 b/Documentation/hwmon/lm92 index f2a5adcf4ead..cfa99a353b8c 100644 --- a/Documentation/hwmon/lm92 +++ b/Documentation/hwmon/lm92 @@ -11,7 +11,7 @@ Supported chips: Addresses scanned: none, force parameter needed Datasheet: http://www.national.com/pf/LM/LM76.html * Maxim MAX6633/MAX6634/MAX6635 - Prefix: 'lm92' + Prefix: 'max6635' Addresses scanned: none, force parameter needed Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3074 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);