Lines Matching defs:ab8500
12 #include <linux/mfd/abx500/ab8500.h>
91 struct ab8500_pwm_chip *ab8500;
96 * device which is required for ab8500 read and write
98 ab8500 = devm_kzalloc(&pdev->dev, sizeof(*ab8500), GFP_KERNEL);
99 if (ab8500 == NULL)
102 ab8500->chip.dev = &pdev->dev;
103 ab8500->chip.ops = &ab8500_pwm_ops;
104 ab8500->chip.base = pdev->id;
105 ab8500->chip.npwm = 1;
107 err = pwmchip_add(&ab8500->chip);
112 platform_set_drvdata(pdev, ab8500);
119 struct ab8500_pwm_chip *ab8500 = platform_get_drvdata(pdev);
122 err = pwmchip_remove(&ab8500->chip);
133 .name = "ab8500-pwm",
142 MODULE_ALIAS("platform:ab8500-pwm");