/* @wm831x: Device to write to. @reg: Register to write to. @val: Value to write.  */
int wm831x_reg_write(struct wm831x *wm831x, unsigned short reg, unsigned short val)
/* @wm831x: Device to write to. @reg: Register to write to. @val: Value to write.  */
int wm831x_reg_write(struct wm831x *wm831x, unsigned short reg, unsigned short val)
{
	int ret;
	mutex_lock(&wm831x->io_lock);
	ret = wm831x_write(wm831x, reg, 2, &val);
	mutex_unlock(&wm831x->io_lock);
	return ret;
}