From 38b393fec298569c8ec154c750a107299bc8385d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Beh=C3=BAn?= Date: Sun, 20 Sep 2020 00:15:36 +0200 Subject: [PATCH] leds: tca6507: Absorb platform data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The only in-tree usage of this driver is via device-tree. No on else includes linux/leds-tca6507.h, so absorb the definition of platdata structure. Signed-off-by: Marek Behún Cc: NeilBrown Reviewed-by: Linus Walleij Tested-by: H. Nikolaus Schaller Signed-off-by: Pavel Machek --- drivers/leds/leds-tca6507.c | 11 ++++++++++- include/linux/leds-tca6507.h | 21 --------------------- 2 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 include/linux/leds-tca6507.h diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c index a7e9fd85b6dd..b5b5bafe2176 100644 --- a/drivers/leds/leds-tca6507.c +++ b/drivers/leds/leds-tca6507.c @@ -95,7 +95,6 @@ #include #include #include -#include #include /* LED select registers determine the source that drives LED outputs */ @@ -108,6 +107,16 @@ #define TCA6507_LS_BLINK0 0x6 /* Blink at Bank0 rate */ #define TCA6507_LS_BLINK1 0x7 /* Blink at Bank1 rate */ +struct tca6507_platform_data { + struct led_platform_data leds; +#ifdef CONFIG_GPIOLIB + int gpio_base; + void (*setup)(unsigned gpio_base, unsigned ngpio); +#endif +}; + +#define TCA6507_MAKE_GPIO 1 + enum { BANK0, BANK1, diff --git a/include/linux/leds-tca6507.h b/include/linux/leds-tca6507.h deleted file mode 100644 index 50d330ed1100..000000000000 --- a/include/linux/leds-tca6507.h +++ /dev/null @@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * TCA6507 LED chip driver. - * - * Copyright (C) 2011 Neil Brown - */ - -#ifndef __LINUX_TCA6507_H -#define __LINUX_TCA6507_H -#include - -struct tca6507_platform_data { - struct led_platform_data leds; -#ifdef CONFIG_GPIOLIB - int gpio_base; - void (*setup)(unsigned gpio_base, unsigned ngpio); -#endif -}; - -#define TCA6507_MAKE_GPIO 1 -#endif /* __LINUX_TCA6507_H*/ -- 2.39.5