Skip to content

Commit

Permalink
leds: gpio: cleanup the leds-gpio driver
Browse files Browse the repository at this point in the history
Remove stray blank line and space.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
  • Loading branch information
Xiubo Li authored and Bryan Wu committed Sep 29, 2014
1 parent a823e76 commit a4c84e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/leds/leds-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct gpio_led_data {

static void gpio_led_work(struct work_struct *work)
{
struct gpio_led_data *led_dat =
struct gpio_led_data *led_dat =
container_of(work, struct gpio_led_data, work);

if (led_dat->blinking) {
Expand Down Expand Up @@ -235,14 +235,12 @@ static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
}
#endif /* CONFIG_OF_GPIO */


static int gpio_led_probe(struct platform_device *pdev)
{
struct gpio_led_platform_data *pdata = dev_get_platdata(&pdev->dev);
struct gpio_leds_priv *priv;
int i, ret = 0;


if (pdata && pdata->num_leds) {
priv = devm_kzalloc(&pdev->dev,
sizeof_gpio_leds_priv(pdata->num_leds),
Expand Down

0 comments on commit a4c84e6

Please sign in to comment.