firmware: arm_scmi: Fix type error assignment in voltage protocol
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 15 Nov 2021 15:40:42 +0000 (15:40 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 17 Nov 2021 11:24:50 +0000 (11:24 +0000)
commit026d9835b62bba34b7e657a0bfb76717822f9319
treeb027dbd73bd6ba4582212495bbe0c881f071a304
parentbd074e5039ee16d71833a67337e2f6bf5d106b3a
firmware: arm_scmi: Fix type error assignment in voltage protocol

Fix incorrect type assignment error reported by sparse as:

drivers/firmware/arm_scmi/voltage.c:159:42: warning: incorrect type in assignment (different base types)
drivers/firmware/arm_scmi/voltage.c:159:42: expected restricted __le32 [usertype] level_index
drivers/firmware/arm_scmi/voltage.c:159:42: got unsigned int [usertype] desc_index

Link: https://lore.kernel.org/r/20211115154043.49284-1-cristian.marussi@arm.com
Fixes: 2add5cacff353 ("firmware: arm_scmi: Add voltage domain management protocol support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/voltage.c