From: Samuel Ortiz <sameo@linux.intel.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org,
Andrew Morton <akpm@linux-foundation.org>,
Alberto Panizzo <maramaopercheseimorto@gmail.com>,
Sascha Hauer <s.hauer@pengutronix.de>
Subject: Re: [PATCH 1/2] mfd/mc13783: new function exposing flags
Date: Mon, 2 Aug 2010 12:01:43 +0200 [thread overview]
Message-ID: <20100802100142.GB3334@sortiz-mobl> (raw)
In-Reply-To: <1280740459-11500-1-git-send-email-u.kleine-koenig@pengutronix.de>
Hi Uwe,
On Mon, Aug 02, 2010 at 11:14:17AM +0200, Uwe Kleine-König wrote:
> This is needed for the mc13783-adc driver to decide if a touch screen is
> connected. If so some channels are not available as generic hwmon inputs.
Looks good to me, applied to my for-next branch.
Now that we're at it, could we then move mc13783-private.h from include/linux/
to driver/mfd ?
Cheers,
Samuel.
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> drivers/mfd/mc13783-core.c | 6 ++++++
> include/linux/mfd/mc13783.h | 2 ++
> 2 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mfd/mc13783-core.c b/drivers/mfd/mc13783-core.c
> index ead84e4..a4fa191 100644
> --- a/drivers/mfd/mc13783-core.c
> +++ b/drivers/mfd/mc13783-core.c
> @@ -226,6 +226,12 @@ int mc13783_reg_rmw(struct mc13783 *mc13783, unsigned int offset,
> }
> EXPORT_SYMBOL(mc13783_reg_rmw);
>
> +int mc13783_get_flags(struct mc13783 *mc13783)
> +{
> + return mc13783->flags;
> +}
> +EXPORT_SYMBOL(mc13783_get_flags);
> +
> int mc13783_irq_mask(struct mc13783 *mc13783, int irq)
> {
> int ret;
> diff --git a/include/linux/mfd/mc13783.h b/include/linux/mfd/mc13783.h
> index 4a894f6..0fa44fb 100644
> --- a/include/linux/mfd/mc13783.h
> +++ b/include/linux/mfd/mc13783.h
> @@ -21,6 +21,8 @@ int mc13783_reg_write(struct mc13783 *mc13783, unsigned int offset, u32 val);
> int mc13783_reg_rmw(struct mc13783 *mc13783, unsigned int offset,
> u32 mask, u32 val);
>
> +int mc13783_get_flags(struct mc13783 *mc13783);
> +
> int mc13783_irq_request(struct mc13783 *mc13783, int irq,
> irq_handler_t handler, const char *name, void *dev);
> int mc13783_irq_request_nounmask(struct mc13783 *mc13783, int irq,
> --
> 1.7.1
>
--
Intel Open Source Technology Centre
http://oss.intel.com/
prev parent reply other threads:[~2010-08-02 10:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 9:14 [PATCH 1/2] mfd/mc13783: new function exposing flags Uwe Kleine-König
2010-08-02 9:14 ` [PATCH 2/2] hwmon/mc13783-adc: don't access struct mc13783 directly Uwe Kleine-König
2010-08-02 10:04 ` Samuel Ortiz
2010-08-02 12:52 ` Uwe Kleine-König
2010-08-02 13:48 ` [PATCH 3/2] mfd/mc13783: get rid of now unused private header Uwe Kleine-König
2010-08-03 10:10 ` Samuel Ortiz
2010-08-02 10:01 ` Samuel Ortiz [this message]
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=20100802100142.GB3334@sortiz-mobl \
--to=sameo@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=maramaopercheseimorto@gmail.com \
--cc=s.hauer@pengutronix.de \
--cc=u.kleine-koenig@pengutronix.de \
/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