public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <me@felipebalbi.com>
To: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Cc: linux-omap@vger.kernel.org, sameo@openedhand.com
Subject: Re: [PATCH 4/7] Hook twl4030 power code into twl4030 core.
Date: Sat, 11 Oct 2008 21:50:36 +0300	[thread overview]
Message-ID: <20081011185036.GD20247@frodo> (raw)
In-Reply-To: <1223657776-16544-5-git-send-email-peter.de-schrijver@nokia.com>

On Fri, Oct 10, 2008 at 07:56:13PM +0300, Peter 'p2' De Schrijver wrote:
> This patch makes twl4030 core call the power code in case the scripts are present in the platform data.
> 
> Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
> ---
>  drivers/mfd/twl4030-core.c |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mfd/twl4030-core.c b/drivers/mfd/twl4030-core.c
> index fd9a016..7a5c9d0 100644
> --- a/drivers/mfd/twl4030-core.c
> +++ b/drivers/mfd/twl4030-core.c
> @@ -81,6 +81,12 @@
>  #define twl_has_madc()	false
>  #endif
>  
> +#ifdef CONFIG_TWL4030_POWER
> +#define twl_has_power()        true
> +#else
> +#define twl_has_power()        false
> +#endif
> +
>  #if defined(CONFIG_RTC_DRV_TWL4030) || defined(CONFIG_RTC_DRV_TWL4030_MODULE)
>  #define twl_has_rtc()	true
>  #else
> @@ -106,6 +112,8 @@ static inline void activate_irq(int irq)
>  #endif
>  }
>  
> +extern void twl4030_power_init(struct twl4030_power_data *triton2_scripts);

normally we avoid extern prototypes in C files. Tony and Sam, any
comments ??

> +
>  /* Primary Interrupt Handler on TWL4030 Registers */
>  
>  /* Register Definitions */
> @@ -794,6 +802,9 @@ static int add_children(struct twl4030_platform_data *pdata)
>  		}
>  	}
>  
> +	if (twl_has_power() && pdata->power)
> +		twl4030_power_init(pdata->power);
> +
>  	if (twl_has_rtc()) {
>  		twl = &twl4030_modules[3];
>  
> -- 
> 1.5.6.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
balbi

  parent reply	other threads:[~2008-10-11 18:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-10 16:56 [PATCH 0/7] Integrate the twl4030 power code into new twl4030 mfd Peter 'p2' De Schrijver
2008-10-10 16:56 ` [PATCH 1/7] Remove existing twl4030 power script code Peter 'p2' De Schrijver
2008-10-10 16:56   ` [PATCH 2/7] Add defines and data types for twl4030 Peter 'p2' De Schrijver
2008-10-10 16:56     ` [PATCH 3/7] Twl4030 power code updated for new twl4030 core Peter 'p2' De Schrijver
2008-10-10 16:56       ` [PATCH 4/7] Hook twl4030 power code into " Peter 'p2' De Schrijver
2008-10-10 16:56         ` [PATCH 5/7] 3430sdp and ldp use custom twl4030 power scripts Peter 'p2' De Schrijver
2008-10-10 16:56           ` [PATCH 6/7] Generic twl4030 power script for 3430 based boards Peter 'p2' De Schrijver
2008-10-10 16:56             ` [PATCH 7/7] omap3 evm, beagle and overo use the generic twl4030 script Peter 'p2' De Schrijver
2008-10-10 17:50               ` David Brownell
2008-10-13  8:23                 ` Peter 'p2' De Schrijver
2008-10-14 16:26                   ` David Brownell
2008-10-10 17:53           ` [PATCH 5/7] 3430sdp and ldp use custom twl4030 power scripts David Brownell
2008-10-13  8:45             ` Peter 'p2' De Schrijver
2008-10-14 16:28               ` David Brownell
2008-10-10 17:57         ` [PATCH 4/7] Hook twl4030 power code into twl4030 core David Brownell
2008-10-11 18:50         ` Felipe Balbi [this message]
2008-10-20 22:27           ` Samuel Ortiz
2008-10-11 18:49       ` [PATCH 3/7] Twl4030 power code updated for new " Felipe Balbi
2008-10-11 18:46     ` [PATCH 2/7] Add defines and data types for twl4030 Felipe Balbi
2008-10-11 18:45   ` [PATCH 1/7] Remove existing twl4030 power script code Felipe Balbi
  -- strict thread matches above, loose matches on Subject: below --
2008-10-13 15:44 [PATCH 0/7] Integrate the twl4030 power code into new twl4030 mfd Peter 'p2' De Schrijver
2008-10-13 15:44 ` [PATCH 1/7] Remove existing twl4030 power script code Peter 'p2' De Schrijver
2008-10-13 15:44   ` [PATCH 2/7] Add defines and data types for twl4030 Peter 'p2' De Schrijver
2008-10-13 15:44     ` [PATCH 3/7] Twl4030 power code updated for new twl4030 core Peter 'p2' De Schrijver
2008-10-13 15:44       ` [PATCH 4/7] Hook twl4030 power code into " Peter 'p2' De Schrijver
2008-10-14 17:42         ` David Brownell

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=20081011185036.GD20247@frodo \
    --to=me@felipebalbi.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=peter.de-schrijver@nokia.com \
    --cc=sameo@openedhand.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox