Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4be49b5d authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Wolfram Sang
Browse files

i2c: mxs: use true and false for boolean values



Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 7e4c9d9e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ static int mxs_i2c_dma_setup_xfer(struct i2c_adapter *adap,
	struct mxs_i2c_dev *i2c = i2c_get_adapdata(adap);

	if (msg->flags & I2C_M_RD) {
		i2c->dma_read = 1;
		i2c->dma_read = true;
		i2c->addr_data = (msg->addr << 1) | I2C_SMBUS_READ;

		/*
@@ -239,7 +239,7 @@ static int mxs_i2c_dma_setup_xfer(struct i2c_adapter *adap,
			goto read_init_dma_fail;
		}
	} else {
		i2c->dma_read = 0;
		i2c->dma_read = false;
		i2c->addr_data = (msg->addr << 1) | I2C_SMBUS_WRITE;

		/*