aboutsummaryrefslogtreecommitdiff
path: root/hw/p8-i2c.c
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@ieee.org>2015-02-17 15:38:52 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-19 12:20:28 +1100
commitb3749779d1c9ba4b5b1b81de3ddfa0da1b830138 (patch)
tree02673c4dc31ead4638ccd46cc1c49c70fb25ac7a /hw/p8-i2c.c
parent7f91d66a0a3b0de9e6c729f031ee9adf9cea744b (diff)
downloadskiboot-b3749779d1c9ba4b5b1b81de3ddfa0da1b830138.zip
skiboot-b3749779d1c9ba4b5b1b81de3ddfa0da1b830138.tar.gz
skiboot-b3749779d1c9ba4b5b1b81de3ddfa0da1b830138.tar.bz2
update users of GET/SETFIELD()
The last two patches updated GETFIELD() and SETFIELD() to no longer require the user to specify the mask and shift of a field, and to remove all _LSH defines and rename any _MASK defines. There are some places where the masks were used directly, where the caller needs to have the _MASK suffix removed. There are also two users of SETFIELD() where the field name still has the _MASK suffix because there is an existing macro with the base name. Change users of SETFIELD() to include the _MASK suffix where needed. Change direct users of any mask to remove the _MASK suffix. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/p8-i2c.c')
-rw-r--r--hw/p8-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/p8-i2c.c b/hw/p8-i2c.c
index 47efafd..0641062 100644
--- a/hw/p8-i2c.c
+++ b/hw/p8-i2c.c
@@ -706,7 +706,7 @@ static void p8_i2c_check_status(struct p8_i2c_master *master)
/* Mask the interrupts for this engine */
rc = xscom_write(master->chip_id, master->xscom_base + I2C_INTR_REG,
- ~I2C_INTR_ALL_MASK);
+ ~I2C_INTR_ALL);
if (rc) {
log_simple_error(&e_info(OPAL_RC_I2C_TRANSFER), "I2C: Failed "
"to disable the interrupts\n");