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
|
@ -35,7 +35,7 @@ static int lis2dw12_set_range(struct device *dev, uint16_t range)
|
|||
{
|
||||
int err;
|
||||
struct lis2dw12_data *lis2dw12 = dev->driver_data;
|
||||
const struct lis2dw12_device_config *cfg = dev->config_info;
|
||||
const struct lis2dw12_device_config *cfg = dev->config;
|
||||
uint8_t shift_gain = 0U;
|
||||
uint8_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_info;
|
||||
const struct lis2dw12_device_config *cfg = dev->config;
|
||||
uint8_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_info;
|
||||
const struct lis2dw12_device_config *cfg = dev->config;
|
||||
|
||||
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_info;
|
||||
const struct lis2dw12_device_config *cfg = dev->config;
|
||||
uint8_t wai;
|
||||
|
||||
if (lis2dw12_init_interface(dev)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue