lkml.org 
[lkml]   [2014]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] RTF: pinctrl: sirf: state container refactorings
Date
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



\
 
 \ /
  Last update: 2014-04-24 00:01    [W:0.121 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site