From: Shine Liu <shinel@foxmail.com>
To: Ben Dooks <ben@simtec.co.uk>
Cc: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org,
linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Arnaud Patard <arnaud.patard@rtp-net.org>,
Simtec Linux Team <linux@simtec.co.uk>
Subject: Re: [patch 1/1] TOUCHSCREEN: S3C24XX touchscreen driver from Arnaud Patard.
Date: Thu, 19 Nov 2009 13:46:55 +0800 [thread overview]
Message-ID: <1258609615.2676.31.camel@shinel> (raw)
In-Reply-To: <20091118232948.063635416@fluff.org.uk>
Hi,Ben
Besides Dmitry's comments,
On Wed, 2009-11-18 at 23:29 +0000, Ben Dooks wrote:
> +config TOUCHSCREEN_S3C2410
> + tristate "Samsung S3C2410 touchscreen input driver"
> + depends on ARCH_S3C2410 && INPUT && INPUT_TOUCHSCREEN
> + select SERIO
> + help
> + Say Y here if you have the s3c2410 touchscreen.
> +
> + If unsure, say N.
> +
> + To compile this driver as a module, choose M here: the
> + module will be called s3c2410_ts.
S3C24XX_ADC should be added to the depends.
> +#include <linux/slab.h>
I think this is not really needed because kernel.h is included already.
> +
> + ts.clock = clk_get(dev, "adc");
> + if (IS_ERR(ts.clock)) {
> + dev_err(dev, "cannot get adc clock source\n");
> + return -ENOENT;
> + }
> +
> + clk_enable(ts.clock);
> + dev_dbg(dev, "got and enabled clocks\n");
Well, we take 2410_ts as s3c adc client, so these work has been done in
s3c_adc_probe function of arch/arm/plat-s3c24xx.c
This should be duplicated.
And "#include <linux/clk.h>" is not needed because we don't use these
APIs
> + err_clk:
> + clk_put(ts.clock);
> + return ret;
> +}
Above reason and also for those "goto err_clk;"
> );
> +
> + clk_disable(ts.clock);
> + clk_put(ts.clock);
Same as above
> +
> +#ifdef CONFIG_PM
> +static int s3c2410ts_suspend(struct platform_device *pdev, pm_message_t state)
> +{
> + writel(TSC_SLEEP, ts.io + S3C2410_ADCTSC);
> + disable_irq(ts.irq_tc);
Same as above
> +
> +static int s3c2410ts_resume(struct platform_device *pdev)
> +{
> + struct s3c2410_ts_mach_info *info = pdev->dev.platform_data;
> +
> + clk_enable(ts.clock);
Same as above
Cheers,
Shine
next prev parent reply other threads:[~2009-11-19 5:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20091118232939.201290297@fluff.org.uk>
2009-11-18 23:29 ` [patch 1/1] TOUCHSCREEN: S3C24XX touchscreen driver from Arnaud Patard Ben Dooks
2009-11-19 1:45 ` Ramax Lo
2009-11-19 2:59 ` Dmitry Torokhov
2009-11-19 5:47 ` Harald Welte
2009-11-19 6:15 ` Shine Liu
2009-11-19 11:34 ` Ben Dooks
2009-11-19 13:52 ` Daniel Silverstone
2009-11-19 17:03 ` Dmitry Torokhov
2009-11-19 17:12 ` Russell King - ARM Linux
2009-11-19 17:48 ` Ben Dooks
2009-11-19 17:14 ` Dmitry Torokhov
2009-11-27 7:31 ` Pavel Machek
2009-11-19 5:46 ` Shine Liu [this message]
2009-11-19 10:37 ` Mark Brown
2009-11-19 12:06 ` Ben Dooks
2009-11-19 8:04 ` Vasily Khoruzhick
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=1258609615.2676.31.camel@shinel \
--to=shinel@foxmail.com \
--cc=arnaud.patard@rtp-net.org \
--cc=ben@simtec.co.uk \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux@simtec.co.uk \
/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;
as well as URLs for NNTP newsgroup(s).