linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: fabio.porcedda@gmail.com (Fabio Porcedda)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 3/5] watchdog: at91sam9_wdt: add device tree support
Date: Wed, 3 Oct 2012 18:32:53 +0200	[thread overview]
Message-ID: <CAHkwnC_RUQ+hhzHAVEK5u4UUJDArKQNjEdXTzswn6cfYPWU_ew@mail.gmail.com> (raw)
In-Reply-To: <20121002195914.GG21046@lunn.ch>

On Tue, Oct 2, 2012 at 9:59 PM, Andrew Lunn <andrew@lunn.ch> wrote:
>> I was thinking to add a more generic helper function like this:
>>
>> static inline void watchdog_get_dttimeout(struct device_node *node,
>> u32 *timeout)
>> {
>>       if (node)
>>               of_property_read_u32(node, "timeout", &wdd->timeout);
>> }
>
> You forgot to change the function signature.
>
> Also, if you are adding a generic function, it should be a generic
> function for the framework. All drivers should be slowly moving
> towards the framework, so adding functions which help you not move
> towards the framework are wrong.

Maybe i can use a framework specific function and use a dummy
watchdog_device for
the non framerwork drivers.

If it's ok i will send an updated patch.

Best regards and thanks for the review.
-- 
Fabio Porcedda

  reply	other threads:[~2012-10-03 16:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 12:24 [PATCH v6 0/5] watchdog: orion_wdt & at91sam9_wdt: improve dt support Fabio Porcedda
2012-10-01 12:24 ` [PATCH v6 1/5] watchdog: core: dt: add support for the timeout device tree property Fabio Porcedda
2012-10-01 12:24 ` [PATCH v6 2/5] watchdog: orion_wdt: dt: add the timeout property binding Fabio Porcedda
2012-10-01 12:24 ` [PATCH v6 3/5] watchdog: at91sam9_wdt: add device tree support Fabio Porcedda
2012-10-01 12:45   ` Andrew Lunn
2012-10-01 12:48     ` Fabio Porcedda
2012-10-01 12:54       ` Fabio Porcedda
2012-10-01 13:06         ` Andrew Lunn
2012-10-02 15:04           ` Fabio Porcedda
2012-10-02 19:00             ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-03 16:32               ` Fabio Porcedda
2012-10-03 17:47                 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-02 19:59             ` Andrew Lunn
2012-10-03 16:32               ` Fabio Porcedda [this message]
2012-10-01 12:56       ` Andrew Lunn
2012-10-01 12:24 ` [PATCH v6 4/5] ARM: at91/dts: add at91sam9_wdt driver to at91sam926x, at91sam9g45 Fabio Porcedda
2012-10-01 12:24 ` [PATCH v6 5/5] ARM: at91/dts: evk-pro3: enable watchdog Fabio Porcedda

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=CAHkwnC_RUQ+hhzHAVEK5u4UUJDArKQNjEdXTzswn6cfYPWU_ew@mail.gmail.com \
    --to=fabio.porcedda@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).