Lines Matching refs:pdev
42 struct platform_device *pdev = to_platform_device(cdev->dev->parent); in brightness_set() local
43 const struct mfd_cell *cell = mfd_get_cell(pdev); in brightness_set()
44 struct asic3 *asic = dev_get_drvdata(pdev->dev.parent); in brightness_set()
61 struct platform_device *pdev = to_platform_device(cdev->dev->parent); in blink_set() local
62 const struct mfd_cell *cell = mfd_get_cell(pdev); in blink_set()
63 struct asic3 *asic = dev_get_drvdata(pdev->dev.parent); in blink_set()
94 static int asic3_led_probe(struct platform_device *pdev) in asic3_led_probe() argument
96 struct asic3_led *led = dev_get_platdata(&pdev->dev); in asic3_led_probe()
99 ret = mfd_cell_enable(pdev); in asic3_led_probe()
103 led->cdev = devm_kzalloc(&pdev->dev, sizeof(struct led_classdev), in asic3_led_probe()
116 ret = led_classdev_register(&pdev->dev, led->cdev); in asic3_led_probe()
123 (void) mfd_cell_disable(pdev); in asic3_led_probe()
127 static int asic3_led_remove(struct platform_device *pdev) in asic3_led_remove() argument
129 struct asic3_led *led = dev_get_platdata(&pdev->dev); in asic3_led_remove()
133 return mfd_cell_disable(pdev); in asic3_led_remove()
139 struct platform_device *pdev = to_platform_device(dev); in asic3_led_suspend() local
140 const struct mfd_cell *cell = mfd_get_cell(pdev); in asic3_led_suspend()
145 ret = (*cell->suspend)(pdev); in asic3_led_suspend()
152 struct platform_device *pdev = to_platform_device(dev); in asic3_led_resume() local
153 const struct mfd_cell *cell = mfd_get_cell(pdev); in asic3_led_resume()
158 ret = (*cell->resume)(pdev); in asic3_led_resume()