wm97xx
struct wm97xx *wm = platform_get_drvdata(pdev);
static void wm97xx_acc_pen_up(struct wm97xx *wm)
static int wm97xx_acc_pen_down(struct wm97xx *wm)
static int wm97xx_acc_startup(struct wm97xx *wm)
static void wm97xx_acc_shutdown(struct wm97xx *wm)
struct wm97xx *wm = platform_get_drvdata(pdev);
struct wm97xx *wm = platform_get_drvdata(pdev);
static void wm9705_phy_init(struct wm97xx *wm)
static void wm9705_dig_enable(struct wm97xx *wm, int enable)
static void wm9705_aux_prepare(struct wm97xx *wm)
static void wm9705_dig_restore(struct wm97xx *wm)
static inline int is_pden(struct wm97xx *wm)
static int wm9705_poll_sample(struct wm97xx *wm, int adcsel, int *sample)
static int wm9705_poll_touch(struct wm97xx *wm, struct wm97xx_data *data)
static int wm9705_acc_enable(struct wm97xx *wm, int enable)
static void wm9712_phy_init(struct wm97xx *wm)
static void wm9712_dig_enable(struct wm97xx *wm, int enable)
static void wm9712_aux_prepare(struct wm97xx *wm)
static void wm9712_dig_restore(struct wm97xx *wm)
static inline int is_pden(struct wm97xx *wm)
static int wm9712_poll_sample(struct wm97xx *wm, int adcsel, int *sample)
static int wm9712_poll_coord(struct wm97xx *wm, struct wm97xx_data *data)
static int wm9712_poll_touch(struct wm97xx *wm, struct wm97xx_data *data)
static int wm9712_acc_enable(struct wm97xx *wm, int enable)
static void wm9713_phy_init(struct wm97xx *wm)
static void wm9713_dig_enable(struct wm97xx *wm, int enable)
static void wm9713_dig_restore(struct wm97xx *wm)
static void wm9713_aux_prepare(struct wm97xx *wm)
static inline int is_pden(struct wm97xx *wm)
static int wm9713_poll_sample(struct wm97xx *wm, int adcsel, int *sample)
static int wm9713_poll_coord(struct wm97xx *wm, struct wm97xx_data *data)
static int wm9713_poll_touch(struct wm97xx *wm, struct wm97xx_data *data)
static int wm9713_acc_enable(struct wm97xx *wm, int enable)
int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel)
enum wm97xx_gpio_status wm97xx_get_gpio(struct wm97xx *wm, u32 gpio)
void wm97xx_set_gpio(struct wm97xx *wm, u32 gpio,
void wm97xx_config_gpio(struct wm97xx *wm, u32 gpio, enum wm97xx_gpio_dir dir,
void wm97xx_set_suspend_mode(struct wm97xx *wm, u16 mode)
struct wm97xx *wm = dev_id;
static int wm97xx_init_pen_irq(struct wm97xx *wm)
static int wm97xx_read_samples(struct wm97xx *wm)
struct wm97xx *wm = container_of(work, struct wm97xx, ts_reader.work);
struct wm97xx *wm = input_get_drvdata(idev);
struct wm97xx *wm = input_get_drvdata(idev);
static int wm97xx_register_touch(struct wm97xx *wm)
static void wm97xx_unregister_touch(struct wm97xx *wm)
static int _wm97xx_probe(struct wm97xx *wm)
static void wm97xx_remove_battery(struct wm97xx *wm)
static int wm97xx_add_battery(struct wm97xx *wm,
struct wm97xx *wm;
wm = devm_kzalloc(dev, sizeof(struct wm97xx), GFP_KERNEL);
struct wm97xx *wm = dev_get_drvdata(dev);
struct wm97xx *wm;
wm = devm_kzalloc(&pdev->dev, sizeof(struct wm97xx), GFP_KERNEL);
struct wm97xx *wm = dev_get_drvdata(dev);
struct wm97xx *wm = dev_get_drvdata(dev);
int wm97xx_register_mach_ops(struct wm97xx *wm,
int wm97xx_reg_read(struct wm97xx *wm, u16 reg)
void wm97xx_unregister_mach_ops(struct wm97xx *wm)
void wm97xx_reg_write(struct wm97xx *wm, u16 reg, u16 val)
struct wm97xx_priv *wm97xx;
wm97xx = devm_kzalloc(ac97_codec_dev2dev(adev),
sizeof(*wm97xx), GFP_KERNEL);
if (!wm97xx)
wm97xx->dev = ac97_codec_dev2dev(adev);
wm97xx->ac97 = snd_ac97_compat_alloc(adev);
if (IS_ERR(wm97xx->ac97))
return PTR_ERR(wm97xx->ac97);
ac97_set_drvdata(adev, wm97xx);
dev_info(wm97xx->dev, "wm97xx core found, id=0x%x\n",
codec_pdata = &wm97xx->codec_pdata;
codec_pdata->ac97 = wm97xx->ac97;
codec_pdata->regmap = devm_regmap_init_ac97(wm97xx->ac97, config);
ret = devm_mfd_add_devices(wm97xx->dev, PLATFORM_DEVID_NONE,
snd_ac97_compat_release(wm97xx->ac97);
struct wm97xx_priv *wm97xx = ac97_get_drvdata(adev);
snd_ac97_compat_release(wm97xx->ac97);
struct wm97xx;
int (*poll_sample) (struct wm97xx *, int adcsel, int *sample);
int (*poll_touch) (struct wm97xx *, struct wm97xx_data *);
int (*acc_enable) (struct wm97xx *, int enable);
void (*phy_init) (struct wm97xx *);
void (*dig_enable) (struct wm97xx *, int enable);
void (*dig_restore) (struct wm97xx *);
void (*aux_prepare) (struct wm97xx *);
void (*acc_pen_up) (struct wm97xx *);
int (*acc_pen_down) (struct wm97xx *);
int (*acc_startup) (struct wm97xx *);
void (*acc_shutdown) (struct wm97xx *);
enum wm97xx_gpio_status wm97xx_get_gpio(struct wm97xx *wm, u32 gpio);
void wm97xx_set_gpio(struct wm97xx *wm, u32 gpio,
void wm97xx_config_gpio(struct wm97xx *wm, u32 gpio,
void wm97xx_set_suspend_mode(struct wm97xx *wm, u16 mode);
int wm97xx_reg_read(struct wm97xx *wm, u16 reg);
void wm97xx_reg_write(struct wm97xx *wm, u16 reg, u16 val);
int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel);
int wm97xx_register_mach_ops(struct wm97xx *, struct wm97xx_mach_ops *);
void wm97xx_unregister_mach_ops(struct wm97xx *);