[PATCH 0/6] Refactor driver resource allocation code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Everyone:

This series is my attempt to minimzie amount of repeating code in
various resource allocating function in drivers/base/driver.c. All
patches are optional, so if some/all changes don't seem like an
improvement, I am more than happy to drop them.

Thanks,
Andrey Smirnov

Andrey Smirnov (6):
  drivers: base: Simplify generic_memmap_ro()
  drivers: base: Drop dev_get_mem_region_by_name()
  drivers: base: Share implementations for dev_get_resource*()
  drivers: base: Simplify dev_request_mem_region_err_null()
  drivers: base: Share code for dev_request_mem_region*()
  drivers: base: Share code for getting and then requesting a region

 drivers/base/driver.c | 120 +++++++++++++++++++-----------------------
 include/driver.h      |   4 --
 2 files changed, 55 insertions(+), 69 deletions(-)

-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux