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

Commit aacfed03 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iio: ch101: Return -ENODEV when get expander GPIO failed"

parents 52a62235 e6f2a6d5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -335,6 +335,7 @@ static int ch101_i2c_probe(struct i2c_client *client,
	if (!gpio) {
		dev_err(dev, "Error initializing expander: %s\n",
			SX1508_DEVICE_ID);
		return -ENODEV;
	}

	cbk->read_reg = read_reg;