From patchwork Fri Sep 19 18:03:39 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 654 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id D7552DE563 for ; Sat, 20 Sep 2008 04:03:54 +1000 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from buildserver.ru.mvista.com (unknown [85.21.88.6]) by ozlabs.org (Postfix) with ESMTP id DA914DDFD7 for ; Sat, 20 Sep 2008 04:03:41 +1000 (EST) Received: from localhost (unknown [10.150.0.9]) by buildserver.ru.mvista.com (Postfix) with ESMTP id D34788821; Fri, 19 Sep 2008 23:03:39 +0500 (SAMST) Date: Fri, 19 Sep 2008 22:03:39 +0400 From: Anton Vorontsov To: Jean Delvare , Ben Dooks Subject: [PATCH 1/2] i2c: expand I2C's id.name to 23 characters Message-ID: <20080919180339.GA13899@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: linuxppc-dev@ozlabs.org, i2c@lm-sensors.org X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org It was discussed[1] that we should match on the first (most specific) entry in the device tree. The most lengthy I2C compatible entry for the MPC8349E-mITX MCU devices is "mc9s08qg8-mpc8349emitx" (w/o vendor name). This means that we have to allow longer IDs to be used in the I2C subsystem. [1] http://www.mail-archive.com/linuxppc-dev@ozlabs.org/msg21196.html Signed-off-by: Anton Vorontsov diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index c4db582..9d9d1f5 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -379,7 +379,7 @@ struct virtio_device_id { /* i2c */ -#define I2C_NAME_SIZE 20 +#define I2C_NAME_SIZE 23 #define I2C_MODULE_PREFIX "i2c:" struct i2c_device_id {