leds-regulator.c (df07cf81268192e42c4cdf91f5f4bf9aaac1b2f0) | leds-regulator.c (98ea1ea20cb7090d5ae2003c23fc8a7f14fca4c7) |
---|---|
1/* 2 * leds-regulator.c - LED class driver for regulator driven LEDs. 3 * 4 * Copyright (C) 2009 Antonio Ospite <ospite@studenti.unina.it> 5 * 6 * Inspired by leds-wm8350 driver. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 126 unchanged lines hidden (view full) --- 135 enum led_brightness value) 136{ 137 struct regulator_led *led = to_regulator_led(led_cdev); 138 139 led->value = value; 140 schedule_work(&led->work); 141} 142 | 1/* 2 * leds-regulator.c - LED class driver for regulator driven LEDs. 3 * 4 * Copyright (C) 2009 Antonio Ospite <ospite@studenti.unina.it> 5 * 6 * Inspired by leds-wm8350 driver. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 126 unchanged lines hidden (view full) --- 135 enum led_brightness value) 136{ 137 struct regulator_led *led = to_regulator_led(led_cdev); 138 139 led->value = value; 140 schedule_work(&led->work); 141} 142 |
143static int __devinit regulator_led_probe(struct platform_device *pdev) | 143static int regulator_led_probe(struct platform_device *pdev) |
144{ 145 struct led_regulator_platform_data *pdata = pdev->dev.platform_data; 146 struct regulator_led *led; 147 struct regulator *vcc; 148 int ret = 0; 149 150 if (pdata == NULL) { 151 dev_err(&pdev->dev, "no platform data\n"); --- 83 unchanged lines hidden --- | 144{ 145 struct led_regulator_platform_data *pdata = pdev->dev.platform_data; 146 struct regulator_led *led; 147 struct regulator *vcc; 148 int ret = 0; 149 150 if (pdata == NULL) { 151 dev_err(&pdev->dev, "no platform data\n"); --- 83 unchanged lines hidden --- |