summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/s626.h
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2013-10-08 19:06:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-11 15:34:19 -0700
commitd5512f5b5b58e7ae47045315ade7df8873617992 (patch)
tree8e203ca156302dc2a47b69f20af2c8c36ef2e40a /drivers/staging/comedi/drivers/s626.h
parente6132fc9ad90045f676f1838360af5a6bd789ecd (diff)
staging: comedi: s626: remove I2CR and I2CW macros
The `I2CR` and `I2CW` macros expand to the I2C read and write addresses, respectively. They are only used in one place each and include the name of a local variable `devpriv` in their expansion. Get rid of the macros and expand them in place. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/s626.h')
-rw-r--r--drivers/staging/comedi/drivers/s626.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/s626.h b/drivers/staging/comedi/drivers/s626.h
index f7ed4af51a95..939b3592bfcd 100644
--- a/drivers/staging/comedi/drivers/s626.h
+++ b/drivers/staging/comedi/drivers/s626.h
@@ -384,12 +384,6 @@
#define I2C_ATTRSTOP 0x1 /* I2C attribute STOP. */
#define I2C_ATTRNOP 0x0 /* I2C attribute NOP. */
-/* I2C read command | EEPROM address. */
-#define I2CR (devpriv->I2CAdrs | 1)
-
-/* I2C write command | EEPROM address. */
-#define I2CW (devpriv->I2CAdrs)
-
/* Code macros used for constructing I2C command bytes. */
#define I2C_B2(ATTR, VAL) (((ATTR) << 6) | ((VAL) << 24))
#define I2C_B1(ATTR, VAL) (((ATTR) << 4) | ((VAL) << 16))