Lines Matching defs:twl6040
3 * twl6040-vibra.c - TWL6040 Vibrator driver
19 #include <linux/mfd/twl6040.h>
50 struct twl6040 *twl6040;
56 struct twl6040 *twl6040 = info->twl6040;
59 status = twl6040_reg_read(twl6040, TWL6040_REG_STATUS);
62 twl6040_clear_bits(twl6040, TWL6040_REG_VIBCTLL,
67 twl6040_clear_bits(twl6040, TWL6040_REG_VIBCTLR,
76 struct twl6040 *twl6040 = info->twl6040;
85 twl6040_power(info->twl6040, 1);
86 if (twl6040_get_revid(twl6040) <= TWL6040_REV_ES1_1) {
92 twl6040_reg_write(twl6040, TWL6040_REG_VIBCTLL,
94 twl6040_reg_write(twl6040, TWL6040_REG_VIBCTLR,
99 twl6040_reg_write(twl6040, TWL6040_REG_VIBCTLL,
101 twl6040_reg_write(twl6040, TWL6040_REG_VIBCTLR,
109 struct twl6040 *twl6040 = info->twl6040;
111 twl6040_reg_write(twl6040, TWL6040_REG_VIBCTLL, 0x00);
112 twl6040_reg_write(twl6040, TWL6040_REG_VIBCTLR, 0x00);
113 twl6040_power(info->twl6040, 0);
146 struct twl6040 *twl6040 = info->twl6040;
162 twl6040_reg_write(twl6040, TWL6040_REG_VIBDATL, vibdatl);
163 twl6040_reg_write(twl6040, TWL6040_REG_VIBDATR, vibdatr);
173 ret = twl6040_get_vibralr_status(info->twl6040);
252 info->twl6040 = dev_get_drvdata(pdev->dev.parent);
288 * parent device (twl6040 MFD core)
328 info->input_dev->name = "twl6040:vibrator";
353 .name = "twl6040-vibra",
359 MODULE_ALIAS("platform:twl6040-vibra");