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
|
@ -54,8 +54,7 @@ static void iis2mdc_handle_interrupt(void *arg)
|
|||
{
|
||||
struct device *dev = arg;
|
||||
struct iis2mdc_data *iis2mdc = dev->driver_data;
|
||||
const struct iis2mdc_config *const config =
|
||||
dev->config_info;
|
||||
const struct iis2mdc_config *const config = dev->config;
|
||||
struct sensor_trigger drdy_trigger = {
|
||||
.type = SENSOR_TRIG_DATA_READY,
|
||||
};
|
||||
|
@ -73,7 +72,7 @@ static void iis2mdc_gpio_callback(struct device *dev,
|
|||
{
|
||||
struct iis2mdc_data *iis2mdc =
|
||||
CONTAINER_OF(cb, struct iis2mdc_data, gpio_cb);
|
||||
const struct iis2mdc_config *const config = iis2mdc->dev->config_info;
|
||||
const struct iis2mdc_config *const config = iis2mdc->dev->config;
|
||||
|
||||
ARG_UNUSED(pins);
|
||||
|
||||
|
@ -114,7 +113,7 @@ static void iis2mdc_work_cb(struct k_work *work)
|
|||
int iis2mdc_init_interrupt(struct device *dev)
|
||||
{
|
||||
struct iis2mdc_data *iis2mdc = dev->driver_data;
|
||||
const struct iis2mdc_config *const config = dev->config_info;
|
||||
const struct iis2mdc_config *const config = dev->config;
|
||||
|
||||
/* setup data ready gpio interrupt */
|
||||
iis2mdc->gpio = device_get_binding(config->drdy_port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue