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

Commit fa156844 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: mfd: Avoid wcd9335 invalid register access"

parents 377d2dff 100cac6e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1300,6 +1300,8 @@ static bool wcd9335_is_readable_register(struct device *dev, unsigned int reg)
	pg_num = reg >> 0x8;
	if (pg_num == 0x80)
		pg_num = PAGE_0X80;
	else if (pg_num >= 0xE)
		return false;

	reg_tbl = wcd9335_reg[pg_num];
	reg_offset = reg & 0xFF;