[PATCH linux] add back in poll data init

OpenBMC Patches openbmc-patches at stwcx.xyz
Mon Feb 1 01:10:28 AEDT 2016


From: Norman James <njames at us.ibm.com>

Signed-off-by: Norman James <nkskjames at gmail.com>
---
 drivers/hwmon/power8_occ_i2c.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/hwmon/power8_occ_i2c.c b/drivers/hwmon/power8_occ_i2c.c
index e814ac4..c9c70d1 100644
--- a/drivers/hwmon/power8_occ_i2c.c
+++ b/drivers/hwmon/power8_occ_i2c.c
@@ -579,6 +579,8 @@ static int occ_get_all(struct i2c_client *client, struct occ_response *occ_resp)
 	int ret;
 	uint8_t poll_cmd_data;
 
+	poll_cmd_data = 0x10;
+
 	/*
 	 * TODO: fetch header, and then allocate the rest of the buffer based
 	 * on the header size. Assuming the OCC has a fixed sized header
-- 
2.6.4




More information about the openbmc mailing list