Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756583AbbEUVHn (ORCPT ); Thu, 21 May 2015 17:07:43 -0400 Received: from mail-bl2on0145.outbound.protection.outlook.com ([65.55.169.145]:4968 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755340AbbEUVHm (ORCPT ); Thu, 21 May 2015 17:07:42 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yorksun@freescale.com; Message-ID: <555E4913.9070805@freescale.com> Date: Thu, 21 May 2015 14:07:31 -0700 From: York Sun User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Lee Jones CC: , Subject: I2C class bitmask Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.88.168.50] X-ClientProxiedBy: CY1PR14CA0018.namprd14.prod.outlook.com (25.163.13.156) To BLUPR03MB149.namprd03.prod.outlook.com (10.255.212.17) X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB149;2:NaMXrHRQQ0SoHA+gHcHuVW/tZGIvrJ90YM/boObjTx8hCOZ2ECXLYlM00pI2F2jP;2:AWEWs4iTwA6sbcMJB9aGFJpwNw4QPmHBDvXSe482MvUIzQiaYtuS17rvEg3In9ftNLvdtIhrvV+nnpJucqBb5wy4rSh2LKYnsXZNqvoGzVcXeQ4Td8eo9Gse3Xc9f3gQpVdG5EXGYB4nsxKXDjGFpg==;6:xkMM178QHr6/geiGXitQuQnIuH0EJMMdkxSstNyK3EuH68loJLt2ZbxSQdjoAh7xk8Sb0jFNXTigi7SncoUsh058jWBOsISJZHoySbFb6r4ZEwczWyNAlXBwji2A1e3MSBSb98nLtCYl/9oZUB2CiM0clbb3J3M9SGU4D0D42VUWiZEzXLHqFpi0G1ZpYdKWbPNAlPx75KdZzcvzBXJuWPv6QgepZ7Y6LgT/sFJAv35nG7yDd1d361ycsA3u6mIDytoLC31gGl4mXcSBgfd67IuT17oUzdp1zlwgW4mebJcmIxBmRE6+SnLCu+HQtRH9P+2Gcebs5ff+AjSScGx4F+kwR34DUr4ablmv7gx9yPfPf0LUy2TxtVUpZpkq5Tsuuqlid+IbPzYU5y2QU4tNjG5RSsXCdwTiw2ap604YYxNVoEqYJNUwbTwQa1Elcpn+tEq5YUGjTD1xYrhN6gN2iB9FduezWyfbWBgGpoamNeTSp1jHHWy8k/sdq+ZBXF3olP5tI9gEUSGVie+/sA1/2aNRybOk5W+pOskXx6Bpb9pd18tPUbXI6HAOTfC4Phzk/QN9rpiT/GNW0gjKzEaTOzBXNiYncaTprDWN90oXnCA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB149;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB487; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BLUPR03MB149;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB149; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB149;3:LGiGiXtY9Kgcr8FqBCU4f1GruaTlrzTF81HRuVkaLpvXQ1D7u7IeQpGimI/F/XeVS4HFe/GJr2ulYGGziNuQuWHXvCTM4fWdtJFLUsbAGdoMhA0tPDYplRnU7w2ZUaM+EkdBv/Bg+i+rLa+OqyxMhbkerAlQDTkD5Qer1LjAxyCMDYp+8hMLIwrX6UMqImnSNPUiEcBPwijMHkJXEtn2Cp+O7br54gqbx/BWtMiguJRW0bLqIL6G3uNMLW9MehiWLSKAhRGlwhpZoU3gsgzRb2UVYt7xkQzEcGcqVk6wOGU= X-Forefront-PRVS: 0583A86C08 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(979002)(6049001)(6009001)(189002)(199003)(92566002)(42186005)(105586002)(50986999)(87266999)(54356999)(101416001)(68736005)(65816999)(50466002)(77096005)(36756003)(5001830100001)(110136002)(5001860100001)(81156007)(5001960100002)(97736004)(189998001)(40100003)(65956001)(4001350100001)(33656002)(4001540100001)(47776003)(64706001)(80316001)(86362001)(59896002)(65806001)(62966003)(77156002)(229853001)(66066001)(122386002)(46102003)(23676002)(106356001)(64126003)(83506001)(87976001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB149;H:[10.214.84.151];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjAzTUIxNDk7OTpyS3VOcVJnZS83c3lSUW9md1lPOXNaOFF2bW1C?= =?utf-8?B?TkJydVpiWHRSRmdlQmNFUGt3TlM0bGoxSitZalVVVDBXYU9vTTkyRmhpQ1E5?= =?utf-8?B?UVdpUCtrc2FQMkNYSHBXMzFpa2NKRmJKQlVFYVJkdjdwWUFYczA0SlBCcFdx?= =?utf-8?B?ajlPeVIwUVUySjZYQUFrM1RyeHRUUTBidnVibGFFczRqMUdvOVhXeWlveVlB?= =?utf-8?B?ZmZhMklFR0RKUXpFeG8wcVc4S1lnZkF1Y1krTVRZOW9Lb0l3M2RjSEpGYWdG?= =?utf-8?B?Ty9ib3A0R0pJN0FodmlVWjh4YjFJQ1pncXVucFFUSFpqK2tEcnJmTG1jTktC?= =?utf-8?B?M25SeGt6Y2FPcUIzTDRYZzQ2Z3Z6OHZYUm9qU3lzTko4SDRCMmNxaFVBZk9W?= =?utf-8?B?UjlaQm04OFNYR292Z0RKbUg3N1FjRnRnY3BvVmpBRG5PaE1oVVY2NFBwUTk2?= =?utf-8?B?aFpVOGc3eUdYaWdxR0t4cS9kSEJOS2t2RFNJSldINHFiY2hEOHpDQ0dycTkw?= =?utf-8?B?dGtVUGVKcmdVTDZoZDBENnM3WVVKenB6NzBkSkpjL2dsd216OXlQL0FhM2xs?= =?utf-8?B?UWVRUjg2T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tF?= =?utf-8?B?c0lGOXh0UDNucGJjZFZtcFpJNXEzSUxDU0hQTmkyNEdzaFdLV3BxUHNoTXJa?= =?utf-8?B?ZEhoRndlZWQ5dXlQNjk4M2VqdU52dEJVRXpHVU84T3F6REU2dVRkTFVRRCtY?= =?utf-8?B?dWRrcmJMdmpWUmc4NWp5SFY4R3dxN3pKWSs2TkMwYk4weDNaT25HQjdOZ3Nu?= =?utf-8?Q?ut5p9IAKdlAj7A9o=3D?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB149;3:JXrISRVYormrcwoaNi6kL+86UuAPnnX8gehNLd87tRmW8h+Adhaycxp1emJY1RNHJRVv/VXBQhu4Vk1HB4yDv4JCMCZcJhZyLHYzVfabOVrfK0dEGKeXditA7v8XtPJw7BBt/c4LwBTQQwHxREdA6g==;10:9KcD6E8OQOL1q2pr9hZi8Q0P7OCXYOLV8xxuewfTeqbOr+tJhmOo6aZcJO2MbaNTpti3d2nNovz9B0XcEvHBt/LvhyV1zHmdWqtbgs1PG74=;6:5by9h2ZmPXsu/qoYtFoOxY92Nwm1wM/V136Q/lr2P76v9wFcXf/TMn1CtAzOx2k7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2015 21:07:36.9727 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB149 X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB487;2:E8lj9i86g5lHBhwejdB//xh2TG//ePp8LzaEde00kJzvV3eQ33gZDe7OYQ4i1irb;2:iMbWh1E10nGartbVc0m3DjNYsTvZIibv2eob9qH7d3+dJMsHF2n0Z2BR4h7/3KG1AczL/O4qmhMFoSYyRNSu5UDEE0ktzXQheRKlxsjO+K1Ku36Q8pjo/CSQChmTg7zYKyFe/rHIdxVRk+L5FX9ATQ==;9:eDwnK6ZYz/m3NRbfBgjQFidm0/kZRL8PQ2ukP+rpCsyP8GGFkW59fKEm7S6AZmvctn+REJMGA1EqfrdOm/j38aiQ8POkdSHP7WWrypFO4YguLYiTLE24EcDFrS6IebyDbgb2Vh5ypjAVVTLVGPs6uQ== X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 688 Lines: 18 Lee, Is there any convention regarding I2C class bitmask? I see only three are defined for 3.12.19 and four for 4.0 I2C_CLASS_HWMON, I2C_CLASS_DDC, I2C_CLASS_SPD, I2C_CLASS_DEPRECATED I am working on a clock chip driver (SI5338) and trying to detect them (multiple chips in i2c mux). It would be a lot easier to have its own class, like I2C_CLASS_CLOCK. It is trivial to add a line to i2c.h file. Just checking if this is a bad idea. York -- 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/