mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
leds: gpio: introduce gpio_blink_set_t
Introduce a typedef gpio_blink_set_t to improve readability of the code. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Jacek Anaszewski <[email protected]>
This commit is contained in:
parent
be4fdf99fa
commit
68620e594c
2 changed files with 8 additions and 7 deletions
|
|
@ -26,8 +26,7 @@ struct gpio_led_data {
|
|||
struct gpio_desc *gpiod;
|
||||
u8 can_sleep;
|
||||
u8 blinking;
|
||||
int (*platform_gpio_blink_set)(struct gpio_desc *desc, int state,
|
||||
unsigned long *delay_on, unsigned long *delay_off);
|
||||
gpio_blink_set_t platform_gpio_blink_set;
|
||||
};
|
||||
|
||||
static void gpio_led_set(struct led_classdev *led_cdev,
|
||||
|
|
@ -74,8 +73,7 @@ static int gpio_blink_set(struct led_classdev *led_cdev,
|
|||
|
||||
static int create_gpio_led(const struct gpio_led *template,
|
||||
struct gpio_led_data *led_dat, struct device *parent,
|
||||
int (*blink_set)(struct gpio_desc *, int, unsigned long *,
|
||||
unsigned long *))
|
||||
gpio_blink_set_t blink_set)
|
||||
{
|
||||
int ret, state;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue