From: Samuel Ortiz <sameo@linux.intel.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Liam Girdwood <lrg@ti.com>, Tony Lindgren <tony@atomide.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-input@vger.kernel.org, linux-omap@vger.kernel.org,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
Misael Lopez Cruz <misael.lopez@ti.com>
Subject: Re: [PATCH v6 08/18] mfd: twl6040: Add initial support
Date: Mon, 4 Jul 2011 13:48:44 +0200 [thread overview]
Message-ID: <20110704114844.GA3021@sortiz-mobl> (raw)
In-Reply-To: <1308663556-29120-9-git-send-email-peter.ujfalusi@ti.com>
Hi Peter,
On Tue, Jun 21, 2011 at 04:39:06PM +0300, Peter Ujfalusi wrote:
> +int twl6040_is_powered(struct twl6040 *twl6040)
> +{
> + return twl6040->power_count;
> +}
> +EXPORT_SYMBOL(twl6040_is_powered);
Do we really need to export this one ?
> +static inline int twl6040_get_rev(struct twl6040 *twl6040)
> +{
> + return twl6040->rev;
> +}
> +
> +static inline int twl6040_request_irq(struct twl6040 *twl6040, int irq,
> + irq_handler_t handler,
> + unsigned long irqflags,
> + const char *name,
> + void *data)
> +{
> + if (!twl6040->irq_base)
> + return -EINVAL;
> +
> + return request_threaded_irq(twl6040->irq_base + irq, NULL, handler,
> + irqflags, name, data);
> +}
> +
> +static inline void twl6040_free_irq(struct twl6040 *twl6040, int irq,
> + void *data)
> +{
> + if (!twl6040->irq_base)
> + return;
> +
> + free_irq(twl6040->irq_base + irq, data);
> +}
I don't see the value of those 3 inline functions. Removing them would make
the code actually more understandable (especially for the 2nd one).
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
next prev parent reply other threads:[~2011-07-04 11:48 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 13:38 [PATCH v6 00/18] MFD/ASoC/Input: TWL4030/TWL60X0 changes Peter Ujfalusi
2011-06-21 13:38 ` Peter Ujfalusi
2011-06-21 13:38 ` [PATCH v6 01/18] OMAP: New twl-common for common TWL configuration Peter Ujfalusi
2011-06-21 13:38 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 02/18] OMAP4: Move common twl6030 configuration to twl-common Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 03/18] OMAP3: Move common twl " Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 04/18] OMAP3: Move common regulator " Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 05/18] MFD: twl4030-codec: Rename internals from codec to audio Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 06/18] MFD: twl4030-codec -> twl4030-audio: Rename the driver Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 07/18] MFD: twl4030-audio: Rename platform data Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 08/18] mfd: twl6040: Add initial support Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-07-04 11:48 ` Samuel Ortiz [this message]
2011-07-04 13:11 ` Péter Ujfalusi
2011-07-04 13:11 ` Péter Ujfalusi
2011-07-04 14:08 ` Péter Ujfalusi
2011-07-04 14:08 ` Péter Ujfalusi
2011-07-04 17:39 ` Samuel Ortiz
2011-07-04 17:39 ` Samuel Ortiz
2011-07-05 9:28 ` Péter Ujfalusi
2011-07-05 9:28 ` Re: " Péter Ujfalusi
2011-07-04 12:53 ` Felipe Balbi
2011-07-04 13:09 ` Péter Ujfalusi
2011-07-04 13:09 ` Péter Ujfalusi
2011-07-04 13:27 ` Felipe Balbi
2011-06-21 13:39 ` [PATCH v6 09/18] ASoC: twl6040: Convert into TWL6040 MFD child Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 10/18] MFD: twl6040: Change platform data for soc codec driver Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 11/18] input: Add initial support for TWL6040 vibrator Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 20:32 ` Dmitry Torokhov
2011-06-22 11:37 ` Péter Ujfalusi
2011-06-22 11:37 ` Péter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 12/18] OMAP4: SDP4430: Add twl6040 vibrator platform support Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 13/18] ASoC: twl6040: add all ABE DAIs Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 14/18] ASoC: twl6040: Support other sample rates in constraints Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 15/18] ASoC: twl6040: Remove pll and headset mode dependency Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 17:35 ` Mark Brown
2011-06-22 11:39 ` Péter Ujfalusi
2011-06-22 11:39 ` Péter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 16/18] ASoC: twl6040: set default constraints Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-21 13:39 ` [PATCH v6 17/18] ASoC: twl6040: Configure ramp step based on platform Peter Ujfalusi
2011-06-21 13:39 ` Peter Ujfalusi
2011-06-22 11:25 ` [PATCH v6 18/18] OMAP4: SDP4430: Add twl6040 codec platform support Peter Ujfalusi
2011-06-22 11:25 ` Peter Ujfalusi
2011-06-27 9:43 ` [PATCH v6 00/18] MFD/ASoC/Input: TWL4030/TWL60X0 changes Péter Ujfalusi
2011-06-27 9:43 ` Péter Ujfalusi
2011-06-27 10:18 ` Tony Lindgren
2011-06-27 10:18 ` Tony Lindgren
2011-06-27 14:30 ` Péter Ujfalusi
2011-06-27 14:30 ` Péter Ujfalusi
2011-06-28 6:17 ` Tony Lindgren
2011-06-28 6:17 ` Tony Lindgren
2011-06-28 6:44 ` Péter Ujfalusi
2011-06-28 6:44 ` Re: " Péter Ujfalusi
2011-06-28 6:50 ` Tony Lindgren
2011-06-28 6:50 ` Re: " Tony Lindgren
2011-07-04 11:51 ` Samuel Ortiz
2011-07-04 11:51 ` Samuel Ortiz
2011-06-30 6:15 ` Péter Ujfalusi
2011-06-30 6:15 ` Re: [alsa-devel] " Péter Ujfalusi
2011-06-30 8:04 ` Samuel Ortiz
2011-06-30 8:04 ` Samuel Ortiz
2011-06-30 9:41 ` Péter Ujfalusi
2011-06-30 9:41 ` Péter Ujfalusi
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=20110704114844.GA3021@sortiz-mobl \
--to=sameo@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=lrg@ti.com \
--cc=misael.lopez@ti.com \
--cc=peter.ujfalusi@ti.com \
--cc=tony@atomide.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.