31 May
2016
31 May
'16
7:39 p.m.
On Tue, May 31, 2016 at 11:57:41AM +0800, John Hsu wrote:
- if (!component->regmap)
return -EINVAL;
- regmap_raw_read(component->regmap, NAU8825_REG_BIQ_COF1,
ucontrol->value.bytes.data, params->max);
- return 0;
You should really check the return code from regmap, especially for larger block transfers where some controllers may have limitations.