mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-14 00:06:46 +00:00
kernel: move mac-address-ascii patches to generic
This enables other targets to use the mac-address-ascii feature. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
This commit is contained in:
parent
802ca492d8
commit
7b863af180
@ -11,7 +11,7 @@ Submitted-by: Yousong Zhou <yszhou4tech@gmail.com>
|
|||||||
|
|
||||||
--- a/net/ethernet/eth.c
|
--- a/net/ethernet/eth.c
|
||||||
+++ b/net/ethernet/eth.c
|
+++ b/net/ethernet/eth.c
|
||||||
@@ -545,6 +545,63 @@ int eth_platform_get_mac_address(struct
|
@@ -539,6 +539,63 @@ int eth_platform_get_mac_address(struct
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(eth_platform_get_mac_address);
|
EXPORT_SYMBOL(eth_platform_get_mac_address);
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ Submitted-by: Yousong Zhou <yszhou4tech@gmail.com>
|
|||||||
/**
|
/**
|
||||||
* Obtain the MAC address from an nvmem cell named 'mac-address' associated
|
* Obtain the MAC address from an nvmem cell named 'mac-address' associated
|
||||||
* with given device.
|
* with given device.
|
||||||
@@ -558,19 +615,23 @@ int nvmem_get_mac_address(struct device
|
@@ -552,19 +609,23 @@ int nvmem_get_mac_address(struct device
|
||||||
{
|
{
|
||||||
struct nvmem_cell *cell;
|
struct nvmem_cell *cell;
|
||||||
const void *mac;
|
const void *mac;
|
@ -11,7 +11,7 @@ Submitted-by: Yousong Zhou <yszhou4tech@gmail.com>
|
|||||||
|
|
||||||
--- a/net/ethernet/eth.c
|
--- a/net/ethernet/eth.c
|
||||||
+++ b/net/ethernet/eth.c
|
+++ b/net/ethernet/eth.c
|
||||||
@@ -544,6 +544,63 @@ int eth_platform_get_mac_address(struct
|
@@ -538,6 +538,63 @@ int eth_platform_get_mac_address(struct
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(eth_platform_get_mac_address);
|
EXPORT_SYMBOL(eth_platform_get_mac_address);
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ Submitted-by: Yousong Zhou <yszhou4tech@gmail.com>
|
|||||||
/**
|
/**
|
||||||
* nvmem_get_mac_address - Obtain the MAC address from an nvmem cell named
|
* nvmem_get_mac_address - Obtain the MAC address from an nvmem cell named
|
||||||
* 'mac-address' associated with given device.
|
* 'mac-address' associated with given device.
|
||||||
@@ -557,19 +614,23 @@ int nvmem_get_mac_address(struct device
|
@@ -551,19 +608,23 @@ int nvmem_get_mac_address(struct device
|
||||||
{
|
{
|
||||||
struct nvmem_cell *cell;
|
struct nvmem_cell *cell;
|
||||||
const void *mac;
|
const void *mac;
|
Loading…
x
Reference in New Issue
Block a user