linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] HID special drivers converted to devres API
@ 2013-07-24 15:29 Benjamin Tissoires
  2013-07-24 15:29 ` [PATCH 1/2] HID: trivial devm conversion for special hid drivers Benjamin Tissoires
  2013-07-24 15:29 ` [PATCH 2/2] HID: multitouch: devm conversion Benjamin Tissoires
  0 siblings, 2 replies; 7+ messages in thread
From: Benjamin Tissoires @ 2013-07-24 15:29 UTC (permalink / raw)
  To: Benjamin Tissoires, Henrik Rydberg, Jiri Kosina, Andy Shevchenko,
	Stephane Chatty, linux-input, linux-kernel

Hi Jiri,

It's been a long time since I told you that I was about to work on the devres API...
So here are the first patches.

My deductions are that it is safe to run devm_* functions within the hid subsystem.
With this, we can simplify a little the error path of some drivers. The gain
is more visible for hid-multitouch as the function mt_free_input_name() can
be entirely dropped.

Cheers,
Benjamin

Benjamin Tissoires (2):
  HID: trivial devm conversion for special hid drivers
  HID: multitouch: devm conversion

 drivers/hid/hid-a4tech.c     | 23 +++-----------
 drivers/hid/hid-apple.c      | 16 ++--------
 drivers/hid/hid-magicmouse.c | 17 ++---------
 drivers/hid/hid-multitouch.c | 71 ++++++++++++++------------------------------
 drivers/hid/hid-sony.c       |  9 ++----
 drivers/hid/hid-zydacron.c   | 19 ++----------
 6 files changed, 39 insertions(+), 116 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-07-24 16:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-24 15:29 [PATCH 0/2] HID special drivers converted to devres API Benjamin Tissoires
2013-07-24 15:29 ` [PATCH 1/2] HID: trivial devm conversion for special hid drivers Benjamin Tissoires
2013-07-24 15:37   ` Andy Shevchenko
2013-07-24 15:43     ` Benjamin Tissoires
2013-07-24 15:29 ` [PATCH 2/2] HID: multitouch: devm conversion Benjamin Tissoires
2013-07-24 15:44   ` Andy Shevchenko
2013-07-24 16:43     ` Benjamin Tissoires

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).