device: Fix structure attributes access
Since struct devconfig was merged earlier into struct device, let's fix accessing config_info, name, ... attributes everywhere via: grep -rlZ 'dev->config->' | xargs -0 sed -i 's/dev->config->/dev->/g' Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
8d7bb8ffd8
commit
97326c0445
348 changed files with 1155 additions and 1174 deletions
|
@ -349,7 +349,7 @@ static void eth_enc28j60_init_buffers(struct device *dev)
|
|||
|
||||
static void eth_enc28j60_init_mac(struct device *dev)
|
||||
{
|
||||
const struct eth_enc28j60_config *config = dev->config->config_info;
|
||||
const struct eth_enc28j60_config *config = dev->config_info;
|
||||
struct eth_enc28j60_runtime *context = dev->driver_data;
|
||||
u8_t data_macon;
|
||||
|
||||
|
@ -399,7 +399,7 @@ static void eth_enc28j60_init_mac(struct device *dev)
|
|||
|
||||
static void eth_enc28j60_init_phy(struct device *dev)
|
||||
{
|
||||
const struct eth_enc28j60_config *config = dev->config->config_info;
|
||||
const struct eth_enc28j60_config *config = dev->config_info;
|
||||
|
||||
if (config->full_duplex) {
|
||||
eth_enc28j60_write_phy(dev, ENC28J60_PHY_PHCON1,
|
||||
|
@ -506,7 +506,7 @@ static int eth_enc28j60_tx(struct device *dev, struct net_pkt *pkt)
|
|||
|
||||
static int eth_enc28j60_rx(struct device *dev, u16_t *vlan_tag)
|
||||
{
|
||||
const struct eth_enc28j60_config *config = dev->config->config_info;
|
||||
const struct eth_enc28j60_config *config = dev->config_info;
|
||||
struct eth_enc28j60_runtime *context = dev->driver_data;
|
||||
u16_t lengthfr;
|
||||
u8_t counter;
|
||||
|
@ -717,7 +717,7 @@ static const struct ethernet_api api_funcs = {
|
|||
|
||||
static int eth_enc28j60_init(struct device *dev)
|
||||
{
|
||||
const struct eth_enc28j60_config *config = dev->config->config_info;
|
||||
const struct eth_enc28j60_config *config = dev->config_info;
|
||||
struct eth_enc28j60_runtime *context = dev->driver_data;
|
||||
|
||||
/* SPI config */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue