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
|
@ -35,7 +35,7 @@ static int lis2dw12_set_range(struct device *dev, u16_t range)
|
|||
{
|
||||
int err;
|
||||
struct lis2dw12_data *lis2dw12 = dev->driver_data;
|
||||
const struct lis2dw12_device_config *cfg = dev->config->config_info;
|
||||
const struct lis2dw12_device_config *cfg = dev->config_info;
|
||||
u8_t shift_gain = 0U;
|
||||
u8_t fs = LIS2DW12_FS_TO_REG(range);
|
||||
|
||||
|
@ -178,7 +178,7 @@ static int lis2dw12_attr_set(struct device *dev, enum sensor_channel chan,
|
|||
static int lis2dw12_sample_fetch(struct device *dev, enum sensor_channel chan)
|
||||
{
|
||||
struct lis2dw12_data *lis2dw12 = dev->driver_data;
|
||||
const struct lis2dw12_device_config *cfg = dev->config->config_info;
|
||||
const struct lis2dw12_device_config *cfg = dev->config_info;
|
||||
u8_t shift;
|
||||
union axis3bit16_t buf;
|
||||
|
||||
|
@ -214,7 +214,7 @@ static const struct sensor_driver_api lis2dw12_driver_api = {
|
|||
static int lis2dw12_init_interface(struct device *dev)
|
||||
{
|
||||
struct lis2dw12_data *lis2dw12 = dev->driver_data;
|
||||
const struct lis2dw12_device_config *cfg = dev->config->config_info;
|
||||
const struct lis2dw12_device_config *cfg = dev->config_info;
|
||||
|
||||
lis2dw12->bus = device_get_binding(cfg->bus_name);
|
||||
if (!lis2dw12->bus) {
|
||||
|
@ -256,7 +256,7 @@ static int lis2dw12_set_power_mode(struct lis2dw12_data *lis2dw12,
|
|||
static int lis2dw12_init(struct device *dev)
|
||||
{
|
||||
struct lis2dw12_data *lis2dw12 = dev->driver_data;
|
||||
const struct lis2dw12_device_config *cfg = dev->config->config_info;
|
||||
const struct lis2dw12_device_config *cfg = dev->config_info;
|
||||
u8_t wai;
|
||||
|
||||
if (lis2dw12_init_interface(dev)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue