All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rajeev kumar <rajeev-dlh.kumar@st.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Samuel Ortiz <sameo@linux.intel.com>, Liam Girdwood <lrg@ti.com>
Subject: Re: [PATCH 1/2] MFD: twl6040: Fix revision information
Date: Tue, 17 Jul 2012 12:09:44 +0530	[thread overview]
Message-ID: <500508B0.9010009@st.com> (raw)
In-Reply-To: <1342432184-12046-2-git-send-email-peter.ujfalusi@ti.com>

Hello Peter,

On 7/16/2012 3:19 PM, Peter Ujfalusi wrote:
> twl6040 ES1.1 and ES1.2 have the same revid (0x01).
> ES1.3 of twl6040 REVID is 0x02.
>
> Signed-off-by: Peter Ujfalusi<peter.ujfalusi@ti.com>
> ---
>   include/linux/mfd/twl6040.h |    4 ++--
>   sound/soc/codecs/twl6040.c  |    2 +-
>   2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h
> index 6659487..e002097 100644
> --- a/include/linux/mfd/twl6040.h
> +++ b/include/linux/mfd/twl6040.h
> @@ -161,8 +161,8 @@
>   #define TWL6040_CELLS			2
>
>   #define TWL6040_REV_ES1_0		0x00
> -#define TWL6040_REV_ES1_1		0x01
> -#define TWL6040_REV_ES1_2		0x02
> +#define TWL6040_REV_ES1_1		0x01 /* Rev ES1.1 and ES1.2 */
> +#define TWL6040_REV_ES1_3		0x02
>
>   #define TWL6040_IRQ_TH			0
>   #define TWL6040_IRQ_PLUG		1
> diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c
> index a36e9fc..2786de2 100644
> --- a/sound/soc/codecs/twl6040.c
> +++ b/sound/soc/codecs/twl6040.c
> @@ -653,7 +653,7 @@ int twl6040_get_hs_step_size(struct snd_soc_codec *codec)
>   {
>   	struct twl6040 *twl6040 = codec->control_data;
>
> -	if (twl6040_get_revid(twl6040)<  TWL6040_REV_ES1_2)
> +	if (twl6040_get_revid(twl6040)<  TWL6040_REV_ES1_3)


Instead of doing this change why not you take a #define for revision and 
  do
if (twl6040_get_revid(twl6040)<  TWL6040_REV)

~Rajeev

>   		/* For ES under ES_1.3 HS step is 2 mV */
>   		return 2;
>   	else

WARNING: multiple messages have this Message-ID (diff)
From: Rajeev kumar <rajeev-dlh.kumar@st.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>, Liam Girdwood <lrg@ti.com>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [alsa-devel] [PATCH 1/2] MFD: twl6040: Fix revision information
Date: Tue, 17 Jul 2012 12:09:44 +0530	[thread overview]
Message-ID: <500508B0.9010009@st.com> (raw)
In-Reply-To: <1342432184-12046-2-git-send-email-peter.ujfalusi@ti.com>

Hello Peter,

On 7/16/2012 3:19 PM, Peter Ujfalusi wrote:
> twl6040 ES1.1 and ES1.2 have the same revid (0x01).
> ES1.3 of twl6040 REVID is 0x02.
>
> Signed-off-by: Peter Ujfalusi<peter.ujfalusi@ti.com>
> ---
>   include/linux/mfd/twl6040.h |    4 ++--
>   sound/soc/codecs/twl6040.c  |    2 +-
>   2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h
> index 6659487..e002097 100644
> --- a/include/linux/mfd/twl6040.h
> +++ b/include/linux/mfd/twl6040.h
> @@ -161,8 +161,8 @@
>   #define TWL6040_CELLS			2
>
>   #define TWL6040_REV_ES1_0		0x00
> -#define TWL6040_REV_ES1_1		0x01
> -#define TWL6040_REV_ES1_2		0x02
> +#define TWL6040_REV_ES1_1		0x01 /* Rev ES1.1 and ES1.2 */
> +#define TWL6040_REV_ES1_3		0x02
>
>   #define TWL6040_IRQ_TH			0
>   #define TWL6040_IRQ_PLUG		1
> diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c
> index a36e9fc..2786de2 100644
> --- a/sound/soc/codecs/twl6040.c
> +++ b/sound/soc/codecs/twl6040.c
> @@ -653,7 +653,7 @@ int twl6040_get_hs_step_size(struct snd_soc_codec *codec)
>   {
>   	struct twl6040 *twl6040 = codec->control_data;
>
> -	if (twl6040_get_revid(twl6040)<  TWL6040_REV_ES1_2)
> +	if (twl6040_get_revid(twl6040)<  TWL6040_REV_ES1_3)


Instead of doing this change why not you take a #define for revision and 
  do
if (twl6040_get_revid(twl6040)<  TWL6040_REV)

~Rajeev

>   		/* For ES under ES_1.3 HS step is 2 mV */
>   		return 2;
>   	else


  reply	other threads:[~2012-07-17  6:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16  9:49 [PATCH 0/2] MFD: twl6040: Version support fixes, additions Peter Ujfalusi
2012-07-16  9:49 ` Peter Ujfalusi
2012-07-16  9:49 ` [PATCH 1/2] MFD: twl6040: Fix revision information Peter Ujfalusi
2012-07-17  6:39   ` Rajeev kumar [this message]
2012-07-17  6:39     ` [alsa-devel] " Rajeev kumar
2012-07-17 11:55     ` Gabriel M. Beddingfield
2012-07-17 11:55       ` [alsa-devel] " Gabriel M. Beddingfield
2012-07-17 13:01     ` Peter Ujfalusi
2012-07-17 13:01       ` [alsa-devel] " Peter Ujfalusi
2012-07-16  9:49 ` [PATCH 2/2] MFD: twl6040: Add support for twl6041 Peter Ujfalusi
2012-07-16  9:49   ` Peter Ujfalusi
2012-07-24 22:27 ` [PATCH 0/2] MFD: twl6040: Version support fixes, additions Samuel Ortiz

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=500508B0.9010009@st.com \
    --to=rajeev-dlh.kumar@st.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lrg@ti.com \
    --cc=peter.ujfalusi@ti.com \
    --cc=sameo@linux.intel.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.