leds-lm3533.c (df07cf81268192e42c4cdf91f5f4bf9aaac1b2f0) | leds-lm3533.c (98ea1ea20cb7090d5ae2003c23fc8a7f14fca4c7) |
---|---|
1/* 2 * leds-lm3533.c -- LM3533 LED driver 3 * 4 * Copyright (C) 2011-2012 Texas Instruments 5 * 6 * Author: Johan Hovold <jhovold@gmail.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 632 unchanged lines hidden (view full) --- 641 return mode; 642}; 643 644static struct attribute_group lm3533_led_attribute_group = { 645 .is_visible = lm3533_led_attr_is_visible, 646 .attrs = lm3533_led_attributes 647}; 648 | 1/* 2 * leds-lm3533.c -- LM3533 LED driver 3 * 4 * Copyright (C) 2011-2012 Texas Instruments 5 * 6 * Author: Johan Hovold <jhovold@gmail.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 632 unchanged lines hidden (view full) --- 641 return mode; 642}; 643 644static struct attribute_group lm3533_led_attribute_group = { 645 .is_visible = lm3533_led_attr_is_visible, 646 .attrs = lm3533_led_attributes 647}; 648 |
649static int __devinit lm3533_led_setup(struct lm3533_led *led, | 649static int lm3533_led_setup(struct lm3533_led *led, |
650 struct lm3533_led_platform_data *pdata) 651{ 652 int ret; 653 654 ret = lm3533_ctrlbank_set_max_current(&led->cb, pdata->max_current); 655 if (ret) 656 return ret; 657 658 return lm3533_ctrlbank_set_pwm(&led->cb, pdata->pwm); 659} 660 | 650 struct lm3533_led_platform_data *pdata) 651{ 652 int ret; 653 654 ret = lm3533_ctrlbank_set_max_current(&led->cb, pdata->max_current); 655 if (ret) 656 return ret; 657 658 return lm3533_ctrlbank_set_pwm(&led->cb, pdata->pwm); 659} 660 |
661static int __devinit lm3533_led_probe(struct platform_device *pdev) | 661static int lm3533_led_probe(struct platform_device *pdev) |
662{ 663 struct lm3533 *lm3533; 664 struct lm3533_led_platform_data *pdata; 665 struct lm3533_led *led; 666 int ret; 667 668 dev_dbg(&pdev->dev, "%s\n", __func__); 669 --- 116 unchanged lines hidden --- | 662{ 663 struct lm3533 *lm3533; 664 struct lm3533_led_platform_data *pdata; 665 struct lm3533_led *led; 666 int ret; 667 668 dev_dbg(&pdev->dev, "%s\n", __func__); 669 --- 116 unchanged lines hidden --- |