device: Apply config_info rename everywhere
Via coccinelle: @r_device_config@ struct device *D; @@ D-> - config_info + config And 2 grep/sed rules for macros: git grep -rlz 'dev)->config_info' | xargs -0 sed -i 's/dev)->config_info/dev)->config/g' git grep -rlz 'dev->config_info' | xargs -0 sed -i 's/dev->config_info/dev->config/g' Fixes #27397 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
a46b4a9921
commit
af6140cc0d
324 changed files with 1048 additions and 1071 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_info;
|
||||
const struct eth_enc28j60_config *config = dev->config;
|
||||
struct eth_enc28j60_runtime *context = dev->driver_data;
|
||||
uint8_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_info;
|
||||
const struct eth_enc28j60_config *config = dev->config;
|
||||
|
||||
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, uint16_t *vlan_tag)
|
||||
{
|
||||
const struct eth_enc28j60_config *config = dev->config_info;
|
||||
const struct eth_enc28j60_config *config = dev->config;
|
||||
struct eth_enc28j60_runtime *context = dev->driver_data;
|
||||
uint16_t lengthfr;
|
||||
uint8_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_info;
|
||||
const struct eth_enc28j60_config *config = dev->config;
|
||||
struct eth_enc28j60_runtime *context = dev->driver_data;
|
||||
|
||||
/* SPI config */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue