From: Jingoo Han <jg1.han@samsung.com>
To: "'Thomas Abraham'" <thomas.abraham@linaro.org>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Cc: rpurdie@rpsys.net, linux-samsung-soc@vger.kernel.org,
grant.likely@secretlab.ca, rob.herring@calxeda.com,
kgene.kim@samsung.com, broonie@opensource.wolfsonmicro.com,
kyungmin.park@samsung.com, cbou@mail.ru, kwangwoo.lee@gmail.com,
augulis.darius@gmail.com, ben-linux@fluff.org, lars@metafoo.de,
patches@linaro.org
Subject: RE: [PATCH] backlight: lcd: add driver for raster-type lcd's with gpio controlled panel reset
Date: Fri, 06 Jan 2012 11:16:06 +0900 [thread overview]
Message-ID: <001401cccc19$25b52920$711f7b60$%han@samsung.com> (raw)
In-Reply-To: <1325778146-27056-1-git-send-email-thomas.abraham@linaro.org>
Hi, Thomas.
> -----Original Message-----
> From: Thomas Abraham [mailto:thomas.abraham@linaro.org]
> Sent: Friday, January 06, 2012 12:42 AM
> Subject: [PATCH] backlight: lcd: add driver for raster-type lcd's with gpio controlled panel reset
>
> Add a lcd panel driver for simple raster-type lcd's which uses a gpio
> controlled panel reset. The driver controls the nRESET line of the panel
> using a gpio connected from the host system. The Vcc supply to the panel
> is (optionally) controlled using a voltage regulator. This driver excludes
> support for lcd panels that use a serial command interface or direct
> memory mapped IO interface.
>
> Suggested-by: Lars-Peter Clausen <lars@metafoo.de>
> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
> ---
> .../devicetree/bindings/lcd/lcd-pwrctrl.txt | 39 ++++
> drivers/video/backlight/Kconfig | 7 +
> drivers/video/backlight/Makefile | 1 +
> drivers/video/backlight/lcd_pwrctrl.c | 231 ++++++++++++++++++++
> include/video/lcd_pwrctrl.h | 30 +++
> 5 files changed, 308 insertions(+), 0 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/lcd/lcd-pwrctrl.txt
> create mode 100644 drivers/video/backlight/lcd_pwrctrl.c
> create mode 100644 include/video/lcd_pwrctrl.h
>
> [...]
> --- a/drivers/video/backlight/Makefile
> +++ b/drivers/video/backlight/Makefile
> @@ -8,6 +8,7 @@ obj-$(CONFIG_LCD_LMS283GF05) += lms283gf05.o
> obj-$(CONFIG_LCD_LTV350QV) += ltv350qv.o
> obj-$(CONFIG_LCD_ILI9320) += ili9320.o
> obj-$(CONFIG_LCD_PLATFORM) += platform_lcd.o
> +obj-$(CONFIG_LCD_PWRCTRL) += lcd_pwrctrl.o
Can you remove unnecessary space?
Please use <tab><space><space><space> instead of <space><tab><space><space><space>
between PWRCTRL) and += lcd_.
> [...]
> +static struct platform_driver lcd_pwrctrl_driver = {
> + .driver = {
> + .name = "lcd-pwrctrl",
> + .owner = THIS_MODULE,
> + .of_match_table = of_match_ptr(lcd_pwrctrl_match),
> + },
> + .probe = lcd_pwrctrl_probe,
> + .remove = lcd_pwrctrl_remove,
> + .suspend = lcd_pwrctrl_suspend,
> + .resume = lcd_pwrctrl_resume,
Please use 'struct dev_pm_ops'.
> +};
> +
> +static int __init lcd_pwrctrl_init(void)
> +{
> + return platform_driver_register(&lcd_pwrctrl_driver);
> +}
> +
> +static void __exit lcd_pwrctrl_cleanup(void)
> +{
> + platform_driver_unregister(&lcd_pwrctrl_driver);
> +}
> +
> +module_init(lcd_pwrctrl_init);
> +module_exit(lcd_pwrctrl_cleanup);
Use module_platform_driver(lcd_pwrctrl_driver).
It can make the code simpler.
> [...]
next prev parent reply other threads:[~2012-01-06 2:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-05 15:42 Thomas Abraham
2012-01-05 19:07 ` Lars-Peter Clausen
2012-01-06 6:49 ` Mark Brown
2012-01-07 11:04 ` Thomas Abraham
2012-01-07 17:28 ` Mark Brown
2012-01-11 10:51 ` Thomas Abraham
2012-01-11 17:45 ` Mark Brown
2012-01-12 1:34 ` Thomas Abraham
2012-01-07 10:46 ` Thomas Abraham
2012-01-06 2:16 ` Jingoo Han [this message]
2012-01-07 10:48 ` Thomas Abraham
2012-01-06 6:46 ` Olof Johansson
2012-01-07 10:59 ` Thomas Abraham
2012-01-07 18:23 ` Russell King - ARM Linux
2012-01-07 18:32 ` Lars-Peter Clausen
2012-01-11 10:58 ` Thomas Abraham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001401cccc19$25b52920$711f7b60$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=augulis.darius@gmail.com \
--cc=ben-linux@fluff.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cbou@mail.ru \
--cc=grant.likely@secretlab.ca \
--cc=kgene.kim@samsung.com \
--cc=kwangwoo.lee@gmail.com \
--cc=kyungmin.park@samsung.com \
--cc=lars@metafoo.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=patches@linaro.org \
--cc=rob.herring@calxeda.com \
--cc=rpurdie@rpsys.net \
--cc=thomas.abraham@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®