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

Commit fa5ce47a authored by Wolfram Sang's avatar Wolfram Sang
Browse files

i2c: brcmstb: use new 8 bit address helper function

parent 191d738d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -446,9 +446,7 @@ static int brcmstb_i2c_do_addr(struct brcmstb_i2c_dev *dev,

		}
	} else {
		addr = msg->addr << 1;
		if (msg->flags & I2C_M_RD)
			addr |= 1;
		addr = i2c_8bit_addr_from_msg(msg);

		bsc_writel(dev, addr, chip_address);
	}