Skip to content

Commit

Permalink
[PATCH] i2c: ID redefinition cleanups
Browse files Browse the repository at this point in the history
Fix several redefinitions of i2c IDs. i2c IDs must not be defined
outside of i2c-id.h.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Henk Vergonet <henk@god.dyndns.org>
Acked-by: Mark McClelland <mark@alpha.dyndns.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent 6344a8e commit cd19cc4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
5 changes: 0 additions & 5 deletions drivers/i2c/busses/i2c-prosavage.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ struct s_i2c_chip {
/*
* i2c configuration
*/
#ifndef I2C_HW_B_S3VIA
#define I2C_HW_B_S3VIA 0x18 /* S3VIA ProSavage adapter */
#endif

/* delays */
#define CYCLE_DELAY 10
#define TIMEOUT (HZ / 2)

Expand Down
14 changes: 0 additions & 14 deletions include/media/ovcamchip.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@
#include <linux/videodev.h>
#include <linux/i2c.h>

/* Remove these once they are officially defined */
#ifndef I2C_DRIVERID_OVCAMCHIP
#define I2C_DRIVERID_OVCAMCHIP 0xf00f
#endif
#ifndef I2C_HW_SMBUS_OV511
#define I2C_HW_SMBUS_OV511 0xfe
#endif
#ifndef I2C_HW_SMBUS_OV518
#define I2C_HW_SMBUS_OV518 0xff
#endif
#ifndef I2C_HW_SMBUS_OVFX2
#define I2C_HW_SMBUS_OVFX2 0xfd
#endif

/* --------------------------------- */
/* ENUMERATIONS */
/* --------------------------------- */
Expand Down

0 comments on commit cd19cc4

Please sign in to comment.