| Subject | Re: [PATCH v1 05/28] leds: el15203000: Correct headers (of*.h -> mod_devicetable.h) | From | Oleh Kravchenko <> | Date | Sat, 29 May 2021 00:00:23 +0300 |
| |
10.05.21 12:50, Andy Shevchenko пише: > There is no user of of*.h headers, but mod_devicetable.h. > Update header block accordingly. > > While at it, drop unneeded dependency to OF. > > Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> > --- > drivers/leds/Kconfig | 1 - > drivers/leds/leds-el15203000.c | 3 ++- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > index dcbfcd491fd0..531c79155717 100644 > --- a/drivers/leds/Kconfig > +++ b/drivers/leds/Kconfig > @@ -167,7 +167,6 @@ config LEDS_EL15203000 > tristate "LED Support for Crane EL15203000" > depends on LEDS_CLASS > depends on SPI > - depends on OF > help > This option enables support for EL15203000 LED Board > (aka RED LED board) which is widely used in coffee vending > diff --git a/drivers/leds/leds-el15203000.c b/drivers/leds/leds-el15203000.c > index bcdbbbc9c187..fcb90d7cd42f 100644 > --- a/drivers/leds/leds-el15203000.c > +++ b/drivers/leds/leds-el15203000.c > @@ -4,8 +4,9 @@ > > #include <linux/delay.h> > #include <linux/leds.h> > +#include <linux/mod_devicetable.h> > #include <linux/module.h> > -#include <linux/of_device.h> > +#include <linux/property.h> > #include <linux/spi/spi.h> > > /* >
Reviewed-by: Oleh Kravchenko <oleg@kaa.org.ua>
|