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

Commit 96275d35 authored by himta ram's avatar himta ram Committed by Gerrit - the friendly Code Review server
Browse files

radio: RTC6226: reduce allocated memory on stack for I2C_transfer



Allocated the actual buffer size needed to read all register
at a time using for I2C_transfer.

Change-Id: I322ed453c2f695d98686c87676961278aeee3ea7
Signed-off-by: default avatarhimta ram <hram@codeaurora.org>
parent d161d7a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ int rtc6226_get_all_registers(struct rtc6226_device *radio)
	int i;
	int err;
	u8 reg[1] = {0x00};
	u8 buf[RADIO_REGISTER_NUM * 2];
	u8 buf[RADIO_REGISTER_NUM];
	struct i2c_msg msgs1[1] = {
		{ radio->client->addr, 0, 1, reg},
	};