From patchwork Mon Sep 5 20:40:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 666061 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sSjj30wMgz9s9Y for ; Tue, 6 Sep 2016 07:36:23 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=lechnology.com header.i=@lechnology.com header.b=yQXHA7Hi; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932162AbcIEVgW (ORCPT ); Mon, 5 Sep 2016 17:36:22 -0400 Received: from vern.gendns.com ([206.190.152.46]:35587 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932119AbcIEVgV (ORCPT ); Mon, 5 Sep 2016 17:36:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=enC35w8TiC3eK2RjQcE3I8cbeYHZwnZiY8o9Wlq80Qw=; b=yQXHA7Hi2i66pXxFS3KRFknyS /B8H1l+U3x+cDxYhvxvr1FJkxRPjIM/lnVNLMxTsXixQWPtuI1OKvCQpm4khFN0i63q+x+TWVflRc lkCRpurct5N9S8ZmsSsgaJUit1rOjBk3zp13sWJChNvkRz2J4prEB/zS5LfXn09ALB4pDXp1h9O9/ NUYT3iIYkZ9UcM5LlhTmmYAXS65AD85/N2GVLtxFi4cGHAnVadzk5Jmy3ZbSQjC6qVe3/Yeq2UQZW 6zoj30fr2iT0CS3I9+pJjb9g0rGWF/PzMQAb1S46ULBqLJf6m0phD0ELCOBgVe3ryPJ5zL7Xe3RZ5 2hmzQP17Q==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:55950 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.87) (envelope-from ) id 1bh0hI-002Cuf-Bz; Mon, 05 Sep 2016 16:40:52 -0400 From: David Lechner To: Wolfram Sang Cc: David Lechner , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] i2c: Add class for LEGO MINDSTORMS sensors Date: Mon, 5 Sep 2016 15:40:12 -0500 Message-Id: <1473108014-30787-2-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473108014-30787-1-git-send-email-david@lechnology.com> References: <1473108014-30787-1-git-send-email-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org LEGO MINDSTORMS (robotics system from LEGO) has a number of sensors that use I2C communications. These sensors have a well-know register layout, so they are easily detected. This class is being added so that future drivers for these sensors can be automatically detected. Signed-off-by: David Lechner --- include/linux/i2c.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index fffdc27..3eab858 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -638,6 +638,7 @@ i2c_unlock_adapter(struct i2c_adapter *adapter) #define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */ #define I2C_CLASS_SPD (1<<7) /* Memory modules */ #define I2C_CLASS_DEPRECATED (1<<8) /* Warn users that adapter will stop using classes */ +#define I2C_CLASS_LEGO (1<<9) /* LEGO MINDSTORMS sensors */ /* Internal numbers to terminate lists */ #define I2C_CLIENT_END 0xfffeU