/* bsec_read_shadow() - read an otp data value from shadow @base: base address of bsec IP @val: read value @otp: otp number (0 - BSEC_OTP_MAX_VALUE) Return: 0 if no error  */
static int bsec_read_shadow(u32 base, u32 *val, u32 otp)
/* bsec_read_shadow() - read an otp data value from shadow @base: base address of bsec IP @val: read value @otp: otp number (0 - BSEC_OTP_MAX_VALUE) Return: 0 if no error  */
static int bsec_read_shadow(u32 base, u32 *val, u32 otp)
{
	*val = readl(base + BSEC_OTP_DATA_OFF + otp * sizeof(u32));
	return bsec_check_error(base, otp);
}