From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262597AbVAPTp3 (ORCPT ); Sun, 16 Jan 2005 14:45:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262591AbVAPTp3 (ORCPT ); Sun, 16 Jan 2005 14:45:29 -0500 Received: from smtp-100-sunday.noc.nerim.net ([62.4.17.100]:46353 "EHLO mallaury.noc.nerim.net") by vger.kernel.org with ESMTP id S262594AbVAPToA (ORCPT ); Sun, 16 Jan 2005 14:44:00 -0500 Date: Sun, 16 Jan 2005 20:46:30 +0100 From: Jean Delvare To: Greg KH Cc: LKML , LM Sensors Subject: [PATCH 2.6] I2C: Kill i2c_client.id (4/5) Message-Id: <20050116204630.7296f884.khali@linux-fr.org> In-Reply-To: <20050116194653.17c96499.khali@linux-fr.org> References: <20050116194653.17c96499.khali@linux-fr.org> X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > (4/5) Deprecate i2c_client.id. Now that i2c_client.id has no more users in the kernel (none that I could find at least) we could remove that struct member. I however think that it's better to only deprecate it at the moment, in case I missed users or any of the other patches are delayed for some reason. We could then delete the id member definitely in a month or so. Signed-off-by: Jean Delvare diff -ruN linux-2.6.11-rc1.orig/include/linux/i2c.h linux-2.6.11-rc1/include/linux/i2c.h --- linux-2.6.11-rc1.orig/include/linux/i2c.h 2004-12-24 22:34:01.000000000 +0100 +++ linux-2.6.11-rc1/include/linux/i2c.h 2005-01-16 18:41:51.000000000 +0100 @@ -144,7 +144,7 @@ * function is mainly used for lookup & other admin. functions. */ struct i2c_client { - int id; + __attribute__ ((deprecated)) int id; unsigned int flags; /* div., see below */ unsigned int addr; /* chip address - NOTE: 7bit */ /* addresses are stored in the */ -- Jean Delvare http://khali.linux-fr.org/