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
|
@ -32,7 +32,7 @@ static int8_t dht_measure_signal_duration(struct device *dev,
|
|||
bool active)
|
||||
{
|
||||
struct dht_data *drv_data = dev->driver_data;
|
||||
const struct dht_config *cfg = dev->config_info;
|
||||
const struct dht_config *cfg = dev->config;
|
||||
uint32_t elapsed_cycles;
|
||||
uint32_t max_wait_cycles = (uint32_t)(
|
||||
(uint64_t)DHT_SIGNAL_MAX_WAIT_DURATION *
|
||||
|
@ -60,7 +60,7 @@ static int8_t dht_measure_signal_duration(struct device *dev,
|
|||
static int dht_sample_fetch(struct device *dev, enum sensor_channel chan)
|
||||
{
|
||||
struct dht_data *drv_data = dev->driver_data;
|
||||
const struct dht_config *cfg = dev->config_info;
|
||||
const struct dht_config *cfg = dev->config;
|
||||
int ret = 0;
|
||||
int8_t signal_duration[DHT_DATA_BITS_NUM];
|
||||
int8_t max_duration, min_duration, avg_duration;
|
||||
|
@ -225,7 +225,7 @@ static int dht_init(struct device *dev)
|
|||
{
|
||||
int rc = 0;
|
||||
struct dht_data *drv_data = dev->driver_data;
|
||||
const struct dht_config *cfg = dev->config_info;
|
||||
const struct dht_config *cfg = dev->config;
|
||||
|
||||
drv_data->gpio = device_get_binding(cfg->ctrl);
|
||||
if (drv_data->gpio == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue