linux-stable/drivers/of
Sergei Shtylyov 3eb46a1da7 of_net: factor out repetitive code from of_get_mac_address()
of_get_mac_address() basically does the same  thing thrice, every  time with  a
different  property  name,  so it makes sense to factor out the repetitive code
into separate function. While at it, we can start using ETH_ALEN instead of the
bare number and drop unnecessary parens around the property length check.

The resulting ARM object file is 100 bytes less in size than before the patch.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
2015-03-29 08:56:17 +01:00
..
unittest-data of: unitest: Add I2C overlay unit tests. 2015-02-04 10:43:14 -06:00
address.c drivers/of: Add empty ranges quirk for PA-Semi 2015-03-27 21:03:58 -07:00
base.c Revert "of: Fix premature bootconsole disable with 'stdout-path'" 2015-03-19 08:46:54 -05:00
device.c of: rename of_aliases_mutex to just of_mutex 2014-07-07 13:42:52 +01:00
dynamic.c of/reconfig: Always use the same structure for notifiers 2014-11-24 22:25:03 +00:00
fdt.c of/fdt: fix sparse warning 2015-02-04 10:43:15 -06:00
fdt_address.c of/fdt: add FDT address translation support 2014-05-20 15:19:25 -05:00
irq.c of/irq: Fix of_irq_parse_one() returned error codes 2015-03-19 08:39:14 -05:00
Kconfig of: Allow selection of OF_DYNAMIC and OF_OVERLAY if OF_UNITTEST 2015-03-27 21:03:58 -07:00
Makefile of/overlay: Introduce DT overlay support 2014-11-24 22:25:10 +00:00
of_mdio.c net: phy: adjust fixed_phy_register() return value 2014-10-07 13:06:45 -04:00
of_mtd.c of_mtd: Add helpers to get ECC strength and ECC step size 2014-03-10 22:42:28 -07:00
of_net.c of_net: factor out repetitive code from of_get_mac_address() 2015-03-29 08:56:17 +01:00
of_pci.c of/pci: Remove duplicate kfree in of_pci_get_host_bridge_resources() 2015-02-11 15:27:15 -06:00
of_pci_irq.c of_pci_irq: kill useless variable in of_irq_parse_pci() 2014-05-27 12:13:34 +01:00
of_private.h of: Refactor __of_node_alloc() into __of_node_dup() 2014-11-24 22:24:41 +00:00
of_reserved_mem.c drivers: of: Export of_reserved_mem_device_{init,release} 2015-01-13 13:56:58 -06:00
overlay.c of/overlay: Remove unused variable 2015-03-10 10:34:33 -05:00
pdt.c of: Eliminate of_allnodes list 2014-11-04 13:29:38 +00:00
platform.c ARM: SoC driver updates 2015-02-17 09:38:59 -08:00
resolver.c of/resolver: Switch to new local fixups format. 2014-11-24 22:24:50 +00:00
unittest.c of: unittest: Add option string test case with longer path 2015-03-19 08:39:44 -05:00