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
|
@ -69,7 +69,7 @@ static void iis3dhhc_handle_interrupt(void *arg)
|
|||
struct sensor_trigger drdy_trigger = {
|
||||
.type = SENSOR_TRIG_DATA_READY,
|
||||
};
|
||||
const struct iis3dhhc_config *cfg = dev->config_info;
|
||||
const struct iis3dhhc_config *cfg = dev->config;
|
||||
|
||||
if (iis3dhhc->handler_drdy != NULL) {
|
||||
iis3dhhc->handler_drdy(dev, &drdy_trigger);
|
||||
|
@ -84,7 +84,7 @@ static void iis3dhhc_gpio_callback(struct device *dev,
|
|||
{
|
||||
struct iis3dhhc_data *iis3dhhc =
|
||||
CONTAINER_OF(cb, struct iis3dhhc_data, gpio_cb);
|
||||
const struct iis3dhhc_config *cfg = iis3dhhc->dev->config_info;
|
||||
const struct iis3dhhc_config *cfg = iis3dhhc->dev->config;
|
||||
|
||||
ARG_UNUSED(pins);
|
||||
|
||||
|
@ -126,7 +126,7 @@ static void iis3dhhc_work_cb(struct k_work *work)
|
|||
int iis3dhhc_init_interrupt(struct device *dev)
|
||||
{
|
||||
struct iis3dhhc_data *iis3dhhc = dev->driver_data;
|
||||
const struct iis3dhhc_config *cfg = dev->config_info;
|
||||
const struct iis3dhhc_config *cfg = dev->config;
|
||||
int ret;
|
||||
|
||||
/* setup data ready gpio interrupt (INT1 or INT2) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue