linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: linux-kernel@vger.kernel.org, Barry Song <Baohua.Song@csr.com>,
	Barry Song <baohua@kernel.org>
Cc: linux-gpio@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>
Subject: [PATCH 0/2] RTF: pinctrl: sirf: state container refactorings
Date: Wed, 23 Apr 2014 23:16:30 +0200	[thread overview]
Message-ID: <1398287792-19831-1-git-send-email-linus.walleij@linaro.org> (raw)

This is a refactoring attempt that may not work as I can't test it
(it compiles), but you sure can see what I want to happen in the SIRF
driver.

By registering the GPIO range from the gpiochip side we can get rid
of the static globals and be a nice kernel citizen. See further
Documentation/driver-model/design-patterns.txt.

Linus Walleij (2):
  RFT: pinctrl: sirf: switch to using allocated state container
  RFT: pinctrl: sirf: move sgpio lock into state container

 drivers/pinctrl/sirf/pinctrl-sirf.c | 240 ++++++++++++++++++++----------------
 1 file changed, 134 insertions(+), 106 deletions(-)

-- 
1.9.0


             reply	other threads:[~2014-04-23 21:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 21:16 Linus Walleij [this message]
2014-04-23 21:16 ` [PATCH 1/2] RFT: pinctrl: sirf: switch to using allocated state container Linus Walleij
2014-05-01 12:29   ` Barry Song
2014-05-09 11:53     ` Linus Walleij
2014-05-25  8:26       ` Barry Song
2014-05-27 13:27         ` Linus Walleij
2014-05-27 15:10           ` Barry Song
2014-05-28  8:43             ` Linus Walleij
2014-04-23 21:16 ` [PATCH 2/2] RFT: pinctrl: sirf: move sgpio lock into " Linus Walleij
2014-05-01 12:40   ` Barry Song
2014-05-09 11:57     ` Linus Walleij
2014-05-25  7:51       ` Barry Song

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=1398287792-19831-1-git-send-email-linus.walleij@linaro.org \
    --to=linus.walleij@linaro.org \
    --cc=Baohua.Song@csr.com \
    --cc=baohua@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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).