Lines Matching refs:wm831x
29 struct wm831x *wm831x; member
36 struct wm831x *wm831x = isink->wm831x; in wm831x_isink_enable() local
40 ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_ENA, in wm831x_isink_enable()
46 ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_DRIVE, in wm831x_isink_enable()
49 wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_ENA, 0); in wm831x_isink_enable()
58 struct wm831x *wm831x = isink->wm831x; in wm831x_isink_disable() local
61 ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_DRIVE, 0); in wm831x_isink_disable()
65 ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_ENA, 0); in wm831x_isink_disable()
76 struct wm831x *wm831x = isink->wm831x; in wm831x_isink_is_enabled() local
79 ret = wm831x_reg_read(wm831x, isink->reg); in wm831x_isink_is_enabled()
112 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); in wm831x_isink_probe() local
113 struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); in wm831x_isink_probe()
130 isink->wm831x = wm831x; in wm831x_isink_probe()
157 config.regmap = wm831x->regmap; in wm831x_isink_probe()
163 dev_err(wm831x->dev, "Failed to register ISINK%d: %d\n", in wm831x_isink_probe()
168 irq = wm831x_irq(wm831x, platform_get_irq(pdev, 0)); in wm831x_isink_probe()