MLK-14275: regulator: pf1550-regulator-rpmsg: clear 'u32 val' before read value by...
authorRobin Gong <yibin.gong@nxp.com>
Mon, 27 Feb 2017 08:25:00 +0000 (16:25 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:56 +0000 (15:21 -0500)
commit53ac5844abbe9d3a52840da9d252a6370659f75f
tree33f6a4603150bc79365417ca8d101d0ca07279d4
parentfa0f8c98d3a5cc0e7cee2cc2e98358feded77698
MLK-14275: regulator: pf1550-regulator-rpmsg: clear 'u32 val' before read value by rpmsg

Actually, m4 only fill the least 1byte, so we'd better clear 'val' before
reading by rpmsg, thus the gabage data will not bother us.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit df3428c6588a00fa153a3b6996cc33b21b69efb6)
drivers/regulator/pf1550-regulator-rpmsg.c