board: stm32mp1: update command stboard on misc_write result
Update management of misc_write, which now return length of data
after the commit 8729b1ae2c ("misc: Update read() and write()
methods to return bytes xfered")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
			
			
This commit is contained in:
		
							parent
							
								
									2738f0edea
								
							
						
					
					
						commit
						16aa3e3fdc
					
				|  | @ -125,7 +125,7 @@ static int do_stboard(cmd_tbl_t *cmdtp, int flag, int argc, | ||||||
| 	ret = misc_write(dev, STM32_BSEC_OTP(BSEC_OTP_BOARD), | 	ret = misc_write(dev, STM32_BSEC_OTP(BSEC_OTP_BOARD), | ||||||
| 			 &otp, sizeof(otp)); | 			 &otp, sizeof(otp)); | ||||||
| 
 | 
 | ||||||
| 	if (ret) { | 	if (ret < 0) { | ||||||
| 		puts("BOARD programming error\n"); | 		puts("BOARD programming error\n"); | ||||||
| 		return CMD_RET_FAILURE; | 		return CMD_RET_FAILURE; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue