From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753726AbcGDTTn (ORCPT ); Mon, 4 Jul 2016 15:19:43 -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 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-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.1.4