From patchwork Mon Jul 4 19:19:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alison Schofield X-Patchwork-Id: 9213073 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 0253360572 for ; Mon, 4 Jul 2016 19:19:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E587A2877C for ; Mon, 4 Jul 2016 19:19:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D859D28779; Mon, 4 Jul 2016 19:19:42 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 7E35428779 for ; Mon, 4 Jul 2016 19:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753362AbcGDTTl (ORCPT ); Mon, 4 Jul 2016 15:19:41 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:33005 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753490AbcGDTTk (ORCPT ); Mon, 4 Jul 2016 15:19:40 -0400 Received: by mail-yw0-f195.google.com with SMTP id i12so6038621ywa.0; Mon, 04 Jul 2016 12:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=tntTLOOUt07O1+XIPupQpS/ymvZ116gu247B5sYQcig=; b=yYIGvqU9RUeoK0BMjWCQpDTrfTlmIVJshuEWlzjFnsxv+aCjHwrxd20K50t6Oj+yvb 80NsYnxNUWB9kCEQ3dHggM9gw+NtiN5xTels41EBsXWPPywZoDUKNTk4yF+x8yG2469l vtOy/9PC40+pSmzVnxCxeZ9/RYVVMU4BzAKhgfnTrtDh+6POjnp/wDApjABsZyWax2F1 L+J+F+ETA4gjZNUshaGAWVLqIL9uZ1Dd5Db7WjLjD6nYPVTcsUa0YkGQl+9nQgAsE+c1 XGzzT5a59iPQ31NNchlZMAn4prWIPESWqQLmTMI8OanVv2tTH9wRCXf1GPM/dx7ps93N p0wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=tntTLOOUt07O1+XIPupQpS/ymvZ116gu247B5sYQcig=; b=Dg9Lc//h0QNaLT45W+Wq14ImtsJ6yUjhMDJtw5r2JAbHla0TeuSxMLaqkJFBeKV85k vL16etctj7HZp0hJEVA2DbEqc3Jgrb4k0k+/vQzrBIatUGU1Gj91pienOzAx85KCBsx6 cCWCKSxgQyDVl6wJ04eVdpkR6ixelcA1ZVxlV3KH64E2/DrgiHhjnVytRYs2Yb9b6Op/ ohdBWG8LQFjEZ09ZwGYtyagySPPwcLmxLxf8500piFk7oJolPAAxUDA1hemr84JlcW9O wKMKV7pzKrTf/ZbjvsbVCoQr7hI02KMJ+E6NertLCDmrSxQoPuQVuB2jE9dU8VygJsNi 9PEg== X-Gm-Message-State: ALyK8tK/edG0fJnkq1TdVMF1lw/OaCfcpfBRxp0G1wQNHXjAJBQJKDyW0R2rm35llnqlYA== X-Received: by 10.129.153.81 with SMTP id q78mr9072216ywg.229.1467659979310; Mon, 04 Jul 2016 12:19:39 -0700 (PDT) Received: from d830 (96-39-188-157.dhcp.mdfd.or.charter.com. [96.39.188.157]) by smtp.gmail.com with ESMTPSA id g69sm9736014ywe.26.2016.07.04.12.19.31 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Jul 2016 12:19:33 -0700 (PDT) Date: Mon, 4 Jul 2016 12:19:28 -0700 From: Alison Schofield To: linux@roeck-us.net Cc: Jean Delvare , "open list:JC42.4 TEMPERATURE SENSOR DRIVER" , linux-kernel@vger.kernel.org, daniel.baluta@gmail.com Subject: [RFC PATCH] hwmon: (jc42) Add I2C_CLASS_HWMON to detection class Message-ID: <20160704191908.GA9056@d830.WORKGROUP> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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 In 2011, commit 774466add7c810fd7e4c8bcf41995b6799608880 changed the detection class of these chips to I2C_CLASS_SPD based on this premise: "makes more sense because these chips always live on memory modules" Today these chips have applications beyond memory modules. Add I2C_CLASS_HWMON as an additional detection class to allow detection by hwmon class i2c adapters. Alternative is to replace the SPD w HWMON class, but that carries risk for existing usage. Signed-off-by: Alison Schofield Cc: Daniel Baluta --- drivers/hwmon/jc42.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index 9887d32..1537ba0 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c @@ -538,7 +538,7 @@ static const struct i2c_device_id jc42_id[] = { MODULE_DEVICE_TABLE(i2c, jc42_id); static struct i2c_driver jc42_driver = { - .class = I2C_CLASS_SPD, + .class = I2C_CLASS_SPD | I2C_CLASS_HWMON, .driver = { .name = "jc42", .pm = JC42_DEV_PM_OPS,