/* @wm831x: Device to read from. @reg: Register to read.  */
int wm831x_reg_read(struct wm831x *wm831x, unsigned short reg)
/* @wm831x: Device to read from. @reg: Register to read.  */
int wm831x_reg_read(struct wm831x *wm831x, unsigned short reg)
{
	unsigned short val;
	int ret;
	mutex_lock(&wm831x->io_lock);
	ret = wm831x_read(wm831x, reg, 2, &val);
	mutex_unlock(&wm831x->io_lock);
	if (ret < 0)
		return ret;
	else
		return val;
}