Message ID | 1346195937-6383-7-git-send-email-grinberg@compulab.co.il (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, 2012-08-29 at 02:18 +0300, Igor Grinberg wrote: > omap1 backlight platform data resides inside plat/board.h while it > should be inside include/linux/... > Move the omap1 backlight platform data to > include/linux/platform_data/. > > Cc: Richard Purdie <rpurdie@rpsys.net> > Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> > Cc: linux-fbdev@vger.kernel.org > Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> > --- > arch/arm/mach-omap1/board-osk.c | 1 + > arch/arm/mach-omap1/board-palmte.c | 1 + > arch/arm/mach-omap1/board-palmtt.c | 1 + > arch/arm/mach-omap1/board-palmz71.c | 1 + > arch/arm/plat-omap/include/plat/board.h | 7 ------- > drivers/video/backlight/omap1_bl.c | 2 +- > include/linux/platform_data/omap1_bl.h | 11 +++++++++++ > 7 files changed, 16 insertions(+), 8 deletions(-) > create mode 100644 include/linux/platform_data/omap1_bl.h > > diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c > index 8784705..569b687 100644 > --- a/arch/arm/mach-omap1/board-osk.c > +++ b/arch/arm/mach-omap1/board-osk.c > @@ -39,6 +39,7 @@ > #include <linux/mtd/partitions.h> > #include <linux/mtd/physmap.h> > #include <linux/i2c/tps65010.h> > +#include <linux/platform_data/omap1_bl.h> > > #include <asm/mach-types.h> > #include <asm/mach/arch.h> > diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c > index 26bcb9d..7bf00ba 100644 > --- a/arch/arm/mach-omap1/board-palmte.c > +++ b/arch/arm/mach-omap1/board-palmte.c > @@ -28,6 +28,7 @@ > #include <linux/interrupt.h> > #include <linux/apm-emulation.h> > #include <linux/omapfb.h> > +#include <linux/platform_data/omap1_bl.h> > > #include <asm/mach-types.h> > #include <asm/mach/arch.h> > diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c > index 4d09944..2cce505 100644 > --- a/arch/arm/mach-omap1/board-palmtt.c > +++ b/arch/arm/mach-omap1/board-palmtt.c > @@ -27,6 +27,7 @@ > #include <linux/omapfb.h> > #include <linux/spi/spi.h> > #include <linux/spi/ads7846.h> > +#include <linux/platform_data/omap1_bl.h> > > #include <asm/mach-types.h> > #include <asm/mach/arch.h> > diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c > index 3559803..45ab9f0 100644 > --- a/arch/arm/mach-omap1/board-palmz71.c > +++ b/arch/arm/mach-omap1/board-palmz71.c > @@ -30,6 +30,7 @@ > #include <linux/omapfb.h> > #include <linux/spi/spi.h> > #include <linux/spi/ads7846.h> > +#include <linux/platform_data/omap1_bl.h> > > #include <asm/mach-types.h> > #include <asm/mach/arch.h> > diff --git a/arch/arm/plat-omap/include/plat/board.h b/arch/arm/plat-omap/include/plat/board.h > index 5938c72..d0bc46e 100644 > --- a/arch/arm/plat-omap/include/plat/board.h > +++ b/arch/arm/plat-omap/include/plat/board.h > @@ -19,13 +19,6 @@ struct omap_lcd_config { > u8 data_lines; > }; > > -struct device; > -struct fb_info; > -struct omap_backlight_config { > - int default_intensity; > - int (*set_power)(struct device *dev, int state); > -}; > - > /* for TI reference platforms sharing the same debug card */ > extern int debug_card_init(u32 addr, unsigned gpio); > > diff --git a/drivers/video/backlight/omap1_bl.c b/drivers/video/backlight/omap1_bl.c > index bfdc5fb..92257ef 100644 > --- a/drivers/video/backlight/omap1_bl.c > +++ b/drivers/video/backlight/omap1_bl.c > @@ -27,9 +27,9 @@ > #include <linux/fb.h> > #include <linux/backlight.h> > #include <linux/slab.h> > +#include <linux/platform_data/omap1_bl.h> > > #include <mach/hardware.h> > -#include <plat/board.h> > #include <plat/mux.h> > > #define OMAPBL_MAX_INTENSITY 0xff > diff --git a/include/linux/platform_data/omap1_bl.h b/include/linux/platform_data/omap1_bl.h > new file mode 100644 > index 0000000..881a8e9 > --- /dev/null > +++ b/include/linux/platform_data/omap1_bl.h > @@ -0,0 +1,11 @@ > +#ifndef __OMAP1_BL_H__ > +#define __OMAP1_BL_H__ > + > +#include <linux/device.h> You could use struct device; here. > + > +struct omap_backlight_config { > + int default_intensity; > + int (*set_power)(struct device *dev, int state); > +}; > + > +#endif Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Tomi
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/29/12 18:04, Tomi Valkeinen wrote: > On Wed, 2012-08-29 at 02:18 +0300, Igor Grinberg wrote: >> omap1 backlight platform data resides inside plat/board.h while it >> should be inside include/linux/... >> Move the omap1 backlight platform data to >> include/linux/platform_data/. >> >> Cc: Richard Purdie <rpurdie@rpsys.net> >> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> >> Cc: linux-fbdev@vger.kernel.org >> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> >> --- >> arch/arm/mach-omap1/board-osk.c | 1 + >> arch/arm/mach-omap1/board-palmte.c | 1 + >> arch/arm/mach-omap1/board-palmtt.c | 1 + >> arch/arm/mach-omap1/board-palmz71.c | 1 + >> arch/arm/plat-omap/include/plat/board.h | 7 ------- >> drivers/video/backlight/omap1_bl.c | 2 +- >> include/linux/platform_data/omap1_bl.h | 11 +++++++++++ >> 7 files changed, 16 insertions(+), 8 deletions(-) >> create mode 100644 include/linux/platform_data/omap1_bl.h [...] >> diff --git a/include/linux/platform_data/omap1_bl.h b/include/linux/platform_data/omap1_bl.h >> new file mode 100644 >> index 0000000..881a8e9 >> --- /dev/null >> +++ b/include/linux/platform_data/omap1_bl.h >> @@ -0,0 +1,11 @@ >> +#ifndef __OMAP1_BL_H__ >> +#define __OMAP1_BL_H__ >> + >> +#include <linux/device.h> > > You could use struct device; here. Yes I know, but I don't think it is any better. > >> + >> +struct omap_backlight_config { >> + int default_intensity; >> + int (*set_power)(struct device *dev, int state); >> +}; >> + >> +#endif > > Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Thanks! - -- Regards, Igor. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJQPozJAAoJEBDE8YO64EfasmQP/2v38LY4t30rnl3jOvs6vvsa RPFFQG1lxkFTpMHMkOvb4pW/k00IHxkcv2hRrGmoBWbEJqel7b0LyEFVV+M+uCSo nCVsnd/Pu7jftCwC2Ggy2PBE16n+9I6UttN4Vsh7a8f2qwtXdOxL01xxyM7cVtn4 YQRhyVrKMiiKhNfKtvQV2V0npsVVksgnKm0K1zNRiZkTuKjZ4sJrliGYaU6B5F32 MHx31U0r1VbxZwOi9m19Ucyuf1CYvVKhlmeMop1fE4+3Dkt1708pMWOpK9iknMQU m5cA+25a7YolDIluvfXlH+7hDFZixDUd5pFeJA0llaqOv2PSHGT0kYDOTmtRyKvD D3mq22amwPlqgjXdxJMS5gckF6N3KrBjA3AHW4FpoTQjdCciiql3k+DMaRNM6Dzm WjCCZBOQHy5dSRn6HzNo2iSP+B8mANh8eoJJAoyS3JJ+ihf4hiV1PEC9jXxWTg1H M449feGQccXUfYj8pTlXtTXEk8L5x3kBlU9VMMzlA1kQN0VoFOQRhSl+UVdu2ckA SPotVgiUCUzT9x1xEoIBjrz+kLAk0bYvRv2vUflzzH8lf+/MYz4UxDikSCsifpF1 s/5evCRgSUokm1VxlFEMLiUG0gb8FJR3TylJU4CD5U9dbkel2urKoE1zfc4LyPRT ycdLeCP+C7ZcsaNApWMS =kElj -----END PGP SIGNATURE----- -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index 8784705..569b687 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c @@ -39,6 +39,7 @@ #include <linux/mtd/partitions.h> #include <linux/mtd/physmap.h> #include <linux/i2c/tps65010.h> +#include <linux/platform_data/omap1_bl.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 26bcb9d..7bf00ba 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c @@ -28,6 +28,7 @@ #include <linux/interrupt.h> #include <linux/apm-emulation.h> #include <linux/omapfb.h> +#include <linux/platform_data/omap1_bl.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c index 4d09944..2cce505 100644 --- a/arch/arm/mach-omap1/board-palmtt.c +++ b/arch/arm/mach-omap1/board-palmtt.c @@ -27,6 +27,7 @@ #include <linux/omapfb.h> #include <linux/spi/spi.h> #include <linux/spi/ads7846.h> +#include <linux/platform_data/omap1_bl.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index 3559803..45ab9f0 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c @@ -30,6 +30,7 @@ #include <linux/omapfb.h> #include <linux/spi/spi.h> #include <linux/spi/ads7846.h> +#include <linux/platform_data/omap1_bl.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> diff --git a/arch/arm/plat-omap/include/plat/board.h b/arch/arm/plat-omap/include/plat/board.h index 5938c72..d0bc46e 100644 --- a/arch/arm/plat-omap/include/plat/board.h +++ b/arch/arm/plat-omap/include/plat/board.h @@ -19,13 +19,6 @@ struct omap_lcd_config { u8 data_lines; }; -struct device; -struct fb_info; -struct omap_backlight_config { - int default_intensity; - int (*set_power)(struct device *dev, int state); -}; - /* for TI reference platforms sharing the same debug card */ extern int debug_card_init(u32 addr, unsigned gpio); diff --git a/drivers/video/backlight/omap1_bl.c b/drivers/video/backlight/omap1_bl.c index bfdc5fb..92257ef 100644 --- a/drivers/video/backlight/omap1_bl.c +++ b/drivers/video/backlight/omap1_bl.c @@ -27,9 +27,9 @@ #include <linux/fb.h> #include <linux/backlight.h> #include <linux/slab.h> +#include <linux/platform_data/omap1_bl.h> #include <mach/hardware.h> -#include <plat/board.h> #include <plat/mux.h> #define OMAPBL_MAX_INTENSITY 0xff diff --git a/include/linux/platform_data/omap1_bl.h b/include/linux/platform_data/omap1_bl.h new file mode 100644 index 0000000..881a8e9 --- /dev/null +++ b/include/linux/platform_data/omap1_bl.h @@ -0,0 +1,11 @@ +#ifndef __OMAP1_BL_H__ +#define __OMAP1_BL_H__ + +#include <linux/device.h> + +struct omap_backlight_config { + int default_intensity; + int (*set_power)(struct device *dev, int state); +}; + +#endif
omap1 backlight platform data resides inside plat/board.h while it should be inside include/linux/... Move the omap1 backlight platform data to include/linux/platform_data/. Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: linux-fbdev@vger.kernel.org Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> --- arch/arm/mach-omap1/board-osk.c | 1 + arch/arm/mach-omap1/board-palmte.c | 1 + arch/arm/mach-omap1/board-palmtt.c | 1 + arch/arm/mach-omap1/board-palmz71.c | 1 + arch/arm/plat-omap/include/plat/board.h | 7 ------- drivers/video/backlight/omap1_bl.c | 2 +- include/linux/platform_data/omap1_bl.h | 11 +++++++++++ 7 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 include/linux/platform_data/omap1_bl.h