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
|
@ -32,7 +32,7 @@ struct ps2_xec_data {
|
|||
|
||||
static int ps2_xec_configure(struct device *dev, ps2_callback_t callback_isr)
|
||||
{
|
||||
const struct ps2_xec_config *config = dev->config->config_info;
|
||||
const struct ps2_xec_config *config = dev->config_info;
|
||||
struct ps2_xec_data *data = dev->driver_data;
|
||||
PS2_Type *base = config->base;
|
||||
|
||||
|
@ -69,7 +69,7 @@ static int ps2_xec_configure(struct device *dev, ps2_callback_t callback_isr)
|
|||
|
||||
static int ps2_xec_write(struct device *dev, u8_t value)
|
||||
{
|
||||
const struct ps2_xec_config *config = dev->config->config_info;
|
||||
const struct ps2_xec_config *config = dev->config_info;
|
||||
struct ps2_xec_data *data = dev->driver_data;
|
||||
PS2_Type *base = config->base;
|
||||
int i = 0;
|
||||
|
@ -118,7 +118,7 @@ static int ps2_xec_write(struct device *dev, u8_t value)
|
|||
|
||||
static int ps2_xec_inhibit_interface(struct device *dev)
|
||||
{
|
||||
const struct ps2_xec_config *config = dev->config->config_info;
|
||||
const struct ps2_xec_config *config = dev->config_info;
|
||||
struct ps2_xec_data *data = dev->driver_data;
|
||||
PS2_Type *base = config->base;
|
||||
|
||||
|
@ -137,7 +137,7 @@ static int ps2_xec_inhibit_interface(struct device *dev)
|
|||
|
||||
static int ps2_xec_enable_interface(struct device *dev)
|
||||
{
|
||||
const struct ps2_xec_config *config = dev->config->config_info;
|
||||
const struct ps2_xec_config *config = dev->config_info;
|
||||
struct ps2_xec_data *data = dev->driver_data;
|
||||
PS2_Type *base = config->base;
|
||||
|
||||
|
@ -151,7 +151,7 @@ static int ps2_xec_enable_interface(struct device *dev)
|
|||
static void ps2_xec_isr(void *arg)
|
||||
{
|
||||
struct device *dev = (struct device *)arg;
|
||||
const struct ps2_xec_config *config = dev->config->config_info;
|
||||
const struct ps2_xec_config *config = dev->config_info;
|
||||
struct ps2_xec_data *data = dev->driver_data;
|
||||
PS2_Type *base = config->base;
|
||||
u32_t status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue