linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add device_create_files() and device_remove_files() helpers
@ 2015-01-28 20:46 Takashi Iwai
  2015-01-28 20:46 ` [PATCH 1/2] driver core: " Takashi Iwai
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Takashi Iwai @ 2015-01-28 20:46 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel

Hi,

this is a simple patch to add device_create_files() and
device_remove_files() to replace multiple device_create_file() or
_remove() calls with a single shot with the device_attr list.

It's basically just a clean up, but also helps to simplify the error
handling a lot in many existing codes since the function itself does
rollback at error.

The series contains a patch to apply these to drivers/base/node.c.
I have lots of patches (up to 30) to use these in the whole tree, but
maybe it'd be easier too apply once after this stuff is merged at
first.  It's just a cleanup so no urgent task, after all.


thanks,

Takashi

===

Takashi Iwai (2):
  driver core: Add device_create_files() and device_remove_files()
    helpers
  drivers/base/node: Use device_create_files() and device_remove_files()

 drivers/base/core.c    | 36 ++++++++++++++++++++++++++++++++++++
 drivers/base/node.c    | 24 ++++++++++++------------
 include/linux/device.h |  4 ++++
 3 files changed, 52 insertions(+), 12 deletions(-)

-- 
2.2.2


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

end of thread, other threads:[~2015-02-08  8:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28 20:46 [PATCH 0/2] Add device_create_files() and device_remove_files() helpers Takashi Iwai
2015-01-28 20:46 ` [PATCH 1/2] driver core: " Takashi Iwai
2015-01-28 20:46 ` [PATCH 2/2] drivers/base/node: Use device_create_files() and device_remove_files() Takashi Iwai
2015-01-28 21:06   ` Greg Kroah-Hartman
2015-01-28 21:27     ` Takashi Iwai
2015-01-28 21:05 ` [PATCH 0/2] Add device_create_files() and device_remove_files() helpers Greg Kroah-Hartman
2015-01-28 21:26   ` Takashi Iwai
2015-01-28 21:34     ` Greg Kroah-Hartman
2015-01-28 22:18       ` Takashi Iwai
2015-01-28 22:28         ` Greg Kroah-Hartman
2015-01-28 23:11           ` Takashi Iwai
2015-01-30  4:26             ` Greg Kroah-Hartman
2015-01-30 16:31               ` Takashi Iwai
2015-02-07 10:10                 ` Greg Kroah-Hartman
2015-02-08  8:41                   ` Takashi Iwai

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