leds: gpio: add helper cdev_to_gpio_led_data
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 14 Sep 2016 18:55:00 +0000 (20:55 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 15 Sep 2016 14:49:40 +0000 (16:49 +0200)
commit4580809436fc391aff9d876a14d07f66a5de6b28
tree9b67c6bf62acf0df033a8dea2ba9b1f43f40f747
parent061b5c1d013a94af385ba8980ea3b2617f1ff0f6
leds: gpio: add helper cdev_to_gpio_led_data

Add a helper for the container_of as it's used more than once.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-gpio.c