Skip to contentSkip to conversation

I2C: i2c-dev namespace cleanup

PATCH New Mark M. Hoffman 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C: i2c-dev namespace cleanup

Hi Greg:

This patch is namespace cleanup for the i2c-dev module. Please apply.

Signed-off-by Mark M. Hoffman <[email protected]>

Index: linux-2.6.11-rc2/drivers/i2c/i2c-dev.c
=================================--- linux-2.6.11-rc2.orig/drivers/i2c/i2c-dev.c 2005-01-22 13:00:43.000000000 -0500
+++ linux-2.6.11-rc2/drivers/i2c/i2c-dev.c 2005-01-22 13:00:52.000000000 -0500
@@ -55,7 +55,7 @@ struct i2c_dev {
static struct i2c_dev *i2c_dev_array[I2C_MINORS]; static DEFINE_SPINLOCK(i2c_dev_array_lock);

-struct i2c_dev *i2c_dev_get_by_minor(unsigned index) +static struct i2c_dev *i2c_dev_get_by_minor(unsigned index)
{
struct i2c_dev *i2c_dev;

@@ -65,7 +65,7 @@ struct i2c_dev *i2c_dev_get_by_minor(uns
return i2c_dev;
}

-struct i2c_dev *i2c_dev_get_by_adapter(struct i2c_adapter *adap) +static struct i2c_dev *i2c_dev_get_by_adapter(struct i2c_adapter *adap)
{
struct i2c_dev *i2c_dev = NULL;

@@ -173,8 +173,8 @@ static ssize_t i2cdev_write (struct file
return ret;
}

-int i2cdev_ioctl (struct inode *inode, struct file *file, unsigned int cmd,
- unsigned long arg)
+static int i2cdev_ioctl(struct inode *inode, struct file *file,
+ unsigned int cmd, unsigned long arg)
{
struct i2c_client *client = (struct i2c_client *)file->private_data; struct i2c_rdwr_ioctl_data rdwr_arg;

Signature · 2 lines
Mark M. Hoffman
[email protected]
#1 lore raw

PATCH 1/1 I2C: i2c-dev namespace cleanup

Quoted 3 lines · Mark M. Hoffman

Hi Greg:

This patch is namespace cleanup for the i2c-dev module. Please apply.

Nice. Applied, thanks.

greg k-h